Fix package code for new NuGet.
The new NuGet uses tolower paths, and we need to react to it. Port https://github.com/dotnet/cli/pull/2722 Port https://github.com/dotnet/cli/pull/3554
This commit is contained in:
parent
d54bba96cd
commit
a48def9ade
19 changed files with 150 additions and 73 deletions
|
@ -55,7 +55,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
|
||||
return Path.Combine(
|
||||
GetBaseToolPath(packageId),
|
||||
version.ToNormalizedString(),
|
||||
version.ToNormalizedString().ToLowerInvariant(),
|
||||
framework.GetShortFolderName(),
|
||||
"project.lock.json");
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
return Path.Combine(
|
||||
_packagesDirectory,
|
||||
".tools",
|
||||
packageId);
|
||||
packageId.ToLowerInvariant());
|
||||
}
|
||||
|
||||
private IEnumerable<NuGetVersion> GetAvailableToolVersions(string packageId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue