-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBuild.xml
74 lines (58 loc) · 2.29 KB
/
Build.xml
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
<!--
thanks to cheeso: http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/08/msbuild-script-for-compiling-all-cs-files-into-a-single-assembly-dll-or-exe.aspx
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="CompileAll"
ToolsVersion="3.5">
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<AppName>CSharpreter</AppName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'==''">
<Configuration>Debug</Configuration>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<Optimize>false</Optimize>
<DebugSymbols>true</DebugSymbols>
<OutputPath>.\</OutputPath>
<OutDir>.\</OutDir>
<IntermediateOutputPath>.\</IntermediateOutputPath>
</PropertyGroup>
<!-- Specify the inputs by type and file name -->
<ItemGroup>
<CSFile Include="*.cs"/>
</ItemGroup>
<!-- specify reference assemblies for all builds in this project -->
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Data.Linq" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.ServiceModel.Web" />
<Reference Include="System.Runtime.Serialization" />
</ItemGroup>
<Target Name="CompileAll"
DependsOnTargets="ResolveAssemblyReferences">
<Message Text="Reference = @(Reference)" />
<Message Text="ReferencePath = @(ReferencePath)" />
<Message Text="MS Build Tools path: $(MSBuildToolsPath)" />
<!-- Run the Visual C# compiler on all the .cs files. -->
<CSC
Sources="@(CSFile)"
References="@(ReferencePath)"
OutputAssembly="$(OutputPath)\$(AppName).exe"
EmitDebugInformation="$(DebugSymbols)"
TargetType="exe"
Toolpath="$(MSBuildToolsPath)"
Nologo="true" />
</Target>
<!-- redefine the Clean target, from the Microsoft.csharp.targets file. (Last definition wins) -->
<Target Name="Clean">
<Delete Files="$(OutputPath)\$(AppName).exe"/>
<Delete Files="$(OutputPath)\$(AppName).pdb"/>
<Delete Files="%(CSFile.identity)~"/>
<Delete Files="Build.xml~"/>
</Target>
</Project>