Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 6 > BOOK: Professional C# 6 and .NET Core 1.0
Password Reminder
Register
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 May 7th, 2017, 02:41 AM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2017
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 46 dotnet build issue

I verified the .csproj:

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>

</Project>

I run:

>dotnet build

but instead of producing an .exe, I get helloworld.dll. A bug in the .NET Command Line Tools (1.0.3)?
Reply With Quote
  #2 (permalink)  
Old May 7th, 2017, 06:31 PM
Wrox Author
Points: 1,151, Level: 13
Points: 1,151, Level: 13 Points: 1,151, Level: 13 Points: 1,151, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
Posts: 171
Thanks: 2
Thanked 53 Times in 53 Posts
Default

Quote:
Originally Posted by mutualcore View Post
I verified the .csproj:
I run:

>dotnet build

but instead of producing an .exe, I get helloworld.dll. A bug in the .NET Command Line Tools (1.0.3)?
No, that's not a bug. With .NET Core always dlls are created. Use
>dotnet run
to run this application.


You can also create exe files, but these are platform dependent. Check the downloadable chapter .NET Core with csproj to produce exe files.
See the section Publishing, Self-Contained Applications.

https://csharp.christiannagel.com/20...05/dotnetcore/

Cheers,
__________________
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
Error on pg 45-46? friendl BOOK: Professional ASP.NET MVC 3 1 March 14th, 2016 12:03 AM
Chapter 2 Build Issues bubba hawk BOOK: Professional iPhone and iPad Database Application Programming 2 August 22nd, 2012 12:33 PM
Latest Bouncy Castle Release 1.46 jhwong56 BOOK: Beginning Cryptography with Java 2 February 25th, 2011 06:19 PM
Chapter 3 - Page 46 jwangkasa BOOK: Beginning iPad Application Development 1 October 26th, 2010 01:07 PM
Multiple Pivot Table Build Issue baycolor Excel VBA 0 March 21st, 2008 10:15 AM



All times are GMT -4. The time now is 02:03 PM.


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