diff options
Diffstat (limited to 'src/ext/Bal/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj')
-rw-r--r-- | src/ext/Bal/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/ext/Bal/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj b/src/ext/Bal/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj new file mode 100644 index 00000000..3ee0ad1e --- /dev/null +++ b/src/ext/Bal/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj | |||
@@ -0,0 +1,54 @@ | |||
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 | <AssemblyName>WixToolset.Mba.Host</AssemblyName> | ||
7 | <RootNamespace>WixToolset.Mba.Host</RootNamespace> | ||
8 | <TargetFrameworks>net20</TargetFrameworks> | ||
9 | <Description>Managed Bootstrapper Application entry point</Description> | ||
10 | <DebugType>embedded</DebugType> | ||
11 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> | ||
12 | <PlatformTarget>AnyCPU</PlatformTarget> | ||
13 | </PropertyGroup> | ||
14 | |||
15 | <ItemGroup> | ||
16 | <None Include="WixToolset.Mba.Host.config" CopyToOutputDirectory="PreserveNewest" /> | ||
17 | </ItemGroup> | ||
18 | <ItemGroup> | ||
19 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> | ||
20 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="All" /> | ||
21 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" /> | ||
22 | </ItemGroup> | ||
23 | <ItemGroup> | ||
24 | <Reference Include="System.Configuration" /> | ||
25 | </ItemGroup> | ||
26 | <ItemGroup> | ||
27 | <HeaderPath Include="$(BaseOutputPath)obj\$(AssemblyName).h"> | ||
28 | <Visible>False</Visible> | ||
29 | </HeaderPath> | ||
30 | </ItemGroup> | ||
31 | |||
32 | <Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)"> | ||
33 | <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> | ||
34 | <Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" /> | ||
35 | </GetAssemblyIdentity> | ||
36 | <ItemGroup> | ||
37 | <Line Include='#define MBA_ASSEMBLY_FULL_NAME L"%(AssemblyIdentity.Identity)"' /> | ||
38 | <Line Include='#define MBA_CONFIG_FILE_NAME L"$(AssemblyName).config"' /> | ||
39 | <Line Include='#define MBA_ENTRY_TYPE L"$(RootNamespace).BootstrapperApplicationFactory"' /> | ||
40 | </ItemGroup> | ||
41 | <Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" /> | ||
42 | <WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" /> | ||
43 | <ItemGroup> | ||
44 | <FileWrites Include="@(HeaderPath)" /> | ||
45 | </ItemGroup> | ||
46 | </Target> | ||
47 | |||
48 | <Target Name="SetNuspecProperties" DependsOnTargets="InitializeSourceControlInformation" AfterTargets="GetBuildVersion"> | ||
49 | <PropertyGroup> | ||
50 | <NuspecBasePath>$(OutputPath)</NuspecBasePath> | ||
51 | <NuspecProperties>Id=$(AssemblyName);Version=$(BuildVersionSimple);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description);RepositoryCommit=$(SourceRevisionId);RepositoryType=$(RepositoryType);RepositoryUrl=$(PrivateRepositoryUrl)</NuspecProperties> | ||
52 | </PropertyGroup> | ||
53 | </Target> | ||
54 | </Project> \ No newline at end of file | ||