Skip to content

Conversation

@martincostello
Copy link
Member

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> to Directory.Build.props to work around it.

This surfaced that the ApiAuthorization.IdentityServer, Mvc.Testing, and Shared.Tests projects were overwriting the whole NoWarn property instead of appending to it, so this PR fixes that.

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.
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2021
<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>
Copy link
Contributor

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?

Copy link
Member Author

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?

@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jul 21, 2021
@pranavkm
Copy link
Contributor

/azp run

@pranavkm pranavkm enabled auto-merge (squash) July 21, 2021 22:18
@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@pranavkm
Copy link
Contributor

pranavkm commented Aug 5, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@pranavkm pranavkm merged commit 814ddae into dotnet:main Aug 5, 2021
@ghost ghost added this to the 6.0-rc1 milestone Aug 5, 2021
@martincostello martincostello deleted the patch-1 branch August 6, 2021 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants