How to fix DNX/DNVM in Visual Studio 2015?

后端 未结 8 892
时光取名叫无心
时光取名叫无心 2020-12-01 06:02

Today I installed VS 2015 on Windows 7 x64. Mainly to test new .Net Core features and etc. And for test I created new C# \"Console Application (Package)\" solution and got t

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 06:38

    Install the latest version by opening a console and running:

    dnvm upgrade

    If you reopen VS you should be able to compile.

    If this doesn't work, try deleting the C:\Users\username\.dnx folder. Reopen VS and it will recreate the .dnx folder in the same location with only 2 scripts: bin\dnvm.cmd and bin\dnvm.ps1 Note: This would delete all already installed runtimes.

    Rerun dnvm upgrade and check under the project properties if the Solution DNX SDK Version you have matches an installed one.

提交回复
热议问题