. NET Core deprecated Project.json starting with preview 4
You can download the latest version from this: HTTPS://GITHUB.COM/DOTNET/CLI
The new. NET core project with VS2017 RC has moved from Project.json to MSBuild
Open vs2017, create a new. NET Core Console project:
Project Auto-generated code:
using System; class program{ staticvoid Main (string[] args) { Console.WriteLine ("Hello world! " ); }}
Press F5 to run naturally is the console window flashed over, plus a sentence:
Static void Main (string[] args) { Console.WriteLine ("Hello world! " ); Console.readkey (); }
Run again:
Open the project folder and go to the Bin\Debug directory:
At this point, it doesn't work to imagine running dotnet run in command-line mode:
The reason is that the new project has not generated the Project.json file, then how to start the program at this time?
Direct Dotnet ConsoleApp2.dll
The use of. NET Core Tools After moving from Project.json to MSBuild-based projects