Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<!-- only build during the AllConfigurations leg because it depends on other nupkgs from this leg -->
<ItemGroup Condition="'$(BuildAllConfigurations)' == 'true'">
<Project Include="$(MSBuildProjectName).pkgproj" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />
</Project>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<PackageVersion>2.0.0</PackageVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<LibraryPackage>
<Version>4.4.0</Version>
</LibraryPackage>
<PrereleaseLibraryPackage>
<Version>4.5.0</Version>
</PrereleaseLibraryPackage>
</ItemDefinitionGroup>
<ItemGroup>
<PackageIndex Include="$(MSBuildThisFileDirectory)externalIndex.json" />
</ItemGroup>
<ItemGroup>
<PrereleaseLibraryPackage Include="Microsoft.Win32.Registry" />
<PrereleaseLibraryPackage Include="Microsoft.Win32.Registry.AccessControl" />
<PrereleaseLibraryPackage Include="System.CodeDom" />
<PrereleaseLibraryPackage Include="System.ComponentModel.Composition" />
<PrereleaseLibraryPackage Include="System.Configuration.ConfigurationManager" />
<PrereleaseLibraryPackage Include="System.Data.Odbc" />
<PrereleaseLibraryPackage Include="System.Data.DataSetExtensions" />
<PrereleaseLibraryPackage Include="System.Drawing.Common" />
<PrereleaseLibraryPackage Include="System.Diagnostics.EventLog" />
<PrereleaseLibraryPackage Include="System.Diagnostics.PerformanceCounter" />
<PrereleaseLibraryPackage Include="System.DirectoryServices" />
<PrereleaseLibraryPackage Include="System.DirectoryServices.AccountManagement" />
<PrereleaseLibraryPackage Include="System.DirectoryServices.Protocols" />
<PrereleaseLibraryPackage Include="System.IO.FileSystem.AccessControl" />
<PrereleaseLibraryPackage Include="System.IO.Packaging" />
<PrereleaseLibraryPackage Include="System.IO.Pipes.AccessControl" />
<PrereleaseLibraryPackage Include="System.IO.Ports" />
<PrereleaseLibraryPackage Include="System.Management" />
<PrereleaseLibraryPackage Include="System.Runtime.Caching" />
<PrereleaseLibraryPackage Include="System.Security.AccessControl" />
<PrereleaseLibraryPackage Include="System.Security.Cryptography.Pkcs" />
<PrereleaseLibraryPackage Include="System.Security.Cryptography.ProtectedData" />
<PrereleaseLibraryPackage Include="System.Security.Cryptography.Xml" />
<PrereleaseLibraryPackage Include="System.Security.Permissions" />
<PrereleaseLibraryPackage Include="System.Security.Principal.Windows" />
<PrereleaseLibraryPackage Include="System.ServiceModel.Syndication" />
<PrereleaseLibraryPackage Include="System.ServiceProcess.ServiceController" />
<PrereleaseLibraryPackage Include="System.Text.Encoding.CodePages" />
<PrereleaseLibraryPackage Include="System.Threading.AccessControl" />
<!-- External pre-release packages -->
<LibraryPackage Include="System.ServiceModel.Primitives">
<Version>4.4.1-servicing-25917-01</Version>
</LibraryPackage>
<!-- Stable packages shipped already for netcoreapp2.0 -->
<LibraryPackage Include="System.Data.SqlClient" />
<LibraryPackage Include="System.Security.Cryptography.Cng" />
<LibraryPackage Include="System.ServiceModel.Duplex" />
<LibraryPackage Include="System.ServiceModel.Http" />
<LibraryPackage Include="System.ServiceModel.NetTcp" />
<LibraryPackage Include="System.ServiceModel.Security" />
</ItemGroup>
<ItemGroup>
<Dependency Include="@(LibraryPackage)" />
<Dependency Include="@(PrereleaseLibraryPackage)" />
<!-- Include dependency to shims package -->
<Dependency Include="Microsoft.Windows.Compatibility.Shims">
<Version>$(CompatibilityShimsPackageVersion)</Version>
</Dependency>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>

View File

@@ -0,0 +1,34 @@
{
"Packages": {
"System.ServiceModel.Primitives": {
"StableVersions": [
"4.4.0",
"4.3.0"
]
},
"System.ServiceModel.Duplex": {
"StableVersions": [
"4.4.0",
"4.3.0"
]
},
"System.ServiceModel.Http": {
"StableVersions": [
"4.4.0",
"4.3.0"
]
},
"System.ServiceModel.NetTcp": {
"StableVersions": [
"4.4.0",
"4.3.0"
]
},
"System.ServiceModel.Security": {
"StableVersions": [
"4.4.0",
"4.3.0"
]
}
}
}

View File

@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DisableImplicitFrameworkReferences Condition="'$(TargetFramework)' == 'netcoreapp2.0'">true</DisableImplicitFrameworkReferences>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="$(CompatibilityPackageVersion)" />
<PackageReference Condition="'$(TargetFramework)' == 'netcoreapp2.0'" Include="Microsoft.NETCore.App" Version="2.0.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,65 @@
$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"
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()
{
$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"))
Exit;
}
if (!((get-item $searchPattern).FullName -match '([0-9].[0-9].[0-9][-a-z0-9]*)'))
{
Write-Error -Message "Package name is invalid"
Exit;
}
return $matches[0]
}
function _restoreAndPublish($targetFramework, $rid, $runtimeFramework, $refDirName)
{
$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
$outputPath = -join($PSScriptRoot, "\bin\Debug\", $targetFramework, "\", $rid, "\publish\refs\")
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
}
New-Item $refPath -ItemType directory
Copy-Item (-join($outputPath, "*")) $refPath
}
_restoreAndPublish "netcoreapp2.0" $winRID "2.0.0" "netcoreapp20_compat"
_restoreAndPublish "netstandard2.0" $winRID "2.0.0" "netstandard20_compat"