Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NO .csproj file in my asp.net core project

I am doing c# programming course (building ASP.NET Core application) right now that is almost 1year old. The guy created web API application and class libraries and in those projects there was project.JSON files. I know that instead of the project.json file there is a .csproj file now but when I create my own project in VS 2017 asp.net core there is no such a file like .csproj. I need to set dependencies but I don't know how without.csproj file. Where can I find this file?

like image 427
Pablo Avatar asked Oct 10 '17 18:10

Pablo


1 Answers

Visual Studio doesn't display the file since the project itself is the csproj file.

You can right-click on it and select the Edit … action to edit the csproj file. You can also use the NuGet package manager to edit dependencies.

Previously (VS 2015), the project that VS used was an .xproj file and the project.json was displayed because it was "part of" that project.

like image 193
Martin Ullrich Avatar answered Sep 21 '22 08:09

Martin Ullrich