forked from samjudson/flickr-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.proj
77 lines (65 loc) · 3.52 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
77
<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="Version;Compile;Zip">
</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"/>
<WriteLinesToFile File="publish.bat" Overwrite="false" Lines="nuget push Nuget\FlickrNet.WP7.$(ShortVersion).nupkg"/>
<WriteLinesToFile File="publish.bat" Overwrite="false" Lines="nuget push Nuget\FlickrNet.Silverlight.$(ShortVersion).nupkg"/>
<!--<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 $(NugetKey)"/>
<Exec Command="nuget push Nuget\FlickrNet.WP7.$(ShortVersion).nupkg $(NugetKey)"/>
<Exec Command="nuget push Nuget\FlickrNet.Silverlight.$(ShortVersion).nupkg $(NugetKey)"/>
</Target>
<Target Name="Version">
<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" DependsOnTargets="Version">
<!-- Compact Framework in VS 2008 -->
<!--<MSBuild Projects="FlickrNet.sln" Properties="Configuration=Release" Targets="Rebuild"/>-->
<!-- Everything else in VS 2010 -->
<MSBuild Projects="FlickrNetVS10.sln" Properties="Configuration=Release" Targets="Rebuild"/>
</Target>
<Target Name="Zip" DependsOnTargets="Compile">
<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>