Way to make dotnet run
as Release
#36072
Labels
Area-CLI
config-system-candidate
Issues that could be solved cleanly if the .NET CLI had a git-like configuration system
untriaged
Request triage from a team member
I often use
dotnet run
. It's great! It's a very convenient one-liner for running my console or web app. It wouldn't say I "use it for scripting" but it's headed in that direction.I'd like a way to make it run as
-c Release
by default. If I rundotnet build
then I want things to work the way they do now. The idea thatdotnet run
should be a wrapper overdotnet build -c Debug
and only ever that seems quite limiting.I'm proposing this as an opt-in feature, like
RunConfiguration
.A good example of where this would be useful: https://benchmarkdotnet.org/articles/guides/how-to-run.html
The text was updated successfully, but these errors were encountered: