diff --git a/external/runtime/Configurations.props b/external/runtime/Configurations.props index 4464e1b35e6d..6a8326c6b23f 100644 --- a/external/runtime/Configurations.props +++ b/external/runtime/Configurations.props @@ -4,8 +4,6 @@ netcoreapp-Windows_NT; netcoreapp-Unix; - netcoreapp2.0-Windows_NT; - netcoreapp2.0-Unix; uap10.0.16299aot; uap; uapaot; diff --git a/external/runtime/runtime.depproj b/external/runtime/runtime.depproj index 674d39947379..1bbd38428c69 100644 --- a/external/runtime/runtime.depproj +++ b/external/runtime/runtime.depproj @@ -4,7 +4,6 @@ $(PackageRID) true - 2.0.0 $(NoWarn);NU1603;NU1605 diff --git a/pkg/Microsoft.Windows.Compatibility/Microsoft.Windows.Compatibility.pkgproj b/pkg/Microsoft.Windows.Compatibility/Microsoft.Windows.Compatibility.pkgproj index ea4f0d53be43..ffa4e7e23cbd 100644 --- a/pkg/Microsoft.Windows.Compatibility/Microsoft.Windows.Compatibility.pkgproj +++ b/pkg/Microsoft.Windows.Compatibility/Microsoft.Windows.Compatibility.pkgproj @@ -8,9 +8,6 @@ - - 4.4.0 - 4.5.0 @@ -29,6 +26,7 @@ + @@ -42,6 +40,7 @@ + @@ -68,10 +67,6 @@ $(ServiceModelVersion) - - - - diff --git a/pkg/Microsoft.Windows.Compatibility/tests/Microsoft.Windows.Compatibility.Validation.csproj b/pkg/Microsoft.Windows.Compatibility/tests/Microsoft.Windows.Compatibility.Validation.csproj index 45ec7083556e..b183bd2c2f54 100644 --- a/pkg/Microsoft.Windows.Compatibility/tests/Microsoft.Windows.Compatibility.Validation.csproj +++ b/pkg/Microsoft.Windows.Compatibility/tests/Microsoft.Windows.Compatibility.Validation.csproj @@ -1,11 +1,19 @@ - true - true + true + Microsoft.Private.CoreFx.NETCoreApp;runtime.$(RID).Microsoft.Private.CoreFx.NETCoreApp;$(PackageConflictPreferredPackages) + true - + + + + + + + + \ No newline at end of file diff --git a/pkg/Microsoft.Windows.Compatibility/tests/publishcompatibilityassets.ps1 b/pkg/Microsoft.Windows.Compatibility/tests/publishcompatibilityassets.ps1 index 0db2d675c054..0dac35cb5b7b 100644 --- a/pkg/Microsoft.Windows.Compatibility/tests/publishcompatibilityassets.ps1 +++ b/pkg/Microsoft.Windows.Compatibility/tests/publishcompatibilityassets.ps1 @@ -1,27 +1,16 @@ -$repoRoot = ((get-item $PSScriptRoot).parent.parent.parent.FullName); -$winRID = "win7-x64"; -$dotnetPath = -join($repoRoot, "\Tools\dotnetcli\dotnet.exe") -$csprojPath = -join($PSScriptRoot, "\", (Get-ChildItem $PSScriptRoot"\*.csproj" | Select-Object -ExpandProperty Name)) -$packagesCachePath = -join($repoRoot, "\packages") -$localPackageSourcePath = -join($repoRoot, "\bin\packages\Debug\") -$packageName = "Microsoft.Windows.Compatibility" +param ( +$targetFramework = "netcoreapp2.1", +$runtimeVersion = "2.1.0-*", +$refDirName = "netcoreapp21_compat", +$rid = "win7-x64" +) -if (!(Test-Path $localPackageSourcePath)) -{ - $localPackageSourcePath = -join($repoRoot, "\bin\packages\Release\") - if (!(Test-Path $localPackageSourcePath)) - { - Write-Error -Message "Local package source must exist."; - Exit; - } -} - -function _getPackageVersion() +function _getPackageVersion($packageName) { $searchPattern = -join($localPackageSourcePath, $packageName, ".[0-9].[0-9].[0-9]*.nupkg") if (!(Test-Path $searchPattern)) { - Write-Error -Message (-join("Didn't find package: Microsoft.Windows.Compatibility in source: ", $localPackageSourcePath, " please run build -allConfigurations")) + Write-Error -Message (-join("Didn't find package: ", $packageName, " in source: ", $localPackageSourcePath, " please run build -allConfigurations")) Exit; } @@ -34,32 +23,46 @@ function _getPackageVersion() return $matches[0] } -function _restoreAndPublish($targetFramework, $rid, $runtimeFramework, $refDirName) +$repoRoot = ((get-item $PSScriptRoot).parent.parent.parent.FullName); +$dotnetPath = -join($repoRoot, "\Tools\dotnetcli\dotnet.exe") +$csprojPath = -join($PSScriptRoot, "\", (Get-ChildItem $PSScriptRoot"\*.csproj" | Select-Object -ExpandProperty Name)) +$packagesCachePath = -join($repoRoot, "\packages") +$localPackageSourcePath = -join($repoRoot, "\bin\packages\Debug\") +$restoreSources = -join("https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;https://api.nuget.org/v3/index.json;https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;", $localPackageSourcePath) + +if (!(Test-Path $localPackageSourcePath)) { - $packageVersion = _getPackageVersion - & $dotnetPath restore --packages $packagesCachePath /p:RestoreSources="https://api.nuget.org/v3/index.json;$localPackageSourcePath" /p:TargetFramework=$targetFramework /p:CompatibilityPackageVersion=$packageVersion $csprojPath - & $dotnetPath publish -r $rid /p:RestoreSources="https://api.nuget.org/v3/index.json;$localPackageSourcePath" /p:TargetFramework=$targetFramework /p:CompatibilityPackageVersion=$packageVersion /p:RuntimeFrameworkVersion=$runtimeFramework $csprojPath + $localPackageSourcePath = -join($repoRoot, "\bin\packages\Release\") + if (!(Test-Path $localPackageSourcePath)) + { + Write-Error -Message "Local package source must exist."; + Exit; + } +} - $outputPath = -join($PSScriptRoot, "\bin\Debug\", $targetFramework, "\", $rid, "\publish\refs\") +$compatPackageVersion = _getPackageVersion "Microsoft.Windows.Compatibility" +$privatePackageVersion = _getPackageVersion "Microsoft.Private.CoreFx.NETCoreApp" - if (!(Test-Path $outputPath)) - { - Write-Error -Message (-join("There was an error while publishing for framework: ", $targetFramework)) - Exit; - } +& $dotnetPath restore --packages $packagesCachePath /p:RestoreSources="$restoreSources" /p:TargetFramework=$targetFramework /p:CompatibilityPackageVersion=$compatPackageVersion /p:PrivateCorefxPackageVersion=$privatePackageVersion /p:RID=$rid $csprojPath - Write-Output (-join("Published succedded for: ", $targetFramework)) - - $refPath = -join($repoRoot, "\bin\ref\", $refDirName) +& $dotnetPath publish -r $rid /p:RestoreSources="$restoreSources" /p:TargetFramework=$targetFramework /p:CompatibilityPackageVersion=$compatPackageVersion /p:RuntimeFrameworkVersion=$runtimeFramework /p:PrivateCorefxPackageVersion=$privatePackageVersion /p:RID=$rid $csprojPath - if (Test-Path $refPath) - { - Remove-Item $refPath -r -force - } +$outputPath = -join($PSScriptRoot, "\bin\Debug\", $targetFramework, "\", $rid, "\publish\refs\") - New-Item $refPath -ItemType directory - Copy-Item (-join($outputPath, "*")) $refPath +if (!(Test-Path $outputPath)) +{ + Write-Error -Message (-join("There was an error while publishing for framework: ", $targetFramework)) + Exit; +} + +Write-Output (-join("Published succedded for: ", $targetFramework)) + +$refPath = -join($repoRoot, "\bin\ref\", $refDirName) + +if (Test-Path $refPath) +{ + Remove-Item $refPath -r -force } -_restoreAndPublish "netcoreapp2.0" $winRID "2.0.0" "netcoreapp20_compat" -_restoreAndPublish "netstandard2.0" $winRID "2.0.0" "netstandard20_compat" \ No newline at end of file +New-Item $refPath -ItemType directory +Copy-Item (-join($outputPath, "*")) $refPath diff --git a/src/System.Buffers/pkg/System.Buffers.pkgproj b/src/System.Buffers/pkg/System.Buffers.pkgproj index 6794eed7f54f..cb2771fe58a5 100644 --- a/src/System.Buffers/pkg/System.Buffers.pkgproj +++ b/src/System.Buffers/pkg/System.Buffers.pkgproj @@ -2,8 +2,11 @@ + + netcore45;netcoreapp1.0;wpa81;$(AllXamarinFrameworks) + - net45;netcore45;netcoreapp1.0;wpa81;$(AllXamarinFrameworks) + net45 @@ -11,14 +14,8 @@ therefore it cannot reference NETStandard.Library --> - - - .NETCoreApp;UAP - + + \ No newline at end of file diff --git a/src/System.Buffers/ref/Configurations.props b/src/System.Buffers/ref/Configurations.props index 082026dc1a10..feebf8aa9e4e 100644 --- a/src/System.Buffers/ref/Configurations.props +++ b/src/System.Buffers/ref/Configurations.props @@ -4,11 +4,12 @@ netstandard; netstandard1.1; - uap10.0.16299; + net45; $(PackageConfigurations); uap; + netfx; diff --git a/src/System.Buffers/ref/System.Buffers.csproj b/src/System.Buffers/ref/System.Buffers.csproj index 417dfc11e11e..1a8194409331 100644 --- a/src/System.Buffers/ref/System.Buffers.csproj +++ b/src/System.Buffers/ref/System.Buffers.csproj @@ -3,13 +3,18 @@ {11AE73F7-3532-47B9-8FF6-B4F22D76456C} + + 4.0.2.0 + + + + - - @@ -21,5 +26,8 @@ + + + - + \ No newline at end of file diff --git a/src/System.Buffers/src/Configurations.props b/src/System.Buffers/src/Configurations.props index b57c5a66bc44..f8eca1e4fade 100644 --- a/src/System.Buffers/src/Configurations.props +++ b/src/System.Buffers/src/Configurations.props @@ -4,10 +4,6 @@ netstandard1.1; netstandard; - netcoreapp2.0-Windows_NT; - netcoreapp2.0-Unix; - uap10.0.16299-Windows_NT; - uap10.0.16299aot-Windows_NT; $(PackageConfigurations); diff --git a/src/System.Buffers/src/System.Buffers.csproj b/src/System.Buffers/src/System.Buffers.csproj index 0805f569997a..0ac14425d5f6 100644 --- a/src/System.Buffers/src/System.Buffers.csproj +++ b/src/System.Buffers/src/System.Buffers.csproj @@ -12,10 +12,6 @@ - - - - @@ -24,10 +20,6 @@ - - - -