diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj new file mode 100644 index 00000000..16d278b0 --- /dev/null +++ b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj | |||
@@ -0,0 +1,111 @@ | |||
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>{E7E1841E-A58E-4901-B9CA-4845B807D45F}</ProjectGuid> | ||
8 | <AssemblyName>WixToolset.Mba.Core</AssemblyName> | ||
9 | <OutputType>Library</OutputType> | ||
10 | <RootNamespace>WixToolset.Mba.Core</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="BaseBootstrapperApplicationFactory.cs" /> | ||
27 | <Compile Include="BootstrapperApplication.cs" /> | ||
28 | <Compile Include="BootstrapperApplicationData.cs" /> | ||
29 | <Compile Include="BootstrapperApplicationFactory.cs" /> | ||
30 | <Compile Include="BootstrapperApplicationFactoryAttribute.cs" /> | ||
31 | <Compile Include="BootstrapperCommand.cs" /> | ||
32 | <Compile Include="BootstrapperSectionGroup.cs" /> | ||
33 | <Compile Include="BundleInfo.cs" /> | ||
34 | <Compile Include="Engine.cs" /> | ||
35 | <Compile Include="EventArgs.cs" /> | ||
36 | <Compile Include="Exceptions.cs" /> | ||
37 | <Compile Include="HostSection.cs" /> | ||
38 | <Compile Include="IBootstrapperApplicationData.cs" /> | ||
39 | <Compile Include="IBootstrapperApplicationFactory.cs" /> | ||
40 | <Compile Include="IBootstrapperCommand.cs" /> | ||
41 | <Compile Include="IBundleInfo.cs" /> | ||
42 | <Compile Include="IDefaultBootstrapperApplication.cs" /> | ||
43 | <Compile Include="IEngine.cs" /> | ||
44 | <Compile Include="IPackageInfo.cs" /> | ||
45 | <Compile Include="IVariables.cs" /> | ||
46 | <Compile Include="NativeMethods.cs" /> | ||
47 | <Compile Include="PackageInfo.cs" /> | ||
48 | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
49 | <Compile Include="SupportedFrameworkElementCollection.cs" /> | ||
50 | <Compile Include="SupportedFrameworkElement.cs" /> | ||
51 | </ItemGroup> | ||
52 | <ItemGroup> | ||
53 | <Content Include="WixToolset.Mba.Core.config"> | ||
54 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
55 | </Content> | ||
56 | </ItemGroup> | ||
57 | <ItemGroup> | ||
58 | <None Include="packages.config" /> | ||
59 | </ItemGroup> | ||
60 | <ItemGroup> | ||
61 | <Reference Include="System" /> | ||
62 | <Reference Include="System.Configuration" /> | ||
63 | <Reference Include="System.Data" /> | ||
64 | <Reference Include="System.Xml" /> | ||
65 | <Reference Include="WixToolset.BootstrapperCore"> | ||
66 | <HintPath>..\..\packages\WixToolset.BootstrapperCore.4.0.8\lib\net20\WixToolset.BootstrapperCore.dll</HintPath> | ||
67 | </Reference> | ||
68 | </ItemGroup> | ||
69 | <ItemGroup> | ||
70 | <HeaderPath Include="$(BaseOutputPath)$(Configuration)\$(AssemblyName).h"> | ||
71 | <Visible>False</Visible> | ||
72 | </HeaderPath> | ||
73 | </ItemGroup> | ||
74 | |||
75 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
76 | |||
77 | <Target Name="GenerateIdentityHeader" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="@(HeaderPath)"> | ||
78 | <GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> | ||
79 | <Output TaskParameter="Assemblies" ItemName="AssemblyIdentity" /> | ||
80 | </GetAssemblyIdentity> | ||
81 | <ItemGroup> | ||
82 | <Line Include="#define MBA_ASSEMBLY_FULL_NAME L"%(AssemblyIdentity.Identity)"" /> | ||
83 | <Line Include="#define MBA_ASSEMBLY_NAME L"%(AssemblyIdentity.Name)"" /> | ||
84 | <Line Include="#define MBA_ASSEMBLY_VERSION L"%(AssemblyIdentity.Version)"" /> | ||
85 | <Line Include="#define MBA_ASSEMBLY_CULTURE L"%(AssemblyIdentity.Culture)"" Condition="'%(AssemblyIdentity.Culture)'!=''" /> | ||
86 | <Line Include="#define MBA_ASSEMBLY_CULTURE L"neutral"" Condition="'%(AssemblyIdentity.Culture)'==''" /> | ||
87 | <Line Include="#define MBA_ASSEMBLY_PUBLICKEYTOKEN L"%(AssemblyIdentity.PublicKeyToken)"" /> | ||
88 | </ItemGroup> | ||
89 | <Message Importance="normal" Text="Generating identity definitions into @(HeaderPath->'%(FullPath)')" /> | ||
90 | <WriteLinesToFile File="@(HeaderPath)" Lines="@(Line)" Overwrite="True" /> | ||
91 | <ItemGroup> | ||
92 | <FileWrites Include="@(HeaderPath)" /> | ||
93 | </ItemGroup> | ||
94 | </Target> | ||
95 | |||
96 | <Target Name="Pack" DependsOnTargets="GetBuildVersion"> | ||
97 | <Exec Command='nuget pack $(AssemblyName).nuspec -OutputDirectory "$(BaseOutputPath)$(Configuration)" -Properties Configuration=$(Configuration);Id=$(AssemblyName);Version="$(BuildVersionSimple)";Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' /> | ||
98 | </Target> | ||
99 | |||
100 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | ||
101 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
102 | <PropertyGroup> | ||
103 | <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> | ||
104 | </PropertyGroup> | ||
105 | <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'))" /> | ||
106 | </Target> | ||
107 | |||
108 | <PropertyGroup Condition=" '$(CreateDocumentation)'!='false' "> | ||
109 | <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
110 | </PropertyGroup> | ||
111 | </Project> \ No newline at end of file | ||