Ensure tool package store root is a full path.
This commit fixes the tool package store such that it stores a full path instead of, potentially, a relative path. This prevents a relative path from inadvertently being passed to NuGet during the restore and causing it to restore relative to the temp project directory. Fixes #8829.
This commit is contained in:
parent
cee0a3baa7
commit
4f8ac7dce5
4 changed files with 9 additions and 5 deletions
|
@ -14,7 +14,7 @@ namespace Microsoft.DotNet.ToolPackage
|
|||
|
||||
public ToolPackageStore(DirectoryPath root)
|
||||
{
|
||||
Root = root;
|
||||
Root = new DirectoryPath(Path.GetFullPath(root.Value));
|
||||
}
|
||||
|
||||
public DirectoryPath Root { get; private set; }
|
||||
|
|
Reference in a new issue