tintoy / msbuild-project-tools-vscode

VS Code extension for MSBuild intellisense (including PackageReference completion).
MIT License
82 stars 16 forks source link

[Question] Using extension with .NET5 #95

Closed lonix1 closed 2 years ago

lonix1 commented 2 years ago

Sorry if this is a stupid question, but I after reading the docs and some other issues, I can't find the answer.

I'm still using .NET5 and don't plan to upgrade to 6 anytime soon. Can I somehow use the latest version of this extension, or am I stuck with 0.3.15?

(I tried installing the latest version but it complained I was missing net6, so I rolled back. But I read somewhere in the docs that I can "target net5" even though the extension is net6... but I don't understand how to do that?)

tintoy commented 2 years ago

Hi - I haven't tried that particular combination myself, but you shouldn't need to upgrade your SDK to 6.0.x; only the .NET Runtime (which installs side-by-side with other versions of .NET Core) to run the latest version(s) of the extension / language service.

tintoy commented 2 years ago

In other words, visit https://dotnet.microsoft.com/en-us/download/dotnet/6.0 and install the package labeled .NET Runtime 6.0.x (or .NET Desktop Runtime 6.0.x / ASP.NET Core Runtime 6.0.x, if you need to run other apps that were built against .NET 6) and you should be good to go.