{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/msbuild/issues/3062","repository_url":"https://api.github.com/repos/Microsoft/msbuild","labels_url":"https://api.github.com/repos/Microsoft/msbuild/issues/3062/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msbuild/issues/3062/comments","events_url":"https://api.github.com/repos/Microsoft/msbuild/issues/3062/events","html_url":"https://github.com/Microsoft/msbuild/issues/3062","id":303259699,"node_id":"MDU6SXNzdWUzMDMyNTk2OTk=","number":3062,"title":"Add option for \"warning as errors except ...\"","user":{"login":"natemcmaster","id":2696087,"node_id":"MDQ6VXNlcjI2OTYwODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2696087?v=4","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-07T21:08:01Z","updated_at":"2018-11-19T20:03:01Z","closed_at":null,"author_association":"MEMBER","body":"Follow up to https://github.com/Microsoft/msbuild/issues/68\r\n\r\nI would like to have the ability to make all warnings by errors, but with some exclusions.\r\n```\r\nmsbuild.exe -warnAsError -warnNotAsError MSB3277\r\n```\r\n\r\nThis is not the same as `-nowarn` which would make the warning a low-importance message and hide the warning. I still want the warnings to appear as warnings so show the user there may be a problem, but I want to be able to specify which problems are non-fatal.\r\n\r\n**My scenario:**\r\nWe would like to enable `-warnAsError` by default in the build system that produces ASP.NET Core, but we can't because there are a handful of warning that we can't always do anything about. We would like the warnings to appear, but to be non-fatal to a build passing.\r\n\r\nFor comparison, C# supports a  `WarningsNotAsErrors` properties which allows users to set `TreatWarningsAsErrors=true` which exclusions defined as `WarningsNotAsErrors`.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/msbuild/issues/comments/440023797","html_url":"https://github.com/Microsoft/msbuild/issues/3062#issuecomment-440023797","issue_url":"https://api.github.com/repos/Microsoft/msbuild/issues/3062","id":440023797,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDAyMzc5Nw==","user":{"login":"MarkKharitonov","id":489792,"node_id":"MDQ6VXNlcjQ4OTc5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/489792?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkKharitonov","html_url":"https://github.com/MarkKharitonov","followers_url":"https://api.github.com/users/MarkKharitonov/followers","following_url":"https://api.github.com/users/MarkKharitonov/following{/other_user}","gists_url":"https://api.github.com/users/MarkKharitonov/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkKharitonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkKharitonov/subscriptions","organizations_url":"https://api.github.com/users/MarkKharitonov/orgs","repos_url":"https://api.github.com/users/MarkKharitonov/repos","events_url":"https://api.github.com/users/MarkKharitonov/events{/privacy}","received_events_url":"https://api.github.com/users/MarkKharitonov/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T20:03:01Z","updated_at":"2018-11-19T20:03:01Z","author_association":"NONE","body":"Excellent, then we do not have a problem. So, I can pass **/err /nowarn:MSB3026** to treat all the warnings as errors except for MSB3026"}}
{"actor":{"display_login":"MarkKharitonov"}}