Skip to content

Commit

Permalink
Port fix for mismatched NuGet versions to release/2.1.1xx.
Browse files Browse the repository at this point in the history
This commit ports the fix for the mismatched NuGet version numbers used by the
SDK.

See dotnet#1831 for the change into master.
  • Loading branch information
Peter Huene committed Mar 2, 2018
1 parent 7c7c3ea commit 9ec3b33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<NETStandardLibraryNETFrameworkVersion>2.0.1-servicing-26011-01</NETStandardLibraryNETFrameworkVersion>
<NewtonsoftJsonVersion>9.0.1</NewtonsoftJsonVersion>
<NuGetBuildTasksPackVersion>4.6.0-rtm-4918</NuGetBuildTasksPackVersion>
<NuGetPackagingVersion>4.5.0-preview2-4529</NuGetPackagingVersion>
<NuGetProjectModelVersion>4.4.0-preview3-4475</NuGetProjectModelVersion>
<NuGetPackagingVersion>$(NuGetBuildTasksPackVersion)</NuGetPackagingVersion>
<NuGetProjectModelVersion>$(NuGetBuildTasksPackVersion)</NuGetProjectModelVersion>
<PlatformAbstractionsVersion>2.0.0</PlatformAbstractionsVersion>
<SystemDiagnosticsFileVersionInfoVersion>4.0.0</SystemDiagnosticsFileVersionInfoVersion>
<SystemReflectionMetadataVersion>1.4.2</SystemReflectionMetadataVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,15 @@ private void ExtractNupkg(string nugetCache, string nupkg)
{
using (var fileStream = File.OpenRead(nupkg))
{
PackageExtractor.InstallFromSourceAsync((stream) =>
fileStream.CopyToAsync(stream, 4096, CancellationToken.None),
new VersionFolderPathContext(
identity,
nugetCache,
NullLogger.Instance,
PackageExtractor.InstallFromSourceAsync(
identity,
stream => fileStream.CopyToAsync(stream, 4096, CancellationToken.None),
pathResolver,
new PackageExtractionContext(
PackageSaveMode.Defaultv3,
XmlDocFileSaveMode.None),
XmlDocFileSaveMode.None,
NullLogger.Instance,
signedPackageVerifier: null),
CancellationToken.None).Wait();
}
}
Expand Down

0 comments on commit 9ec3b33

Please sign in to comment.