|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project DefaultTargets="Nuget" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> |
3 | 3 |
|
4 | | - <Import Project="$(MSBuildProjectDirectory)\Config.UWP.proj" /> |
5 | | - |
6 | | - <PropertyGroup> |
7 | | - <NugetDependsOn> |
8 | | - PrepareNugetProperties; |
9 | | - BuildFullNugets |
10 | | - </NugetDependsOn> |
11 | | - </PropertyGroup> |
12 | | - |
13 | | - <Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/> |
14 | | - |
15 | | - <Target Name="PrepareNugetProperties"> |
| 4 | + <Import Project="$(MSBuildProjectDirectory)\Config.UWP.proj" /> |
16 | 5 |
|
17 | 6 | <PropertyGroup> |
18 | | - <Version Condition= " '$(Version)' == '' ">1.0.2.7</Version> |
19 | | - <FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory> |
20 | | - <BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir> |
| 7 | + <NugetDependsOn> |
| 8 | + PrepareNugetProperties; |
| 9 | + BuildFullNugets |
| 10 | + </NugetDependsOn> |
| 11 | + </PropertyGroup> |
| 12 | + |
| 13 | + <Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/> |
21 | 14 |
|
22 | | - <UWPPartialId>UniversalWindowsPlatform</UWPPartialId> |
23 | | - <UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle> |
| 15 | + <Target Name="PrepareNugetProperties"> |
24 | 16 |
|
25 | | - <UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId> |
26 | | - <UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle> |
| 17 | + <PropertyGroup> |
| 18 | + <Version Condition= " '$(Version)' == '' ">1.0.2.7</Version> |
| 19 | + <FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory> |
| 20 | + <BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir> |
27 | 21 |
|
28 | | - <NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir> |
29 | | - <FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir> |
| 22 | + <UWPPartialId>UniversalWindowsPlatform</UWPPartialId> |
| 23 | + <UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle> |
30 | 24 |
|
31 | | - <DefaultTargetFileName>$(UWPId)</DefaultTargetFileName> |
32 | | - </PropertyGroup> |
| 25 | + <UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId> |
| 26 | + <UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle> |
| 27 | + |
| 28 | + <NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir> |
| 29 | + <FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir> |
33 | 30 |
|
34 | | - </Target> |
| 31 | + <DefaultTargetFileName>$(UWPId)</DefaultTargetFileName> |
| 32 | + </PropertyGroup> |
35 | 33 |
|
36 | | - <Target Name="BuildFullNugets" > |
| 34 | + </Target> |
37 | 35 |
|
38 | | - <PropertyGroup> |
39 | | - <UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec> |
40 | | - <UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties> |
41 | | - </PropertyGroup> |
| 36 | + <Target Name="BuildFullNugets" > |
| 37 | + |
| 38 | + <PropertyGroup> |
| 39 | + <UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec> |
| 40 | + <UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties> |
| 41 | + </PropertyGroup> |
42 | 42 |
|
43 | | - <Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" /> |
| 43 | + <Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" /> |
44 | 44 |
|
45 | | - <RemoveDir Directories="$(FullOutputDir)" /> |
46 | | - <MakeDir Directories="$(FullOutputDir)" /> |
| 45 | + <RemoveDir Directories="$(FullOutputDir)" /> |
| 46 | + <MakeDir Directories="$(FullOutputDir)" /> |
47 | 47 |
|
48 | | - <Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" /> |
| 48 | + <Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" /> |
49 | 49 |
|
50 | | - <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')"/> |
51 | | - <Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/> |
52 | | - </Target> |
| 50 | + <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')"/> |
| 51 | + <Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/> |
| 52 | + </Target> |
53 | 53 |
|
54 | | -</Project> |
| 54 | + </Project> |
0 commit comments