-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
use SpecialFolder.UserProfile instead of USERPROFILE #108559
Conversation
Tagging subscribers to this area: @dotnet/area-dependencymodel |
{ | ||
basePath = environment.GetEnvironmentVariable("HOME"); | ||
} | ||
string basePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); |
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.
@ViktorHofer this is matching sdk and nuget streamlined behavior NuGet/NuGet.Client@310f5d4 dotnet/sdk@456aa42 using standard .net api to get profile directory cross platform instead of manually checking the environment variables.
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 don't really have much context here but the changes LGTM
@kasperk81 this test failure looks related: |
Thanks @kasperk81 |
* use SpecialFolder.UserProfile instead of USERPROFILE * Update PackageResolverTest.cs * Update PackageResolverTest.cs * Update src/libraries/Microsoft.Extensions.DependencyModel/tests/PackageResolverTest.cs * Update PackageResolverTest.cs --------- Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
No description provided.