This repository was archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathBuildNuget.UWP.proj
54 lines (37 loc) · 2.44 KB
/
BuildNuget.UWP.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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Nuget" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<Import Project="$(MSBuildProjectDirectory)\Config.UWP.proj" />
<PropertyGroup>
<NugetDependsOn>
PrepareNugetProperties;
BuildFullNugets
</NugetDependsOn>
</PropertyGroup>
<Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/>
<Target Name="PrepareNugetProperties">
<PropertyGroup>
<Version Condition= " '$(Version)' == '' ">1.0.2.11</Version>
<FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory>
<BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir>
<UWPPartialId>UniversalWindowsPlatform</UWPPartialId>
<UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle>
<UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId>
<UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle>
<NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir>
<FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir>
<DefaultTargetFileName>$(UWPId)</DefaultTargetFileName>
</PropertyGroup>
</Target>
<Target Name="BuildFullNugets" >
<PropertyGroup>
<UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec>
<UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties>
</PropertyGroup>
<Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" />
<RemoveDir Directories="$(FullOutputDir)" />
<MakeDir Directories="$(FullOutputDir)" />
<Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" />
<Exec Command="$(PowerShellExe) -NonInteractive -executionpolicy Unrestricted -command (New-Object System.Net.WebClient).DownloadFile('http://dist.nuget.org/win-x86-commandline/latest/nuget.exe', 'nuget.exe')"/>
<Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/>
</Target>
</Project>