forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotnet-hostfxr.proj
More file actions
56 lines (48 loc) · 2.78 KB
/
Copy pathdotnet-hostfxr.proj
File metadata and controls
56 lines (48 loc) · 2.78 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
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
<Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<SkipBuild Condition="'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)'">true</SkipBuild>
<GenerateInstallers>true</GenerateInstallers>
<ArchiveName>dotnet-hostfxr-internal</ArchiveName>
<InstallerName>dotnet-hostfxr</InstallerName>
<InstallerName Condition="'$(TargetOS)' == 'OSX'">dotnet-hostfxr-internal</InstallerName>
<PackageBrandNameSuffix>Host FX Resolver</PackageBrandNameSuffix>
<PlatformPackageType>ToolPack</PlatformPackageType>
<VSInsertionShortComponentName>NetCore.HostFXR</VSInsertionShortComponentName>
<WixIncludeRegistryKeys>true</WixIncludeRegistryKeys>
<RegKeyProductName>hostfxr</RegKeyProductName>
<WixDependencyKeyName>Dotnet_CLI_HostFxr</WixDependencyKeyName>
<OutputFilesCandleVariable>HostFxrSrc</OutputFilesCandleVariable>
<UseBrandingNameInLinuxPackageDescription>true</UseBrandingNameInLinuxPackageDescription>
<MacOSComponentNamePackType>hostfxr</MacOSComponentNamePackType>
<MacOSPackageDescription>The .NET HostFxr</MacOSPackageDescription>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Archives" Version="$(MicrosoftDotNetBuildTasksArchivesVersion)" />
</ItemGroup>
<ItemGroup>
<CandleVariables Include="AuthoredRegistryKeys;RegKeyNugetVersionValue" Value="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." />
<Copy SourceFiles="$(DotNetHostBinDir)\$(LibPrefix)hostfxr$(LibSuffix)"
DestinationFolder="$(OutputPath)/host/fxr/$(Version)" />
</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." />
<Copy SourceFiles="$(DotNetHostBinDir)\hostfxr.pdb"
Condition="'$(TargetOS)' == 'windows'"
DestinationFolder="$(SymbolsOutputPath)" />
<Copy SourceFiles="$(DotNetHostBinDir)\$(LibPrefix)hostfxr$(LibSuffix)$(SymbolsSuffix)"
Condition="'$(TargetOS)' != 'windows'"
DestinationFolder="$(SymbolsOutputPath)" />
</Target>
<Target Name="AddLinuxPackageInformation" BeforeTargets="GetDebInstallerJsonProperties;GetRpmInstallerJsonProperties">
<ItemGroup Condition="'$(GenerateDeb)' == 'true'">
<LinuxPackageDependency Include="libc6;libgcc1;libstdc++6" />
</ItemGroup>
<ItemGroup>
<LinuxPackageDependency Include="dotnet-host" Version="$(InstallerPackageVersion)" />
<RpmJsonProperty Include="directories" Object="[ "/usr/share/dotnet", "/usr/share/doc/$(VersionedInstallerName)" ]" />
</ItemGroup>
</Target>
</Project>