forked from lextudio/sharpsnmplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.proj
44 lines (44 loc) · 2.5 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
<?xml version="1.0"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Debug">
<PropertyGroup>
<!--<SharpDevelopBinPath>"C:\Program Files\SharpDevelop\3.0\bin"</SharpDevelopBinPath>-->
<ReleaseFolderRoot>.\bin</ReleaseFolderRoot>
<LibraryReleaseFolder>.\SharpSnmpLib\Bin\Release</LibraryReleaseFolder>
<NDependFolder>H:\Green\NDepend</NDependFolder>
<NDependProject>SharpSnmpLib.ndproj</NDependProject>
<KeyFile>SharpSnmpLib\sharpsnmplib.snk</KeyFile>
</PropertyGroup>
<ItemGroup>
<LibraryOutputs Include=".\SharpSnmpLib\bin\Release\sharpsnmplib.*" />
</ItemGroup>
<UsingTask AssemblyFile="$(NDependFolder)\MSBuild\NDepend.Build.MSBuild.dll" TaskName="NDependTask" />
<Target Name="NDepend" DependsOnTargets="Release">
<!--<NDependTask NDependConsoleExePath="$(NDependFolder)" ProjectFilePath="$(NDependProject)" />-->
<Exec Command="$(NDependFolder)\NDepend.Console.exe $(NDependProject)" />
</Target>
<Target Name="Clean">
<MSBuild Projects="SharpSnmpLib.sln" Targets="Clean" />
<MSBuild Projects="SharpSnmpLib.sln" Properties="Configuration=Release;Platform=Any CPU" Targets="Clean" />
</Target>
<Target Name="Debug">
<Error
Text="Please execute prepare.bat (Windows) or prepare.sh (Linux and else) first."
Condition="!Exists('$(KeyFile)')" />
<MSBuild Projects="SharpSnmpLib.sln" />
</Target>
<Target Name="Release">
<Error
Text="Please execute prepare.bat (Windows) or prepare.sh (Linux and else) first."
Condition="!Exists('$(KeyFile)')" />
<MSBuild Projects="SharpSnmpLib.sln" Properties="Configuration=Release;Platform=Any CPU" />
</Target>
<Target Name="Package">
<ConvertToAbsolutePath Paths="$(ReleaseFolderRoot)">
<Output TaskParameter="AbsolutePaths" PropertyName="ReleaseFolder"/>
</ConvertToAbsolutePath>
<MSBuild Projects="Sharpsnmplib.sln" Properties="Configuration=Release;Platform=Any CPU;OutputPath=$(ReleaseFolder)\net40" />
<MSBuild Projects="Sharpsnmplib.iOS.sln" Properties="Configuration=Release;Platform=iPhone;OutputPath=$(ReleaseFolder)\Monotouch" />
<MSBuild Projects="SharpSnmpLib.Android.sln" Properties="Configuration=Release;Platform=Any CPU;OutputPath=$(ReleaseFolder)\Monoandroid" />
<!-- <MSBuild Projects="sharpsnmplib.shfbproj" Properties="Configuration=Release;Platform=Any CPU" /> -->
</Target>
</Project>