-
Notifications
You must be signed in to change notification settings - Fork 179
Description
Hi there,
I decided to use dotnet script instead of linqpad as most of my development is in vscode. so I started with dotnet script init.
First I got issue with .Net Script Debug. I figured that vscode is looking for .vscode folder in parent of .csx directory.
Now, I am at main.csx with following code. Inteli-sense doesn't recognize namespace System.Net.Http. Obviously omnisharp/msbuild is not restoring packages. I also tried Nuget.Config in directory where main.csx is, and also its parent directory. Nuget.config may be irrelevant as msbuild issue needs to be resolved first.
#r "nuget: System.Net.Http, 4.3.4"
using System.Net.Http;
var client=new HttpClient();
Console.WriteLine("Hello world!");As I see in other issues, I changed omnisharp logging level to trace. I got lot of trace, but not sure what causing my issue.
I have 3 locations for msbuild. 2019, 2017 (installed from chocolatey installation) and stand alone.
I also tried to change omnisharp.json to override msbuild path like below, which didn't make any difference.
{
"script": {
"enableScriptNuGetReferences": true,
"defaultTargetFramework": "net5.0"
},
"msbuild": {
"MSBuildSdksPath":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin",
"enabled": true,
}
}I am uploading the omnisharp log here. its quite big.
omnisharp.log
I appreciate your help!!