-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.proj
30 lines (26 loc) · 1.54 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Framework>$(WINDIR)\Microsoft.NET\Framework\v4.0.30319</Framework>
<BuildPath>$(MSBuildProjectDirectory)</BuildPath>
<SolutionDir>$(MSBuildProjectDirectory)</SolutionDir>
<ProjectsToBuild>src\BasicModelInterface\BasicModelInterface.csproj;src\BasicModelInterfaceRunner\BasicModelInterfaceRunner.csproj</ProjectsToBuild>
<NuGetCmd>$(BuildPath)\tools\NuGet</NuGetCmd>
<ProgramVersion>1.0.0.13</ProgramVersion>
</PropertyGroup>
<Target Name="Clean">
<MSBuild Projects="$(ProjectsToBuild)" Targets="Clean" Properties="Configuration=Release;SolutionDir=$(SolutionDir);StartUsingCommandLine=$(StartUsingCommandLine)" />
</Target>
<Target Name="Build">
<RemoveDir Directories="$(BuildPath)\target"/>
<MSBuild Projects="$(ProjectsToBuild)" Targets="Build" Properties="Configuration=Release;SolutionDir=$(SolutionDir);StartUsingCommandLine=$(StartUsingCommandLine)" />
</Target>
<Target Name="Pack" DependsOnTargets="Merge">
<MakeDir Directories="$(BuildPath)\target"/>
<Exec Command="$(NuGetCmd) pack $(BuildPath)\src\BasicModelInterface\BasicModelInterface.nuspec -Version $(ProgramVersion)" WorkingDirectory="$(BuildPath)\target\" />
<!-- <Exec Command="$(NuGetCmd) push $(BuildPath)\target\BasicModelInterface.$(ProgramVersion).nupkg -Source Local" /> -->
</Target>
<!-- merge .NET exe and libraries into a single asesmblies -->
<Target Name="Merge">
<Exec Command="merge.cmd" />
</Target>
</Project>