Asp.net

需要安裝 Dnx 執行時包。有關更多詳細資訊,請參見輸出視窗

  • January 1, 1

我正在使用 Visual Studio 2015 Enterprise Edition 並創建了簡單的 Asp.net5 應用程序。當我嘗試調試時,我收到了這個錯誤。

The Dnx Runtime package needs to be installed. See output window for more details

這是我的項目設置:

Solution DNX SDK Version : 1.0.0-beta5,
Platform : .NET Core
Architecture : x64 

(也嘗試使用 x86)

還遵循了此連結中提到的步驟,但它們沒有幫助。

也嘗試重新安裝VS2015,但沒有運氣。知道我錯過了什麼嗎?

從 NuGet 控制台執行它(在 VS 2015 中:Tools> NuGet Package Manager> Package Manager Console

dnvm upgrade
dnvm upgrade -r CoreClr

引用自:https://stackoverflow.com/questions/31957824