-
Notifications
You must be signed in to change notification settings - Fork 133
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
Stop injecting NoWarns into repo's Directory.Build.props #3117
Comments
The plan seems to be to create patches for all the affected repos and drive the backport to those repo. Any source-build specific change should be conditioned for full product source-build. @MichaelSimons does this sound like a plan? |
Things have changes a fair bit since this infrastructure to support source-build wide no-warn which are typically nuget related.
Given these, I think an attempt should be made to remove these nowarns all up and only add them back in the specific cases where they are needed. If that doesn't work and we need a solution to apply a nowarn across the system, I would like to see a common shared solution, for example is it possible to add a directory.build.props in the VMR src directory that would define this common nowarn property? |
After reviewing the current state, patches wouldn't make any sense - we make |
Main nuget-related nowarns are not needed at the moment. The original issue implies that this only reproes in some scenarios: #2766 Additionally, there are 3 repo-specific nowarns:
We cannot have high confidence for removal of any nowarns without being able to test stage 2 builds, which aren't working in Alternative approach is to preserve all current nowarns, but move them to a checked in location. We already have a shared |
I forgot about the repo specific nowarns. Would be nice to cleanup the nowarns repo and system that are no longer needed. I would have confidence if valdiated in a .NET 8.0 environment.
That could work. Curious if we will encounter any issues with repo's defining their nowarns without concatenating. e.g. $(nowarn);nnn |
I have validated that we can simply remove nuget-specific, |
The source-build infrastructure injects some NoWarns into the repo's Directory.Build.props. This is to handle some scenarios that come up in source build because of the way dependencies flow in source build. This approach is not compatible with the VMR in which source-build is built inside the context of a git repo. Checked in files should not be manipulated in place as this break dev UX. An alternative approach will be necessary going forward. Likely, the most reasonable approach is to make these changes within the repos that require them. This is most feasible in the .NET 9.0 timeframe. For the 8.0 timeframe, an alternative approach may be needed.
Sample manipulated Directory.Build.props:
The text was updated successfully, but these errors were encountered: