简体   繁体   English

创建 ASP.NET Core 项目

[英]Creating an ASP.NET Core project

I want to create an Asp.net Core project with Visual Studio 2017 Community but the Solutions explorer says that I have (0 projects).我想用Visual Studio 2017社区创建一个Asp.net Core项目,但解决方案资源管理器说我有(0 个项目)。

I tried selecting an empty project, web application, web application (Model-View-Controller) but the Solution explorer still displays (0 projects).我尝试选择一个空项目、Web 应用程序、Web 应用程序(模型-视图-控制器),但解决方案资源管理器仍然显示(0 个项目)。

When I go-to Debug I see the "Attach to Process" option.当我去调试时,我看到“附加到进程”选项。 There is no option to start of course since I have no projects.由于我没有项目,当然没有选择开始。

What could be the issue?可能是什么问题?

Have you installed everything correctly?您是否正确安装了所有内容? To verify this, open a normal cmd and just type 'dotnet'要验证这一点,请打开一个普通的 cmd 并输入“dotnet”

Only if the command runs, printing out information about how to use dotnet, you're good to go.只有当该命令运行时,打印出有关如何使用 dotnet 的信息,您就可以开始了。

Have you installed the correct .NET SDK?您是否安装了正确的 .NET SDK? What version of it?什么版本的? Make sure the version is compatible with the version of visual studio you have installed.确保版本与您安装的 Visual Studio 版本兼容。

Follow this link for step by step setup instructions: https://www.c-sharpcorner.com/article/getting-started-with-net-core-on-visual-studio-2017/按照此链接逐步设置说明: https : //www.c-sharpcorner.com/article/getting-started-with-net-core-on-visual-studio-2017/

This could be the same problem, but I had the same issue during College once but this time I had the support for the web components, so I went back to the installation and repaired it.这可能是同样的问题,但我在大学期间遇到过同样的问题,但这次我有对 web 组件的支持,所以我回到安装并修复了它。 It downloaded the missing files and it worked again and it took a while.它下载了丢失的文件并再次运行,但需要一段时间。

Let me know if that works or not.让我知道这是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM