diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj b/src/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj new file mode 100644 index 00000000..09580c2d --- /dev/null +++ b/src/WixToolset.Dnc.Host/WixToolset.Dnc.Host.csproj | |||
@@ -0,0 +1,38 @@ | |||
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.0</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 | </PropertyGroup> | ||
11 | |||
12 | <ItemGroup> | ||
13 | <HeaderPath Include="$(BaseOutputPath)obj\$(AssemblyName).h"> | ||
14 | <Visible>False</Visible> | ||
15 | </HeaderPath> | ||
16 | </ItemGroup> | ||
17 | |||
18 | <Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)"> | ||
19 | <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> | ||
20 | <Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" /> | ||
21 | </GetAssemblyIdentity> | ||
22 | <ItemGroup> | ||
23 | <Line Include='#define DNC_ASSEMBLY_FILE_NAME L"$(AssemblyName).dll"' /> | ||
24 | <Line Include='#define DNC_ASSEMBLY_FULL_NAME "%(AssemblyIdentity.Identity)"' /> | ||
25 | <Line Include='#define DNC_ENTRY_TYPE "$(RootNamespace).BootstrapperApplicationFactory"' /> | ||
26 | <Line Include='#define DNC_STATIC_ENTRY_METHOD "CreateBAFactory"' /> | ||
27 | </ItemGroup> | ||
28 | <Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" /> | ||
29 | <WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" /> | ||
30 | <ItemGroup> | ||
31 | <FileWrites Include="@(HeaderPath)" /> | ||
32 | </ItemGroup> | ||
33 | </Target> | ||
34 | |||
35 | <ItemGroup> | ||
36 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="all" /> | ||
37 | </ItemGroup> | ||
38 | </Project> | ||