The use of. NET Core Tools After moving from Project.json to MSBuild-based projects

Source: Internet
Author: User
Tags dotnet

. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.