Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Microsoft.NETCore.App.Host.sfxproj « Microsoft.NETCore.App « sfx « pkg « installer « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f32e7eb5e853bc1c3baca16dc591095cad83f862 (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
61
62
63
64
65
66
67
68
69
<Project Sdk="Microsoft.NET.Sdk">
  <Sdk Name="Microsoft.DotNet.SharedFramework.Sdk" />

  <PropertyGroup>
    <SkipBuild Condition="'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)'">true</SkipBuild>
    <PlatformPackageType>AppHostPack</PlatformPackageType>
    <UseTemplatedPlatformManifest>true</UseTemplatedPlatformManifest>
    <ArchiveName>dotnet-apphost-pack</ArchiveName>
    <InstallerName>dotnet-apphost-pack</InstallerName>
    <VSInsertionShortComponentName>NetCore.AppHostPack</VSInsertionShortComponentName>
    <OverridePackageId Condition="'$(PgoInstrument)' != ''">$(SharedFrameworkName).PGO</OverridePackageId>
  </PropertyGroup>

  <!--
    See https://github.com/dotnet/core-setup/issues/7846. Cross-arch MSI installers are needed for
    C++/CLI project system support.
  -->
  <ItemGroup>
    <CrossArchSdkMsiInstallerArch Include="x86;x64" />
  </ItemGroup>

  <ItemGroup>
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/apphost$(ExeSuffix)" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/$(LibPrefix)nethost$(LibSuffix)" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/$(LibPrefix)nethost$(StaticLibSuffix)" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/nethost.h" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/hostfxr.h" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/coreclr_delegates.h" />
  </ItemGroup>
  <ItemGroup Condition="'$(RuntimeFlavor)' != 'Mono'">
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/singlefilehost$(ExeSuffix)" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetOS)' == 'windows'">
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/comhost.dll" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/ijwhost.dll" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/ijwhost.lib" />
    <NativeRuntimeAsset Include="$(DotNetHostBinDir)/libnethost.lib" />
  </ItemGroup>

  <ItemGroup>
    <_SymbolFiles Condition="'$(TargetOS)' == 'windows'"
                    Include="@(NativeRuntimeAsset->'%(RootDir)%(Directory)PDB/%(Filename).pdb')"
                    IsSymbolFile="true"
                    IsNative="true" />
    <_SymbolFiles Condition="'$(TargetOS)' != 'windows'"
                    Include="@(NativeRuntimeAsset->'%(RootDir)%(Directory)PDB/%(Filename)%(Extension)%(SymbolsSuffix)')"
                    IsSymbolFile="true"
                    IsNative="true" />
  </ItemGroup>

  <Target Name="AddSymbolFiles" BeforeTargets="GetFilesToPackage">
    <ItemGroup>
        <FilesToPackage Include="@(_SymbolFiles)" Condition="Exists('%(Identity)')" />
    </ItemGroup>
  </Target>

  <!--
    These files are not signed, because they're templates: they are modified by the SDK on the
    user's machine before use. We have a signing validation exception for Visual Studio insertion's
    signature validation. However, the exceptions are based on the file IDs, which are not stable
    because product version is in the path. We need to force these IDs to be stable by modifying
    the WiX source file. https://github.com/dotnet/core-setup/issues/7327
  -->
  <ItemGroup>
    <HeatOutputFileElementToStabilize Include="native\apphost.exe" ReplacementId="apphosttemplateapphostexe" />
    <HeatOutputFileElementToStabilize Include="native\singlefilehost.exe" ReplacementId="staticapphosttemplateapphostexe" />
    <HeatOutputFileElementToStabilize Include="native\comhost.dll" ReplacementId="comhosttemplatecomhostdll" />
  </ItemGroup>
</Project>