-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMSBuild.proj
More file actions
executable file
·37 lines (27 loc) · 1.22 KB
/
MSBuild.proj
File metadata and controls
executable file
·37 lines (27 loc) · 1.22 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="Upload" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<TPathExtensionPack>$(MSBuildExtensionsPath)\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks</TPathExtensionPack>
</PropertyGroup>
<Import Project="$(TPathExtensionPack)"/>
<PropertyGroup>
<NuGetBin>C:\Build\bin\NuGet.exe</NuGetBin>
<BinDir>.\</BinDir>
<NuGetDirPackages>..\NuGet\Packages\</NuGetDirPackages>
<NuGetDirBackup>..\NuGet\Backup\</NuGetDirBackup>
<NuGetServer>https://nuget.org</NuGetServer>
<NuGetApiKey></NuGetApiKey>
<nuspec>jquery.iframeDialog.nuspec</nuspec>
</PropertyGroup>
<Target Name="Upload">
<MakeDir Directories="$(NuGetDirPackages)" />
<MakeDir Directories="$(NuGetDirBackup)" />
<Exec WorkingDirectory="$(NuGetDirPackages)"
Command="$(NuGetBin) pack ..\..\src\$(nuspec)" />
<CreateItem Include="$(NuGetDirPackages)*.*">
<Output TaskParameter="Include" ItemName="_nupkgs" />
</CreateItem>
<Exec Command="$(NuGetBin) push @(_nupkgs) -s $(NuGetServer) $(NuGetApiKey)" />
<Move SourceFiles="@(_nupkgs)" DestinationFolder="$(NuGetDirBackup)" />
</Target>
</Project>