-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Do not overwrite NoWarn in Mvc.Testing #34592
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
Conversation
Do not overwrite the NoWarn property, and instead add to it.
Do not overwrite the NoWarn property, and instead add to it.
Do not overwrite the NoWarn property, and instead add to it.
| <IsPackable>true</IsPackable> | ||
| <!-- We're disable NU5100 explicitly bundling assemblies as tasks so they are not referenced when consumed. --> | ||
| <NoWarn>NU5100</NoWarn> | ||
| <NoWarn>$(NoWarn);NU5100</NoWarn> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this isn't caused by you, but I think we might be able avoid this warning by packing the binaries in the build directory rather than in a task folder. Would you be interested in taking a stab at that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
Do you have a rough link to some prior art elsewhere in the repo to get a gist of the changes needed?
Happy for me to do that separately rather than roll it into this?
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
PR Title
Do not overwrite the NoWarn property, and instead add to it.
PR Description
I'm having analyzer issues locally with VS 2022 preview 2 with RC1 dailies causing builds to fail, so I locally added
<NoWarn>$(NoWarn);AD0001</NoWarn>toDirectory.Build.propsto work around it.This surfaced that the ApiAuthorization.IdentityServer, Mvc.Testing, and Shared.Tests projects were overwriting the whole
NoWarnproperty instead of appending to it, so this PR fixes that.