Closed solrevdev closed 2 years ago
You don’t need the 5.x SDK, just the 5.x runtime. Can you try the VSIX from this build to see if it works for you? I just realised I forgot to publish it to the VS gallery.
https://github.com/tintoy/msbuild-project-tools-vscode/releases/tag/v0.4.1
It’s the new build that targets .net 6.
(sorry about that!)
Bingo!
Yep, that works great thank you. 🙏
I ran Extensions: Install from VSIX...
from VS Code Insiders command pallete, then when I view the MSBuild Project Tools logs via the Output window I get this lovely message
Starting MSBuild language service...
MSBuild language service is running.
Thanks! I’ll get that new package published :)
@tintoy could you also publish on open-vsx? :)
Sure, will do :)
@tintoy in addition to the 5.x Runtime, you could also spawn the .NET executable with the --roll-forward LatestMajor
flag, which attempts to run the binary on the latest Runtime the user has installed. OR you can set <RollForward>LatestMajor</RollForward>
in the project file, which will add the flag to the deps.json file and tell the runtime to do this as well. This is what I do in Ionide for the the FsAutoComplete F# Language Server, since it still targets the net5.0 TFM.
@tintoy could you also publish on open-vsx? :)
Sorry, I haven't had time to do this yet (first week at a new job and things are super-busy!). I'll try to get it done tonight :)
@pm4rcin - now also published to open-vsx :)
@tintoy I think it could be closed.
Thanks! Sorry, this one kinda fell through the cracks :)
Hi,
When my version of .NET Core upgraded from .NET 5 to .NET 6 my extension started throwing the following error.
I think the issue is that when homebrew runs the .NET upgrade it actually uninstalls the previous SDK before installing the current one so that you don't end up with hundreds of .NET's lying around but that does mean that I know longer have the .NET 5 SDK installed just .NET 6.
Hope that makes sense and do shout if you need any more info or if you point me to the right place, I'm happy to have a stab at fixing it!
Thanks John
Error Message:
Extension Version:
VS Code Insiders:
.NET
MacOS: