-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Change NuGet cache to be in repository root #7310
Conversation
@elachlan This seems to work for CI. But I'm not sure if it will work well for local development. Haven't cloned the repository so I can't test. Can we use something like https://stackoverflow.com/a/20014410/5108631? But we definitely want to revert the environment variable back to its original state after build. Note that we can simply delete the environment variable, which will then have the effect from |
|
||
[.nuget/**/*.cs] | ||
# Instantiate argument exceptions correctly | ||
dotnet_diagnostic.CA2208.severity = suggestion |
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.
Should this be dotnet_diagnostic.severity = suggestion
?
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'm disabling CA2208 specifically so that you can clearly see what rules are violated by the referenced packages.
@Youssef1313 This doesn't work locally. I still get the standard errors. Thanks for your efforts though.
@Forgind I think this solution might work if we can fix that quirk with local build. Otherwise we can just move back to using editorconfigs. Edit: the error is pointing to my user directory, not the cache you configured. |
@elachlan Do you have |
I just run "build" from the msbuild root via cmd prompt. As far as I can tell that env variable is not set. |
The environment variable is the only thing that can take precedence over NuGet.config. I think arcade has set it for your local environment? Line 49 in 90275e4
Here, Lines 608 to 623 in 90275e4
|
I think we can just pass false for |
We need to check with the team to confirm this is a good idea. They might dislike the idea of not using the global cache. It might be simpler to just use the editorconfig in conjunction with the globalconfig as outlined in dotnet/roslyn#55992 |
Sure. I'm going to close for now. You can incorporate either using editorconfigs and globalconfigs, or using the local nuget cache approach in #7187 as you and the team see what's more suitable. |
Thank you so much for your help on this. It gives us a good idea on what is possible. |
Related to #7187.