Project.json in Visual Studio For Mac

Project.json in Visual Studio For Mac
0.0 0

#1

I’ve created a new Asp.NetCore MVC project in VS for Mac and chose an Empty Project. I’m trying to enable ASP.NET Core MVC by adding “Microsoft.AspNetCore.Mvc” on the Project.json file but I can’t find it in VS for Mac. Do I need to add any dependencies/packages to my project or something?


#2

If you created an Empty Asp.NetCore MVC project, the MVC components should already be there. Try checking your installed packages.

Tools > NuGet Manager > Manage NuGet Packages for Solution

Also, search NuGet website to add packages to your project.


#3

Thank you. According to https://www.stevejgordon.co.uk/project-json-replaced-by-csproj Microsoft has changed the project.json file to csproj.


#4

Yes, Visual Studio configurations are stored in a .vs folder. For each project, the csproj contains settings and configurations. NuGet packages are stored in the package folder.

EDIT:

Try these courses.
Visual Studio 2017: Web Development (MVA)
Web and Data Application Development with Visual Studio 2017 and Azure (MVA)


#5

Ah Thank you, those were really helpful.