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 May 7th, 2017, 02:41 AM
Registered User
 
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)?
 
Old May 7th, 2017, 06:31 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
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





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 07: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





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