NO .csproj file in my asp.net core project

13,108

Solution 1

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.

Solution 2

As @Martin said in his answer

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

In case the Edit is not shown when you right-click on the project in the Solution explorer,you can:

  1. Right Click on the project in the Solution Explorer. Unload Project
  2. Right Click on the project in the Solution Explorer. Edit ProjectName.csproj
  3. Edit what you want and save
  4. Right Click on the project in the Solution Explorer. Reload Project

Solution 3

File > Add > New Project (while your Solution .sln is selected)

Share:
13,108
Admin
Author by

Admin

Updated on July 29, 2022

Comments

  • Admin
    Admin almost 2 years

    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?