Wrox Programmer Forums
|
BOOK: Professional C# 6 and .NET Core 1.0
This is the forum to discuss the Wrox book Professional C# 6 and .NET Core 1.0 by Christian Nagel; ISBN: 978-1-119-09660-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 6 and .NET Core 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2018, 06:34 PM
Registered User
 
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?

MattSA
 
Old January 22nd, 2018, 06:10 AM
Registered User
 
Join Date: Jan 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Very useful information!!
Automation Training in Chennai|selenium training
 
Old January 22nd, 2018, 10:46 AM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Quote:
Originally Posted by MattSA View Post
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?

MattSA
The project files changed with the release of the SDK and Visual Studio 2017. You can download the two additional chapters with changes on the project files, and with updates for C# 7.0:
http://cninnovation.com/Books

Also, see changes here:
https://github.com/ProfessionalCShar...BookUpdates.md

With .NET Core 1.0, a console app was created using "dotnet new". With 2.0, you need a "dotnet new console".

I hope this helps.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel





Similar Threads
Thread Thread Starter Forum Replies Last Post
dotnet with MySQL angshujit ASP.NET 2.0 Basics 3 June 13th, 2007 08:39 PM
Dotnet problem ginnyc0802 VS.NET 2002/2003 1 June 1st, 2005 09:13 AM
Functionality in Dotnet anand_asv General .NET 1 April 8th, 2005 02:49 AM
Curosrs in dotnet er_jyoti ADO.NET 5 March 31st, 2005 06:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.