aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj')
-rw-r--r--src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj b/src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj
new file mode 100644
index 00000000..ccdd67cf
--- /dev/null
+++ b/src/WixToolset.Mba.Host/WixToolset.Mba.Host.csproj
@@ -0,0 +1,89 @@
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
5<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6 <PropertyGroup>
7 <ProjectGuid>{F2BA1935-70FA-4156-B161-FD03850B4FAA}</ProjectGuid>
8 <AssemblyName>WixToolset.Mba.Host</AssemblyName>
9 <OutputType>Library</OutputType>
10 <RootNamespace>WixToolset.Mba.Host</RootNamespace>
11 <NoWarn>0693;1591</NoWarn>
12 <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
13 <Description>Managed Bootstrapper Application entry point</Description>
14 </PropertyGroup>
15 <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
16 <DebugSymbols>true</DebugSymbols>
17 <Optimize>false</Optimize>
18 <DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
19 </PropertyGroup>
20 <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
21 <DebugSymbols>true</DebugSymbols>
22 <Optimize>true</Optimize>
23 <DefineConstants>$(DefineConstants);TRACE</DefineConstants>
24 </PropertyGroup>
25 <ItemGroup>
26 <Compile Include="BootstrapperApplicationFactory.cs" />
27 <Compile Include="BootstrapperSectionGroup.cs" />
28 <Compile Include="Exceptions.cs" />
29 <Compile Include="HostSection.cs" />
30 <Compile Include="NativeMethods.cs" />
31 <Compile Include="Properties\AssemblyInfo.cs" />
32 <Compile Include="SupportedFrameworkElementCollection.cs" />
33 <Compile Include="SupportedFrameworkElement.cs" />
34 </ItemGroup>
35 <ItemGroup>
36 <None Include="WixToolset.Mba.Host.config" />
37 </ItemGroup>
38 <ItemGroup>
39 <None Include="packages.config" />
40 </ItemGroup>
41 <ItemGroup>
42 <Reference Include="System" />
43 <Reference Include="System.Configuration" />
44 <Reference Include="System.Data" />
45 <Reference Include="System.Xml" />
46 <Reference Include="WixToolset.Mba.Core">
47 <HintPath>..\..\packages\WixToolset.Mba.Core.4.0.12\lib\net20\WixToolset.Mba.Core.dll</HintPath>
48 </Reference>
49 </ItemGroup>
50 <ItemGroup>
51 <HeaderPath Include="$(BaseOutputPath)obj\$(AssemblyName).h">
52 <Visible>False</Visible>
53 </HeaderPath>
54 </ItemGroup>
55
56 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
57
58 <Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)">
59 <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
60 <Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" />
61 </GetAssemblyIdentity>
62 <ItemGroup>
63 <Line Include="#define MBA_ASSEMBLY_FULL_NAME L&quot;%(AssemblyIdentity.Identity)&quot;" />
64 <Line Include="#define MBA_CONFIG_FILE_NAME L&quot;$(AssemblyName).config&quot;" />
65 <Line Include="#define MBA_ENTRY_TYPE L&quot;$(RootNamespace).BootstrapperApplicationFactory&quot;" />
66 </ItemGroup>
67 <Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" />
68 <WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" />
69 <ItemGroup>
70 <FileWrites Include="@(HeaderPath)" />
71 </ItemGroup>
72 </Target>
73
74 <Target Name="Pack" DependsOnTargets="GetBuildVersion">
75 <Exec Command='nuget pack $(AssemblyName).nuspec -OutputDirectory "$(BaseOutputPath)$(Configuration)" -Properties Configuration=$(Configuration);Id=$(AssemblyName);Version="$(BuildVersionSimple)";Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' />
76 </Target>
77
78 <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" />
79 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
80 <PropertyGroup>
81 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
82 </PropertyGroup>
83 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" />
84 </Target>
85
86 <PropertyGroup Condition=" '$(CreateDocumentation)'!='false' ">
87 <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
88 </PropertyGroup>
89</Project> \ No newline at end of file