-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
Copy pathMicrosoft.NETCore.App.Bundle.bundleproj
48 lines (40 loc) · 2.61 KB
/
Microsoft.NETCore.App.Bundle.bundleproj
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<!--
Name, used to generate the bundle upgrade code. Must stay the same to allow bundles in a given
product band to upgrade in place.
-->
<SkipBuild Condition="'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)' or '$(TargetsMobile)' == 'true'">true</SkipBuild>
<IsShipping Condition="'$(PgoInstrument)' == 'true'">false</IsShipping>
<BundleInstallerUpgradeCodeSeed>.NET Core Shared Framework Bundle Installer</BundleInstallerUpgradeCodeSeed>
<BundleThemeDirectory>$(MSBuildProjectDirectory)</BundleThemeDirectory>
<ArchiveName>dotnet-runtime</ArchiveName>
<InstallerName>dotnet-runtime</InstallerName>
<InstallerRuntimeIdentifiers>win-x86;win-x64;win-arm64;osx-x64;osx-arm64</InstallerRuntimeIdentifiers>
<BundleNameSuffix>Runtime</BundleNameSuffix>
<MacOSBundleTemplate>$(MSBuildProjectDirectory)/shared-framework-distribution-template-$(TargetArchitecture).xml</MacOSBundleTemplate>
<MacOSBundleIdentifierName>com.microsoft.dotnet.Microsoft.NETCore.App.$(ProductVersion).osx.$(TargetArchitecture)</MacOSBundleIdentifierName>
<MacOSBundleResourcesPath>osx_resources</MacOSBundleResourcesPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Condition="'$(BuildOnlyPgoInstrumentedAssets)' != 'true'" Include="Microsoft.DotNet.Build.Tasks.Installers" Version="$(MicrosoftDotNetBuildTasksInstallersVersion)" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Archives" Version="$(MicrosoftDotNetBuildTasksArchivesVersion)" />
</ItemGroup>
<ItemGroup>
<BundleComponentReference Include="../Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj" />
<BundleComponentReference Include="../installers/dotnet-hostfxr.proj" Condition="'$(TestReadyToRun)' != 'true'" />
<BundleComponentReference Include="../installers/dotnet-host.proj" Condition="'$(TestReadyToRun)' != 'true'" />
</ItemGroup>
<Target Name="PublishToDisk">
<Error Condition="'$(OutputPath)' == ''" Text="Publishing to disk requires the OutputPath to be set to the root of the path to write to." />
<MSBuild Projects="@(BundleComponentReference)"
Targets="PublishToDisk"
Properties="OutputPath=$(OutputPath)" />
</Target>
<Target Name="PublishSymbolsToDisk">
<Error Condition="'$(SymbolsOutputPath)' == ''" Text="Publishing to disk requires the SymbolsOutputPath to be set to the root of the path to write to." />
<MSBuild Projects="@(BundleComponentReference)"
Targets="PublishSymbolsToDisk"
Properties="SymbolsOutputPath=$(SymbolsOutputPath)" />
</Target>
</Project>