如何在 Visual Studio 2017 专业版中启用 ASP.Net Core 2.2
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/54529061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to enable ASP.Net Core 2.2 in Visual Studio 2017 Professional Edition
提问by Unbreakable
How can I activate ASP.Net Core 2.2 project creation in Visual Studio 2017 Professional edition 15.9.6.
如何在 Visual Studio 2017 专业版 15.9.6 中激活 ASP.Net Core 2.2 项目创建。
I tried to go to Tools > Options > Projects and Solutions > .NET Coreand checked markthe checkbox, but that does not work. Please help
我试图去Tools > Options > Projects and Solutions > .NET Core并选中标记复选框,但这不起作用。请帮忙
回答by John
You need to install the .NET Core 2.2 SDK which you can download from https://dotnet.microsoft.com/download/dotnet-core/2.2.
您需要安装 .NET Core 2.2 SDK,您可以从https://dotnet.microsoft.com/download/dotnet-core/2.2下载。
It appears that you only have .NET Core 2.1 SDK installed at the moment.
您目前似乎只安装了 .NET Core 2.1 SDK。
回答by Jesper Mygind
Install the .net core 2.2 SDK. You can find it at https://dotnet.microsoft.com/download/dotnet-core/2.2
安装 .net core 2.2 SDK。您可以在https://dotnet.microsoft.com/download/dotnet-core/2.2找到它
回答by ?ubo? ?urgó
The already provided answers were not working fine for me. Even when i was able to create new .NET Core 2.2 application, the application would not run. It was failing with IIS error.
已经提供的答案对我来说效果不佳。即使我能够创建新的 .NET Core 2.2 应用程序,该应用程序也无法运行。它因 IIS 错误而失败。
In case you have the same issue you had to download and install SDK for visual studiohttps://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral
如果您遇到同样的问题,您必须为 Visual Studio https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral下载并安装SDK
回答by wysiwyg
Just for a reference, the reason net core for VS versions work, while other net core versions do not, is described here:
仅供参考,此处描述了 VS 版本的 net core 有效而其他 net core 版本无效的原因:
回答by Shloime Rosenblum
Make sure that your sdk is installed the correct directory location C:/Program Files/dotnet/sdk otherwise it will not be displayed in the list.
确保您的 sdk 安装在正确的目录位置 C:/Program Files/dotnet/sdk 否则它不会显示在列表中。


