Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 16th, 2018, 05:34 PM
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?

MattSA
Reply With Quote
  #2 (permalink)  
Old January 22nd, 2018, 05:10 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Very useful information!!
Automation Training in Chennai|selenium training
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2018, 09:46 AM
Wrox Author
Points: 1,160, Level: 13
Points: 1,160, Level: 13 Points: 1,160, Level: 13 Points: 1,160, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
Posts: 174
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05:15 AM



All times are GMT -4. The time now is 11:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.