-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.proj
101 lines (80 loc) · 3.55 KB
/
build.proj
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<Project DefaultTargets="All" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0">
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup Condition="'$(Configuration)'==''">
<Configuration>Debug</Configuration>
</PropertyGroup>
<PropertyGroup>
<Platform>AnyCPU</Platform>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<Optimize>false</Optimize>
<DebugSymbols>true</DebugSymbols>
<OutDir>bin\Debug\</OutDir>
<IntermediateOutputPath>bin\Debug\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<Optimize>true</Optimize>
<DebugSymbols>false</DebugSymbols>
<OutDir>bin\Release\</OutDir>
<OutputPath>bin\Release</OutputPath>
<IntermediateOutputPath>bin\Release\</IntermediateOutputPath>
</PropertyGroup>
<UsingTask
AssemblyFile="lib\xunit-1.7\xunit.runner.msbuild.dll"
TaskName="Xunit.Runner.MSBuild.xunit"/>
<!-- Set the application name as a property -->
<PropertyGroup>
<appname>ps</appname>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="src\\templates\\build.proj" />
<AppFiles Include="src\\**\*.cs" />
<AppReference Include="mscorlib.dll" />
<AppReference Include="System.dll" />
<AppReference Include="System.Core.dll" />
<AppReference Include="System.Web.Extensions.dll" />
<AppReference Include="System.ComponentModel.Composition.dll" />
<!-- Add your other references here -->
<TestFiles Include="tests\\**\*.cs" />
<TestReference Include="mscorlib.dll" />
<TestReference Include="System.dll" />
<TestReference Include="System.Core.dll" />
<TestReference Include="lib/xunit-1.7/xunit.dll" />
<TestReference Include="lib/Moq.3.1.416.3-bin/Moq.dll" />
<TestReference Include="$(OutDir)/$(AppName).exe" />
</ItemGroup>
<Target Name="All" DependsOnTargets="Clean; Compile; CompileTests; RunTests">
<Message Text="Compile All" />
</Target>
<Target Name = "Compile" DependsOnTargets="ResolveAssemblyReferences;PrepareResources">
<Message Text="References = @(AppReference)" />
<MakeDir Directories="$(OutDir)" />
<CSC Sources="@(AppFiles)"
References="@(AppReference)"
OutputAssembly="$(OutDir)\$(AppName).exe"
EmitDebugInformation="$(DebugSymbols)"
TargetType="exe" />
</Target>
<Target Name="CompileTests">
<Message Text="References = @(TestReference)" />
<CSC Sources="@(TestFiles)"
References="@(TestReference)"
OutputAssembly="$(OutDir)\$(AppName)-tests.dll"
EmitDebugInformation="$(DebugSymbols)"
TargetType="library" />
</Target>
<Target Name="RunTests" DependsOnTargets="Compile">
<Copy
SourceFiles="lib\xunit-1.7\xunit.dll;lib\Moq.3.1.416.3-bin\Moq.dll"
DestinationFolder="$(OutDir)" />
<!-- Change this to point to your Assembly or exe -->
<xunit Assembly="$(OutDir)\$(AppName)-tests.dll" />
</Target>
<Target Name="Clean">
<Message Text="Cleaning previous build" />
<Delete Files="$(OutDir)\*.*" />
</Target>
<Target Name="GenerateResources">
</Target>
</Project>