Skip to content
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

Update NuGet global packages cache detection #14763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented May 10, 2024

Make sure to account for per-user NuGet.Config as a way to configure the location of the global packages cache.

Fixes #14761

Make sure to account for per-user NuGet.Config as a way to configure the
location of the global packages cache. Avoid setting NuGetPackageRoot in
RepoLayout.props because it is already being set to the correct location
in the *.nuget.g.props files created for each project.

Fixes dotnet#14761
@sharwell sharwell marked this pull request as ready for review May 10, 2024 22:22
@sharwell
Copy link
Member Author

I'm not sure how to get this change over in the branch of Arcade used by Roslyn.

@arkalyanms arkalyanms requested a review from tmat May 13, 2024 17:46
@@ -19,6 +19,10 @@
Writes a stub file to component intermediate directory.
-->

<PropertyGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems unrelated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VisualStudio.props is imported before the *.nuget.g.props files that define NuGetPackageRoot. I had to move this usage of the property to VisualStudio.targets so it resolves to the correct non-empty value.

@sharwell
Copy link
Member Author

sharwell commented Jun 4, 2024

@tmat for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arcade incorrectly determines NuGet cache location
2 participants