AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

add `RollForward` allow to run for newer dotnet

Open heartacker opened this issue 3 months ago • 6 comments

heartacker avatar Aug 15 '25 05:08 heartacker

This works similar to #158. We prefer #158 in our fork.

lextm avatar Aug 15 '25 09:08 lextm

no,it can not work within net10

heartacker avatar Aug 15 '25 09:08 heartacker

even #158 in,

heartacker avatar Aug 15 '25 09:08 heartacker

This extension uses the standard VS Code mechanism to ensure the .NET 9 runtime is installed. So, #158 is more than enough.

lextm avatar Aug 15 '25 09:08 lextm

If added, I can not only run it on dotnet 9, but also on dotnet 10. Why not do it?

After my testing, the results of my local compilation show that I can still work normally without dotnet9. This guarantee is not correct.

On the other hand, it can reduce the need for me to add the dotnet9 sdk again, simplify my environment setup, and prevent my version from getting messy.

For now, I haven't seen any harm in him.

heartacker avatar Aug 15 '25 09:08 heartacker

Currently, VS2022 for Windows and C# Dev Kit in VS Code keeps .NET 9 as a hard dependency, not .NET 10. This is how a tool vendor might prefer to ensure there is a baseline for testing and cover most of the common use cases. So, I believe this extension (from this repo or any fork) should follow the same convention, not yours.

It is not a good idea to only install .NET 10 bits for your development environment as it is still in preview and comes with no technical support from Microsoft, but that choice is yours.

lextm avatar Aug 15 '25 16:08 lextm