Thread: dotnet new
View Single Post
  #1 (permalink)  
Old January 16th, 2018, 06:34 PM
MattSA MattSA is offline
Registered User
Points: 17, Level: 1
Points: 17, Level: 1 Points: 17, Level: 1 Points: 17, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default dotnet new

I am working in chapter 1 of this book. Under the heading 'Building the Application' (on page 19) it suggests entering the following command:

>dotnet new

to create three files - Program.cs, NuGet.config, and project.json files. However, when I enter this command it just presents a help scenario. From this information, I was able to use the following commands:

>dotnet new console // Creates the Program.cs file
>dotnet new nugetconfig // Creates a nugget.config file
>dotnet new globaljson // Creates a global.json file

However, none of the files created are linked or produce the output discussed after the dotnet new instruction.

Can someone identify the correct statement to produce the three files at once?

Reply With Quote