|
4 | 4 | <ImportNuGetBuildTasksPackTargetsFromSdk>false</ImportNuGetBuildTasksPackTargetsFromSdk> |
5 | 5 | <_RoslynPublishReadyToRun>false</_RoslynPublishReadyToRun> |
6 | 6 | <_RoslynPublishReadyToRun Condition="'$(Configuration)' == 'Release'">true</_RoslynPublishReadyToRun> |
7 | | - |
8 | | - <!-- |
9 | | - List of runtime identifiers that we want to publish an executable for. |
10 | | - This cannot be set in the base project as it will cause issues when roslyn is built |
11 | | - as a test project for SDK insertions. The RuntimeIdentifiers property will cause the build to |
12 | | - attempt to download unpublished packages, which fails (until the packages eventually get published). |
13 | | -
|
14 | | - The test doesn't actually run pack, so we can instead skip setting the RuntimeIdentifiers property unless |
15 | | - we're actually trying to build packages. |
16 | | - --> |
17 | | - <!-- |
18 | | - When building a VMR vertical, we don't need to pack everything. Just pack the passed in TargetRid or BaseOS. |
19 | | - TargetRid and BaseOS are provided to roslyn via the build arguments passed in the VMR orchestrator's repo project. |
20 | | - https://github.com/dotnet/dotnet/blob/main/repo-projects/roslyn.proj. For definitions of the TargetRid |
21 | | - and other common properties, see https://github.com/dotnet/arcade/blob/main/Documentation/UnifiedBuild/Unified-Build-Controls.md |
22 | | - --> |
23 | | - <RuntimeIdentifiers Condition="'$(TargetRid)' != ''">$(TargetRid)</RuntimeIdentifiers> |
24 | | - <RuntimeIdentifiers Condition="'$(BaseOS)' != ''">$(BaseOS)</RuntimeIdentifiers> |
25 | | - <RuntimeIdentifiers Condition="'$(TargetRid)' == '' and '$(BaseOS)' == ''">win-x64;win-arm64;linux-x64;linux-arm64;linux-musl-x64;linux-musl-arm64;osx-x64;osx-arm64</RuntimeIdentifiers> |
26 | 7 | </PropertyGroup> |
27 | 8 |
|
28 | 9 | <Target Name="Pack"> |
|
43 | 24 |
|
44 | 25 | We also pass the RestoreUseStaticGraphEvaluation=false flag to workaround a long path issue when calling the restore target. |
45 | 26 | See https://github.com/NuGet/Home/issues/11968 |
| 27 | +
|
| 28 | + We also pass the EnableRuntimePackDownload/EnableAppHostPackDownload flags to indicate we wish for this restore/pack to download |
| 29 | + the required runtime/apphost packages as those will be needed during the pack. |
46 | 30 | --> |
47 | | - <MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Restore" Properties="PublishReadyToRun=$(_RoslynPublishReadyToRun);RestoreUseStaticGraphEvaluation=false" /> |
| 31 | + <MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Restore" Properties="EnableRuntimePackDownload=true;EnableAppHostPackDownload=true;PublishReadyToRun=$(_RoslynPublishReadyToRun);RestoreUseStaticGraphEvaluation=false" /> |
48 | 32 |
|
49 | | - <MSBuild Projects="@(ProjectToPublish)" Targets="Pack" BuildInParallel="true" /> |
| 33 | + <MSBuild Projects="@(ProjectToPublish)" Targets="Pack" Properties="EnableRuntimePackDownload=true;EnableAppHostPackDownload=true" BuildInParallel="true" /> |
50 | 34 | </Target> |
51 | 35 |
|
52 | 36 | <!-- |
|
0 commit comments