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 publish should default to release mode

See original GitHub issue

Currently it defaults to debug (bad for performance of deployed sites, libraries put on nuget, and apps)

While this is obvious when using dotnet publish without parameters as it puts it in a Debug folder; it is not obvious when using an output setting as it is put in the output directory without an obvious Debug moniker

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:49
  • Comments:25 (19 by maintainers)

github_iconTop GitHub Comments

23reactions
forkicommented, Jun 29, 2019

It’s not breaking. It’s fixing.

Livar notifications@github.com schrieb am Sa., 29. Juni 2019, 18:26:

@KathleenDollard https://github.com/KathleenDollard to consider this breaking change.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/cli/issues/11668?email_source=notifications&email_token=AAAOANE7DEBURGDBUXHJ5ELP46EMXA5CNFSM4H4KD6AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY334WI#issuecomment-506969689, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAOANDVRHGGH25CIE3JDHTP46EMXANCNFSM4H4KD6AA .

14reactions
forkicommented, Oct 28, 2021

moving-goalpost

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet publish command - .NET CLI
dotnet publish - Publishes the application and its dependencies to a folder for deployment to a hosting system. Synopsis .NET CLI Copy.
Read more >
Set configuration to "Release" when publishing
Create batch/powershell file for the command dotnet publish -c Release. save it into release.cmd and run that when needed.
Read more >
What is the difference between release build and publish?
Release applies optimizations to your code which can mess up debugging. This is why by default you have debug and release configurations.
Read more >
Dotnet Run Release Mode
Once you completed the testing, you can build it in release mode, using dotnet publish command with release configuration switch. Deployments Modes In.NET ......
Read more >
Discover the New Features of .NET 8: What You Need to ...
But now, with the new update, dotnet publish and dotnet pack produce Release assets by default, which means you can easily produce production- ......
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