<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{25CC8DB7-101E-468B-B1E4-64379B936546}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>P4API</RootNamespace>
<AssemblyName>P4API.Bootstrapper</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\build\P4.Net.snk</AssemblyOriginatorKeyFile>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup>
<SccProjectName>p4net</SccProjectName>
<SccLocalPath>..</SccLocalPath>
<SccProvider>MSSCCI:Perforce SCM</SccProvider>
<OutputPath>$(MSBuildProjectDirectory)\..\BuildOutput\$(Configuration)\</OutputPath>
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
<ReferencePath />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>CODE_ANALYSIS;TRACE;DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>CODE_ANALYSIS;TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Bootstrapper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\build\P4.Net.snk">
<Link>Properties\P4.Net.snk</Link>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\..\bin\nt.x64.sn\p4dn.dll">
<Link>Bootstrapper\amd64\p4dn.dll</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\..\bin\nt.x86.sn\p4dn.dll">
<Link>Bootstrapper\x86\p4dn.dll</Link>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!--
Add custom ILMerge step after build
-->
<PropertyGroup>
<MergeOutDir>$(MSBuildProjectDirectory)\..\..\bin\nt.merged.sn\$(Configuration)\</MergeOutDir>
<MergeDir>$(MSBuildProjectDirectory)\..\..\ext\ilmerge\</MergeDir>
<P4DNDir>$(MSBuildProjectDirectory)\..\..\bin\nt.x86.sn\</P4DNDir>
<KeyFile>$(MSBuildProjectDirectory)\..\..\build\P4.Net.snk</KeyFile>
</PropertyGroup>
<Target Name="AfterBuild" Inputs="$(OutDir)p4api.dll;$(OutDir)P4API.Bootstrapper.dll;$(KeyFile)" Outputs="$(MergeOutDir)p4api.dll">
<Message Text="Generating merged P4.NET assembly" Importance="High" />
<ItemGroup>
<!-- add to FileWrites item so that Clean/Rebuild target will remove the generated files -->
<FileWrites Include="$(MergeOutDir)p4api.dll" />
<FileWrites Include="$(MergeOutDir)p4api.pdb" />
<FileWrites Include="$(MergeOutDir)p4api.xml" />
</ItemGroup>
<MakeDir Directories="$(MergeOutDir)" />
<Exec Command="ilmerge.exe /xmldocs /lib:$(OutDir) /lib:$(P4DNDir) /keyfile:$(KeyFile) p4api.dll P4API.Bootstrapper.dll /out:$(MergeOutDir)p4api.dll" WorkingDirectory="$(MergeDir)" />
</Target>
</Project>
# |
Change |
User |
Description |
Committed |
|
#5
|
6511 |
Milan Gardian |
Add comments + include ILMerge execution as a post-build step ( P4.NET ) |
|
|
#4
|
6509 |
Milan Gardian |
Add test project + initial implementation of custom assembly resolver logic ( P4.NET ) |
|
|
#3
|
6507 |
Milan Gardian |
Add scaffolding to bootstrapper implementation and include p4dn binaries as embedded resources ( P4.NET ) |
|
|
#2
|
6504 |
Milan Gardian |
Add initial Bootstrapper class and strongly sign the output assembly ( P4.NET ) |
|
|
#1
|
6503 |
Milan Gardian |
Add empty bootstrapper project ( P4.NET ) |
|
|