You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solved: While responding i noticed that the .csprog file used by dotnet-script is missing the tag <ImplicitUsings>enable<ImplicitUsings>. I removed from my Webapi app and received the same Intellisense wornings during build. If i choose to ignore, app runs anyway. So that appears to be the issue.
I noticed that in dotnet script, the .csproj file re-generated. Is there a template somewhere that i can add this missing tag?
Mac OS ARM
net7
dotnet script with Visual Code.
In the editor window i see the below errors with red underlines.
ERROR: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
ERROR: The name 'WebApplication' does not exist in the current context
script does contain the nuget reference:
#r "nuget: Microsoft.AspNetCore.App, 7.0.5"
The application runs fine. So i'm assuming the issue is in Intellisense. Have i set up something wrong?
thx
Marvin Foster -> mmarvb7@gmail.com
The text was updated successfully, but these errors were encountered: