blob: 242c4d14efe730df56b88aa9e0b819136cdb0757 (
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
|
<?xml version="1.0" encoding="utf-8"?>
<!-- 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. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>WixToolset.Mba.Host</AssemblyName>
<RootNamespace>WixToolset.Mba.Host</RootNamespace>
<TargetFrameworks>net462</TargetFrameworks>
<Description>Managed Bootstrapper Application entry point</Description>
<DebugType>embedded</DebugType>
<NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<None Include="WixToolset.Mba.Host.config" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="WixToolset.Mba.Core" />
</ItemGroup>
<ItemGroup>
<HeaderPath Include="$(BaseOutputPath)obj\$(AssemblyName).h">
<Visible>False</Visible>
</HeaderPath>
</ItemGroup>
<Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)">
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
<Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" />
</GetAssemblyIdentity>
<ItemGroup>
<Line Include='#define MBA_ASSEMBLY_FULL_NAME L"%(AssemblyIdentity.Identity)"' />
<Line Include='#define MBA_CONFIG_FILE_NAME L"$(AssemblyName).config"' />
<Line Include='#define MBA_ENTRY_TYPE L"$(RootNamespace).BootstrapperApplicationFactory"' />
</ItemGroup>
<Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" />
<WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" />
<ItemGroup>
<FileWrites Include="@(HeaderPath)" />
</ItemGroup>
</Target>
</Project>
|