forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostpretest.proj
More file actions
27 lines (24 loc) · 1.37 KB
/
Copy pathhostpretest.proj
File metadata and controls
27 lines (24 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Project Sdk="Microsoft.Build.Traversal">
<!-- Build all test project assets. Output will be used by tests. -->
<ItemGroup>
<ProjectReference Include="$(InstallerProjectRoot)tests\Assets\Projects\**\*.csproj" />
</ItemGroup>
<!-- Set up the shared framework copy the tests should use. -->
<Target Name="SetUpSharedFrameworkPublish"
BeforeTargets="Build">
<ItemGroup>
<RuntimeSharedFrameworkProject Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj" Condition="'$(RuntimeFlavor)' == 'CoreCLR'" />
<RuntimeSharedFrameworkProject Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.Mono.sfxproj" Condition="'$(RuntimeFlavor)' == 'Mono'" />
</ItemGroup>
<!--
Explicitly restore before PublishToDisk. IsRestoring property ensures that this evaluation won't be reused.
See https://github.com/dotnet/msbuild/issues/2811
-->
<MSBuild Projects="@(RuntimeSharedFrameworkProject)"
Targets="Restore"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid())" />
<MSBuild Projects="$(InstallerProjectRoot)pkg\sfx\bundle\Microsoft.NETCore.App.Bundle.bundleproj"
Targets="PublishToDisk"
Properties="OutputPath=$(TestArtifactsOutputRoot)sharedFrameworkPublish/" />
</Target>
</Project>