162 строки
8.0 KiB
XML
162 строки
8.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<UsingTask TaskName="PrereleaseResolveNuGetPackageAssets" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll"/>
|
|
<ItemGroup>
|
|
<TestTargetFramework Include=".NETCoreApp,Version=v3.0">
|
|
<Folder>netcoreapp3.0</Folder>
|
|
</TestTargetFramework>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
|
|
<PackagePlatform Condition="'$(PackagePlatform)' == ''">$(__BuildArch)</PackagePlatform>
|
|
<PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
|
|
<MinOSForArch>win7</MinOSForArch>
|
|
<MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
|
|
<MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<CoreRootProjectLockJsonFiles Include="$(SourceDir)Common\test_runtime\obj\project.assets.json"/>
|
|
<CoreRootProjectLockJsonFiles Include="$(SourceDir)Common\test_dependencies\obj\project.assets.json"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<RefProjectLockJsonFiles Include="$(SourceDir)Common\targeting_pack_ref\obj\project.assets.json"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProductProjectLockJsonFiles Include="$(SourceDir)Common\build_against_pkg_dependencies\obj\project.assets.json"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<CrossGenFiles Include="..\packages\runtime.$(TargetRid).Microsoft.NETCore.Runtime.CoreCLR\$(DesiredPackageVersionArg)\tools\crossgen*"/>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<ProductDestination>$(ProjectDir)\..\bin\Product\$(BuildOS).$(BuildArch).$(BuildType)</ProductDestination>
|
|
<RefDestination>$(ProductDestination)\ref</RefDestination>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyDependencyToCoreRoot"
|
|
Inputs="@(CoreRootProjectLockJsonFiles)"
|
|
Outputs="$(CORE_ROOT)\*.*">
|
|
|
|
<!-- This will use the overridden PrereleaseResolveNuGetPackageAssets, which outputs copy local items
|
|
for the xunit wrapper projects -->
|
|
<PrereleaseResolveNuGetPackageAssets AllowFallbackOnTargetSelection="false"
|
|
IncludeFrameworkReferences="false"
|
|
NuGetPackagesDirectory="$(PackagesDir)"
|
|
RuntimeIdentifier="$(TargetRid)"
|
|
ProjectLanguage="$(Language)"
|
|
ProjectLockFile="%(CoreRootProjectLockJsonFiles.Identity)"
|
|
TargetMonikers="@(TestTargetFramework)">
|
|
<Output TaskParameter="ResolvedAnalyzers" ItemName="Analyzer" />
|
|
<Output TaskParameter="ResolvedReferences" ItemName="Reference" />
|
|
<Output TaskParameter="ResolvedCopyLocalItems" ItemName="RunTimeCopyLocal" />
|
|
</PrereleaseResolveNuGetPackageAssets>
|
|
<ItemGroup>
|
|
<RunTimeDependecyExclude Include="$(CORE_ROOT)\**\*.*" />
|
|
<RunTimeDependecyExcludeFiles Include="@(RunTimeDependecyExclude -> '%(FileName)%(Extension)')" />
|
|
<RunTimeDependecyExcludeFiles Include="@(RunTimeDependecyExclude -> '%(FileName).ni%(Extension)')" />
|
|
<RunTimeDependecyExcludeFiles Include="@(RunTimeDependecyExclude -> '%(FileName).pdb')" />
|
|
<AllResolvedRuntimeDependencies Include="@(RunTimeCopyLocal -> '%(FileName)%(Extension)')">
|
|
<File>%(Identity)</File>
|
|
</AllResolvedRuntimeDependencies>
|
|
<RunTimeDependecyCopyLocalFile Include="@(AllResolvedRuntimeDependencies)" Exclude="@(RunTimeDependecyExcludeFiles)"/>
|
|
<RunTimeDependecyCopyLocal Include="@(RunTimeDependecyCopyLocalFile -> '%(File)')" />
|
|
<RunTimeDependecyCopyLocal Include="$(TargetingPackPath)/*" />
|
|
</ItemGroup>
|
|
|
|
<Copy
|
|
SourceFiles="@(RunTimeDependecyCopyLocal)"
|
|
DestinationFolder="$(CORE_ROOT)"
|
|
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
|
|
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
|
|
Retries="$(CopyRetryCount)"
|
|
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
|
|
UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
|
|
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
|
|
</Copy>
|
|
</Target>
|
|
|
|
<Target Name="CopyDependencyToRef"
|
|
Inputs="@(RefProjectLockJsonFiles)"
|
|
Outputs="$(RefDestination)\*.*">
|
|
|
|
<!-- This will use the overridden PrereleaseResolveNuGetPackageAssets, which outputs copy local items
|
|
for the xunit wrapper projects -->
|
|
<PrereleaseResolveNuGetPackageAssets AllowFallbackOnTargetSelection="true"
|
|
IncludeFrameworkReferences="false"
|
|
NuGetPackagesDirectory="$(PackagesDir)"
|
|
RuntimeIdentifier="$(TargetRid)"
|
|
ProjectLanguage="$(Language)"
|
|
ProjectLockFile="%(RefProjectLockJsonFiles.Identity)"
|
|
TargetMonikers="@(TestTargetFramework)">
|
|
<Output TaskParameter="ResolvedAnalyzers" ItemName="RefAnalyzer" />
|
|
<Output TaskParameter="ResolvedReferences" ItemName="RefReference" />
|
|
<Output TaskParameter="ResolvedCopyLocalItems" ItemName="RefRunTimeCopyLocal" />
|
|
</PrereleaseResolveNuGetPackageAssets>
|
|
|
|
<Copy
|
|
SourceFiles="@(RefRunTimeCopyLocal)"
|
|
DestinationFolder="$(RefDestination)"
|
|
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
|
|
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
|
|
Retries="$(CopyRetryCount)"
|
|
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
|
|
UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
|
|
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
|
|
</Copy>
|
|
</Target>
|
|
|
|
<Target Name="CopyDependencyToProduct"
|
|
Inputs="@(ProductProjectLockJsonFiles)"
|
|
Outputs="$(ProductDestination)\*.*">
|
|
|
|
<!-- This will use the overridden PrereleaseResolveNuGetPackageAssets, which outputs copy local items
|
|
for the xunit wrapper projects -->
|
|
<PrereleaseResolveNuGetPackageAssets AllowFallbackOnTargetSelection="true"
|
|
IncludeFrameworkReferences="false"
|
|
NuGetPackagesDirectory="$(PackagesDir)"
|
|
RuntimeIdentifier="$(TargetRid)"
|
|
ProjectLanguage="$(Language)"
|
|
ProjectLockFile="%(ProductProjectLockJsonFiles.Identity)"
|
|
TargetMonikers="@(TestTargetFramework)">
|
|
<Output TaskParameter="ResolvedAnalyzers" ItemName="RefAnalyzer" />
|
|
<Output TaskParameter="ResolvedReferences" ItemName="RefReference" />
|
|
<Output TaskParameter="ResolvedCopyLocalItems" ItemName="RefRunTimeCopyLocal" />
|
|
</PrereleaseResolveNuGetPackageAssets>
|
|
|
|
<Copy
|
|
SourceFiles="@(RefRunTimeCopyLocal)"
|
|
DestinationFolder="$(ProductDestination)"
|
|
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
|
|
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
|
|
Retries="$(CopyRetryCount)"
|
|
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
|
|
UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
|
|
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
|
|
</Copy>
|
|
</Target>
|
|
|
|
<Target Name="CopyCrossgenToProduct"
|
|
AfterTargets="CopyDependencyToProduct"
|
|
Outputs="$(ProductDestination)\crossgen.exe;$(CORE_OVERLAY)\crossgen.exe">
|
|
|
|
<Copy
|
|
SourceFiles="@(CrossGenFiles)"
|
|
DestinationFolder="$(ProductDestination)"
|
|
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
|
|
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
|
|
Retries="$(CopyRetryCount)"
|
|
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
|
|
UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
|
|
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
|
|
</Copy>
|
|
|
|
</Target>
|
|
|
|
</Project>
|