blob: 19679aa1701fa5dc98dc0421fcbb508cfecd6a05 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionProp>HostVersion</VersionProp>
<InstallerName>dotnet-host</InstallerName>
<GenerateSharedFrameworkPart>true</GenerateSharedFrameworkPart>
<SkipBuildOnRuntimePackOnlyOS>true</SkipBuildOnRuntimePackOnlyOS>
</PropertyGroup>
<Target Name="SetupHostSpecificWixBuild"
DependsOnTargets="GetInstallerBrandingNames"
BeforeTargets="GetWixBuildConfiguration">
<PropertyGroup>
<WixProductMoniker>$(SharedHostBrandName)</WixProductMoniker>
<RegKeyProductName>sharedhost</RegKeyProductName>
<WixDependencyKeyName>Dotnet_CLI_SharedHost</WixDependencyKeyName>
<MajorUpgradeSchedule>afterInstallExecute</MajorUpgradeSchedule>
<VSInsertionShortComponentName>SharedHost</VSInsertionShortComponentName>
<PublishRootDir>$(IntermediateOutputPath)publishRoot/</PublishRootDir>
</PropertyGroup>
<!-- Always clean this up to avoid side-by-side versions in unclean dev builds. -->
<RemoveDir Directories="$(PublishRootDir)" />
<!-- copy shared host layout -->
<Copy SourceFiles="$(DotNetHostBinDir)/dotnet$(ApplicationFileExtension)"
DestinationFolder="$(PublishRootDir)" />
<Copy SourceFiles="$(InstallerProjectRoot)pkg\THIRD-PARTY-NOTICES.TXT"
DestinationFiles="$(PublishRootDir)ThirdPartyNotices.txt" />
<Copy SourceFiles="$(RepoRoot)LICENSE.TXT"
DestinationFiles="$(PublishRootDir)LICENSE.txt"
Condition="'$(TargetsUnix)' == 'true'"/>
<Copy SourceFiles="$(InstallerProjectRoot)pkg\LICENSE-MSFT.TXT"
DestinationFiles="$(PublishRootDir)LICENSE.txt"
Condition="'$(TargetsUnix)' != 'true'"/>
<ItemGroup>
<WixSrcFile Include="host.wxs" />
<WixExtraComponentGroupRefId Include="InstallSharedHostandDetectionKeys" />
<CandleVariables Include="ExtraPropertyRefIds" Value="ProductCPU;RTM_ProductVersion" />
<CandleVariables Include="HostSrc" Value="$(PublishRootDir)" />
</ItemGroup>
</Target>
<ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
<NativeBinary Include="$(DotNetHostBinDir)/dotnet$(ApplicationFileExtension)" />
<File Include="@(NativeBinary)">
<TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
<IsNative>true</IsNative>
</File>
</ItemGroup>
</Project>
|