-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDK.build.proj
38 lines (33 loc) · 1.79 KB
/
SDK.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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="BuildAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Version Condition=" '$(Version)' == '' ">3.0.0</Version>
<DoSign Condition="'$(DoSign)' == ''">0</DoSign>
<CertificateFingerprint>ceb3832e3ea926565f7dd05c82a711307b6679ee</CertificateFingerprint>
</PropertyGroup>
<Target Name="BuildAll">
<CallTarget Targets="Clean"/>
<CallTarget Targets="BuildSolution"/>
<CallTarget Condition="'$(DoSign)' == '1'" Targets="SignNuget"/>
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(ProjectDir)build"/>
<MSBuild
Projects="$(ProjectDir)Intento.MT.Plugin.PropertiesForm.sln"
Targets="Clean"
Properties="Configuration=$(Configuration);"/>
</Target>
<Target Name="BuildSolution">
<MakeDir Directories="$(ProjectDir)build"/>
<MSBuild
Projects="$(ProjectDir)Intento.MT.Plugin.PropertiesForm.sln"
Targets="Build"
Properties="Configuration=$(Configuration);Version=$(Version);VersionSuffix=$(VersionSuffix)"/>
<Exec Command="nuget pack $(ProjectDir)Intento.MT.Plugin.PropertiesForm\Properties\Intento.MT.Plugin.PropertiesForm.nuspec -Version $(Version) -OutputDirectory $(ProjectDir)build" />
</Target>
<Target Name="SignNuget">
<Exec Command="dotnet nuget sign $(ProjectDir)build/Intento.MT.Plugin.PropertiesForm.$(Version).nupkg --certificate-fingerprint $(CertificateFingerprint) --timestamper http://ts.ssl.com" />
</Target>
</Project>