-
Notifications
You must be signed in to change notification settings - Fork 38
/
deploy.proj
76 lines (64 loc) · 3.65 KB
/
deploy.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
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<!-- <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/> -->
<!-- <Import Project="help.proj"/> -->
<PropertyGroup>
<Major>3</Major>
<Minor>14</Minor>
<Build>0</Build>
<Revision>0</Revision>
<ShortVersion>$(Major).$(Minor).$(Build)</ShortVersion>
<Version>$(Major).$(Minor).$(Build).$(Revision)</Version>
<NugetKey></NugetKey>
</PropertyGroup>
<Target Name="Build" DependsOnTargets="Compile">
</Target>
<Target Name="NuGet" DependsOnTargets="Build">
<CreateItem Include="FlickrNet\bin\Release\*.*">
<Output TaskParameter="Include" ItemName="ReleaseFiles"/>
</CreateItem>
<!--<CreateItem Include="Sandcastle\Help\FlickrNet.chm">
<Output TaskParameter="Include" ItemName="HelpFile"/>
</CreateItem>-->
<Copy SourceFiles="@(ReleaseFiles)" DestinationFolder="Builds"/>
<!--<Copy SourceFiles="@(HelpFile)" DestinationFolder="Builds"/>-->
<Exec Command="nuget pack FlickrNet.nuspec -Version $(ShortVersion)" WorkingDirectory="Nuget"/>
<!--<Exec Command="nuget pack FlickrNet.WP7.nuspec -Version $(ShortVersion)" WorkingDirectory="Nuget"/>-->
<!--<Exec Command="nuget pack FlickrNet.Silverlight.nuspec -Version $(ShortVersion)" WorkingDirectory="Nuget"/>-->
<!--<Exec Command="nuget pack FlickrNet.CF.nuspec -Version $(ShortVersion)" WorkingDirectory="Nuget"/>-->
<WriteLinesToFile File="publish.bat" Overwrite="true" Lines="nuget push Nuget\FlickrNet.$(ShortVersion).nupkg $(NugetKey)"/>
<!--<WriteLinesToFile File="publish.bat" Overwrite="false" Lines="nuget push Nuget\FlickrNet.WP7.$(ShortVersion).nupkg $(NugetKey)"/>-->
<!--<WriteLinesToFile File="publish.bat" Overwrite="false" Lines="nuget push Nuget\FlickrNet.Silverlight.$(ShortVersion).nupkg $(NugetKey)"/>-->
<!--<WriteLinesToFile File="publish.bat" Overwrite="false" Lines="nuget push Nuget\FlickrNet.CF.$(ShortVersion).nupkg"/>-->
</Target>
<Target Name="NuGetPublish" DependsOnTargets="NuGet">
<Exec Command="nuget push Nuget\FlickrNet.$(ShortVersion).nupkg -ApiKey $(NugetKey) -source https://api.nuget.org/v3/index.json"/>
<!--<Exec Command="nuget push Nuget\FlickrNet.WP7.$(ShortVersion).nupkg -ApiKey $(NugetKey) -source https://api.nuget.org/v3/index.json"/>-->
<!--<Exec Command="nuget push Nuget\FlickrNet.Silverlight.$(ShortVersion).nupkg -ApiKey $(NugetKey) -source https://api.nuget.org/v3/index.json"/>-->
</Target>
<Target Name="Version">
<!-- Move this to a pre-build step in Azure -->
<AssemblyInfo CodeLanguage="CS"
OutputFile="FlickrNet\AssemblyInfo.cs"
AssemblyTitle="Flickr .Net Api Library"
AssemblyDescription=".Net library for accessing Flickr.com Api functionality"
AssemblyCompany="http://flickrnet.codeplex.com"
AssemblyProduct="Flickr .Net Api Library"
AssemblyCopyright="Copyright © Sam Judson 2010"
ComVisible="false"
CLSCompliant="true"
AssemblyVersion="$(Version)"
/>
</Target>
<Target Name="Compile">
<MSBuild Projects="FlickrNetVS10.sln" Properties="Configuration=Release" Targets="Rebuild"/>
</Target>
<Target Name="Zip" DependsOnTargets="Compile">
<!-- Move this to a post-build step in Azure -->
<ItemGroup>
<ZipFiles Include="FlickrNet\bin\Release\*.*" Exclude="**\*.pdb" />
<!--<ZipFiles Include="Sandcastle\Help\FlickrNet.chm" />-->
</ItemGroup>
<MakeDir Directories="Builds" Condition="!Exists('Builds')" />
<Zip Files="@(ZipFiles)" ZipFileName="Builds\FlickrNet-$(ShortVersion).zip" ZipLevel="9" Flatten="true"/>
</Target>
</Project>