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

use SpecialFolder.UserProfile instead of USERPROFILE #108559

Merged
merged 7 commits into from
Nov 11, 2024

Conversation

kasperk81
Copy link
Contributor

No description provided.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 4, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-dependencymodel
See info in area-owners.md if you want to be subscribed.

{
basePath = environment.GetEnvironmentVariable("HOME");
}
string basePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
Copy link
Contributor Author

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.

Copy link
Member

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

@ViktorHofer
Copy link
Member

@kasperk81 this test failure looks related:

image

@ViktorHofer ViktorHofer merged commit a7c6ff7 into dotnet:main Nov 11, 2024
83 checks passed
@ViktorHofer
Copy link
Member

Thanks @kasperk81

mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
* 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>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-DependencyModel 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.

2 participants