{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/9351","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/9351/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/9351/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/9351/events","html_url":"https://github.com/dotnet/cli/issues/9351","id":326735260,"number":9351,"title":"--release switch as a shortcut for -c Release","user":{"login":"dasMulli","id":6129250,"avatar_url":"https://avatars1.githubusercontent.com/u/6129250?v=4","gravatar_id":"","url":"https://api.github.com/users/dasMulli","html_url":"https://github.com/dasMulli","followers_url":"https://api.github.com/users/dasMulli/followers","following_url":"https://api.github.com/users/dasMulli/following{/other_user}","gists_url":"https://api.github.com/users/dasMulli/gists{/gist_id}","starred_url":"https://api.github.com/users/dasMulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasMulli/subscriptions","organizations_url":"https://api.github.com/users/dasMulli/orgs","repos_url":"https://api.github.com/users/dasMulli/repos","events_url":"https://api.github.com/users/dasMulli/events{/privacy}","received_events_url":"https://api.github.com/users/dasMulli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-26T12:38:39Z","updated_at":"2018-05-26T13:19:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Since most projects will only ever use the `Release` and `Debug` configurations, I suggest creating shortcut switches to avoid typing them out in full on the console:\r\n\r\n`--release` shall be allowed everywhere `-c Release` is currently allowed.\r\nsimilarly, `--debug` can be a shorthand way of specifying `-c Debug`.\r\n\r\nBenefits:\r\n\r\n* Faster to type\r\n* Completion support\r\n* Release configuration is commonly needed\r\n* Typo mistakes are easy to make, especially since casing differences can lead to confusing build errors on linux (`-c Release` vs `-c release`).\r\n\r\nDoes this seem reasonable? Any feedback?                                                                                  "},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/392260990","html_url":"https://github.com/dotnet/cli/issues/9351#issuecomment-392260990","issue_url":"https://api.github.com/repos/dotnet/cli/issues/9351","id":392260990,"user":{"login":"dasMulli","id":6129250,"avatar_url":"https://avatars1.githubusercontent.com/u/6129250?v=4","gravatar_id":"","url":"https://api.github.com/users/dasMulli","html_url":"https://github.com/dasMulli","followers_url":"https://api.github.com/users/dasMulli/followers","following_url":"https://api.github.com/users/dasMulli/following{/other_user}","gists_url":"https://api.github.com/users/dasMulli/gists{/gist_id}","starred_url":"https://api.github.com/users/dasMulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasMulli/subscriptions","organizations_url":"https://api.github.com/users/dasMulli/orgs","repos_url":"https://api.github.com/users/dasMulli/repos","events_url":"https://api.github.com/users/dasMulli/events{/privacy}","received_events_url":"https://api.github.com/users/dasMulli/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T13:19:53Z","updated_at":"2018-05-26T13:19:53Z","author_association":"CONTRIBUTOR","body":"I agree that it makes understanding the (msbuild) configuration system harder since it tries to hide the complexity involved.\r\n\r\nMy goal is to help the 90% use case where I want to teach people to do a `dotnet publish --release -r linux-x64 -o /my/outdir`.\r\nThis is similar to how `ng build` vs `ng build -prod` behaves.\r\n\r\nI believe that once you get into build authoring and introduce more configurations, you are more likely to script your build / cli usage and the CLI's options will become less important.\r\n\r\nApart from that: I'm trying to remove additional configurations from existing projects since most of them have only been created for web.config transforms or selecting between config files. ASP.NET Core shifts focus onto configuring at run-time rather than build time. .NET 4.7.1+ makes this possible as well through config builders (https://dasmulli.blog/2018/01/21/use-appsettings-json-and-environment-overrides-in-classic-asp-net-apps/)"}}
{"actor":{"display_login":"dasMulli"}}