I am new in .net core. I created my new empty project with this command :
我是.net核心新手。我用这个命令创建了我的新空项目:
dotnet new web -n MyTestApp
if it is right? Then i added a new folder called Controllers, and now i want to add new
如果是对的?然后我添加了一个名为Controllers的新文件夹,现在我想添加新文件夹
HomeController.cs
HomeController.cs
to this folder, i want to know how? In Visual Studio simply i right click on Controllers folder and add new item to this folder, but in Visual Studio Code as you know we don't have New Item menu.
到这个文件夹,我想知道怎么样?在Visual Studio中,我只需右键单击Controllers文件夹并将新项添加到此文件夹,但在Visual Studio Code中,您知道我们没有New Item菜单。
1 个解决方案
#1
1
Just add it to your project directory. In net core you don't need to list each project file in your csproj or project.json.
只需将其添加到项目目录即可。在net core中,您不需要在csproj或project.json中列出每个项目文件。
#1
1
Just add it to your project directory. In net core you don't need to list each project file in your csproj or project.json.
只需将其添加到项目目录即可。在net core中,您不需要在csproj或project.json中列出每个项目文件。