Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to make dotnet run as Release #36072

Closed
richlander opened this issue Oct 12, 2023 · 3 comments
Closed

Way to make dotnet run as Release #36072

richlander opened this issue Oct 12, 2023 · 3 comments
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

Comments

@richlander
Copy link
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 run dotnet build then I want things to work the way they do now. The idea that dotnet run should be a wrapper over dotnet 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

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Oct 12, 2023
@DamianEdwards
Copy link
Member

Seems like yet another candidate for having configurable CLI defaults similar to git @baronfel

@baronfel
Copy link
Member

Definitely, this would be part of #9344 IMO. I'll close as a default there, but I think we have a few good use cases:

  • configuration defaults
  • framework defaults for dotnet new
  • command aliases

And this would be hierarchical at least to two levels:

  • user profile
  • repo/cwd profile

I'll close this as a dupe and link it to the canonical issue.

@baronfel baronfel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
@richlander
Copy link
Member Author

@agocke

@baronfel baronfel added the config-system-candidate Issues that could be solved cleanly if the .NET CLI had a git-like configuration system label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants