-
Notifications
You must be signed in to change notification settings - Fork 210
/
SubSonic.Linq.msbuild
48 lines (38 loc) · 1.88 KB
/
SubSonic.Linq.msbuild
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
<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- default configuration is "Debug"; the other is "Release" -->
<configuration Condition="'$(configuration)'==''">Debug</configuration>
<buildDir Condition="'$(buildDir)'==''">SubSonic.Core\bin\$(configuration)</buildDir>
<libDir>$(MSBuildProjectDirectory)\lib</libDir>
<toolsDir>$(MSBuildProjectDirectory)\tools</toolsDir>
<outputDir>$(MSBuildProjectDirectory)\build</outputDir>
<subsonicLib>SubSonic.Core.dll</subsonicLib>
<outputFile>$(outputDir)\$(subsonicLib)</outputFile>
<includeDependencyOutput Condition="'$(includeDependencyOutput)'==''">false</includeDependencyOutput>
<MSBuildCommunityTasksPath>$(toolsDir)\MSBuild.Community.Tasks</MSBuildCommunityTasksPath>
</PropertyGroup>
<ItemGroup>
<inputAssemblies Include="$(buildDir)\$(subsonicLib)" />
<inputAssemblies Include="$(buildDir)\Castle.Core.dll" />
</ItemGroup>
<UsingTask AssemblyFile="lib\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/>
<Target Name="Clean">
<RemoveDir Directories="$(outputdir)" />
</Target>
<Target Name="Merge" DependsOnTargets="Build">
<MakeDir Directories="$(outputDir)" Condition="!Exists('$(outputDir)')"/>
<ILMerge
InputAssemblies="@(inputAssemblies)"
AllowDuplicateTypes="@(allowDuplicates)"
OutputFile="$(outputFile)"
ToolPath="$(toolsDir)\ILMerge"
DebugInfo="false" />
</Target>
<Target Name="Build" DependsOnTargets="Clean">
<MSBuild Projects="SubSonic.Linq.sln" Targets="Build" Properties="Configuration=$(configuration)" />
</Target>
<Target Name="Test" DependsOnTargets="Build">
<xunit assembly="SubSonic.Tests.Unit\bin\Debug\SubSonic.Tests.Unit.dll" />
</Target>
</Project>