forked from krs43/ib-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Krs.Ats.IBNet.msbuild
84 lines (69 loc) · 3.07 KB
/
Krs.Ats.IBNet.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
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
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Build\Tools\MSBuild.Community.Tasks.Targets"/>
<!-- Settings -->
<PropertyGroup Condition="'$(BuildType)' == ''">
<BuildType>Release</BuildType>
</PropertyGroup>
<!-- Cascading attempts to find a build number -->
<PropertyGroup>
<CompanyName>Tanius</CompanyName>
<Copyright>Copyright (c) DinosaurTech 2012</Copyright>
<Trademark>All Rights Reserved</Trademark>
</PropertyGroup>
<Target Name="SetVersion">
<PropertyGroup>
<VersionId Condition="'$(BUILD_NUMBER)' == ''">1.0.0.0</VersionId>
<VersionId Condition="'$(BUILD_NUMBER)' != ''">$(BUILD_NUMBER)</VersionId>
</PropertyGroup>
<AssemblyInfo
CodeLanguage="CS"
OutputFile="Build\Properties\GlobalAssemblyInfo.cs"
AssemblyCompany="$(CompanyName)"
AssemblyCopyright="$(Copyright)"
AssemblyTrademark="$(Trademark)"
AssemblyVersion="$(VersionId)"
AssemblyFileVersion="$(VersionId)" />
</Target>
<UsingTask AssemblyFile="Dependencies\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit"/>
<ItemGroup>
<MySourceFiles Include="**\*.*" Exclude="**\.svn\**;Output\**;**\bin\**;**\release\**;**\obj\**;**\_Resharper*\**;**\Help\**;**\*.Resharper*;**\*.suo;**\*.tcargs;**\*.tcprojx;**\Krs.Ats_2008.sln.proj;**\*.hgignore" />
<MyBinaryFiles Include="Krs.Ats.IBNet\bin\Release\*.*;Release Notes.txt;License.txt" />
<MyHelpFiles Include="Krs.Ats.IBNet\Help\Krs.Ats.IBNet.chm" />
</ItemGroup>
<Target Name="CopyFiles">
<RemoveDir Directories="Output" Condition="Exists('Output')" />
<MakeDir Directories="Output\Src" Condition="!Exists('Output\Src')" />
<MakeDir Directories="Output\Bin" Condition="!Exists('Output\Bin')" />
<Copy
SourceFiles="@(MySourceFiles)"
DestinationFiles="@(MySourceFiles->'Output\Src\%(RecursiveDir)%(Filename)%(Extension)')"
/>
<Copy
SourceFiles="@(MyBinaryFiles)"
DestinationFiles="@(MyBinaryFiles->'Output\Bin\%(Filename)%(Extension)')"
/>
<Copy
SourceFiles="@(MyHelpFiles)"
DestinationFiles="@(MyHelpFiles->'Output\Bin\%(Filename)%(Extension)')"
/>
</Target>
<Target Name="BuildHelp">
<!-- Build source code docs -->
<Exec Command=""$([MSBuild]::GetRegistryValue('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\3.5', 'MSBuildToolsPath'))MSBuild.exe" "Krs.Ats.IBNet\Krs.Ats.IBNet.shfbproj"" />
</Target>
<!-- Build server targets -->
<Target Name="MakeBuild" DependsOnTargets="Clean;SetVersion;Build;BuildHelp;CopyFiles" />
<!-- Individiual targets -->
<Target Name="Clean">
<MSBuild
Projects="Krs.Ats_2010.sln"
Targets="Clean"
Properties="Configuration=$(BuildType);Platform=Any CPU"/>
</Target>
<Target Name="Build">
<MSBuild
Projects="Krs.Ats_2010.sln"
Targets="Build"
Properties="Configuration=$(BuildType);Platform=Any CPU"/>
</Target>
</Project>