aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj')
-rw-r--r--src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj b/src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj
new file mode 100644
index 00000000..f347ca0b
--- /dev/null
+++ b/src/ext/Bal/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj
@@ -0,0 +1,44 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup>
6 <TargetFramework>netcoreapp3.1</TargetFramework>
7 <RootNamespace>WixToolset.Dnc.Host</RootNamespace>
8 <Description>WiX Toolset .NET Core BA Host</Description>
9 <Title>WiX Toolset .NET Core BA Host</Title>
10 <DebugType>embedded</DebugType>
11 <PlatformTarget>AnyCPU</PlatformTarget>
12 </PropertyGroup>
13
14 <ItemGroup>
15 <HeaderPath Include="$(BaseOutputPath)obj\$(AssemblyName).h">
16 <Visible>False</Visible>
17 </HeaderPath>
18 </ItemGroup>
19
20 <Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)">
21 <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
22 <Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" />
23 </GetAssemblyIdentity>
24 <ItemGroup>
25 <Line Include='#define DNC_ASSEMBLY_FILE_NAME L"$(AssemblyName).dll"' />
26 <Line Include='#define DNC_ASSEMBLY_FULL_NAME "%(AssemblyIdentity.Identity)"' />
27 <Line Include='#define DNC_ENTRY_TYPE "$(RootNamespace).BootstrapperApplicationFactory"' />
28 <Line Include='#define DNC_ENTRY_TYPEW L"$(RootNamespace).BootstrapperApplicationFactory,$(AssemblyName)"' />
29 <Line Include='#define DNC_STATIC_ENTRY_METHOD "CreateBAFactory"' />
30 <Line Include='#define DNC_STATIC_ENTRY_METHODW L"CreateBAFactory"' />
31 <Line Include='#define DNC_STATIC_ENTRY_DELEGATEW L"$(RootNamespace).StaticEntryDelegate,$(AssemblyName)"' />
32 </ItemGroup>
33 <Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" />
34 <WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" />
35 <ItemGroup>
36 <FileWrites Include="@(HeaderPath)" />
37 </ItemGroup>
38 </Target>
39
40 <ItemGroup>
41 <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
42 <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" />
43 </ItemGroup>
44</Project>