there is no project.json, global.json … etc on .NET Core Solution with Visual Studio 2017

后端 未结 2 1420
鱼传尺愫
鱼传尺愫 2020-12-24 11:12

I make a project by

File -> New -> Project -> Visual C# -> Web -> ASP.NET Core Web Application     
(.NET Core) -> Empty -> OK


        
相关标签:
2条回答
  • 2020-12-24 11:19

    The .NET Core was changing its internals with a slightly fast pace (although it seems it has settled down now), thus making many of the tutorials out there obsolete. Since mid-2016, the project.json has been dumped in favor of "your-app-name".csproj file.

    If you are following a tutorial or a book, then for anything you are supposed to write in the project.json, you must now write it in the csproj file with a slightly different format.

    If I have to mess with project.json when following tutorials, I use this official migration guide.

    0 讨论(0)
  • 2020-12-24 11:42

    The .NET Core (and other teams) have decided to drop project.json and go back to MSBuild and *.csproj.

    So there is no project.json nor global.json in .net core stack any more.
    The alternative for project.json is *.csproj and for global.json is *.sln.

    Old csproj to new csproj: Visual Studio 2017 upgrade guide
    for more info


    Update: (based on Stajs comment)
    global.json is still in the stack, but neutered to only defining the SDK version.

    0 讨论(0)
提交回复
热议问题