question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet new / restore / publish do not generate EXE file

See original GitHub issue

I would like to generate a standalone exe file when publishing the app. The app needs to consume the latest post-1.1 bits (e.g. 1.2.0-beta-249##). Despite the csproj file having <OutputType>Exe</OutputType> I always get a .dll instead of .exe

Steps to reproduce

install the latest tooling create folder foo dotnet new dotnet restore dotnet build dotnet publish (or dotnet publish -r win7-x64)

Expected behavior

foo.exe file gets generated in the published folder

Actual behavior

foo.dll gets generated

Specifying -r runtime_id used to do the trick but not anymore.

Environment data

dotnet --info output: .NET Command Line Tools (1.0.0-preview5-004478)

Product Information: Version: 1.0.0-preview5-004478 Commit SHA-1 hash: 4d3e2872fe

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.0-preview5-004478

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dasMullicommented, Jun 28, 2017

@GuardRex fyi the locals command also works using the included dotnet nuget command. No need to download the nuget cli for that 😉

1reaction
damircolakcommented, Jun 28, 2017

Thanks, I’ll give it a try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DotNet6 - projects not creating EXE
Currently, I have NO Visual Studio installed. Windows 10. Installed .net 6 sdk dotnet new console dotnet build Determining projects to restore..
Read more >
dotnet publish command - .NET CLI
dotnet publish - Publishes the application and its dependencies to a folder ... To disable implicit restore, use the --no-restore option.
Read more >
dotnet build command - .NET CLI
The file is created when dotnet restore is executed. Without the assets file in place, the tooling can't resolve reference assemblies, which ...
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >
dotnet new <TEMPLATE> - .NET CLI
The dotnet new command creates new .NET projects based on the specified template.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found