|
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" /> |
| 4 | + <Import Project="$(MSBuildProjectDirectory)\Config.UWP.proj" /> |
| 5 | + |
| 6 | + <PropertyGroup> |
| 7 | + <NugetDependsOn> |
| 8 | + PrepareNugetProperties; |
| 9 | + BuildFullNugets |
| 10 | + SignFullNugets |
| 11 | + </NugetDependsOn> |
| 12 | + </PropertyGroup> |
| 13 | + |
| 14 | + <Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/> |
| 15 | + |
| 16 | + <Target Name="PrepareNugetProperties"> |
5 | 17 |
|
6 | 18 | <PropertyGroup> |
7 | | - <NugetDependsOn> |
8 | | - PrepareNugetProperties; |
9 | | - BuildFullNugets |
10 | | - SignFullNugets |
11 | | - </NugetDependsOn> |
12 | | - </PropertyGroup> |
13 | | - |
14 | | - <Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/> |
| 19 | + <Version Condition= " '$(Version)' == '' ">1.0.2.7</Version> |
| 20 | + <FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory> |
| 21 | + <BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir> |
15 | 22 |
|
16 | | - <Target Name="PrepareNugetProperties"> |
| 23 | + <UWPPartialId>UniversalWindowsPlatform</UWPPartialId> |
| 24 | + <UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle> |
17 | 25 |
|
18 | | - <PropertyGroup> |
19 | | - <Version Condition= " '$(Version)' == '' ">1.0.2.7</Version> |
20 | | - <FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory> |
21 | | - <BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir> |
| 26 | + <UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId> |
| 27 | + <UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle> |
22 | 28 |
|
23 | | - <UWPPartialId>UniversalWindowsPlatform</UWPPartialId> |
24 | | - <UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle> |
| 29 | + <NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir> |
| 30 | + <FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir> |
25 | 31 |
|
26 | | - <UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId> |
27 | | - <UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle> |
28 | | - |
29 | | - <NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir> |
30 | | - <FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir> |
| 32 | + <DefaultTargetFileName>$(UWPId)</DefaultTargetFileName> |
| 33 | + </PropertyGroup> |
31 | 34 |
|
32 | | - <DefaultTargetFileName>$(UWPId)</DefaultTargetFileName> |
33 | | - </PropertyGroup> |
| 35 | + </Target> |
34 | 36 |
|
35 | | - </Target> |
| 37 | + <Target Name="BuildFullNugets" > |
36 | 38 |
|
37 | | - <Target Name="BuildFullNugets" > |
| 39 | + <PropertyGroup> |
| 40 | + <UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec> |
| 41 | + <UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties> |
| 42 | + </PropertyGroup> |
38 | 43 |
|
39 | | - <PropertyGroup> |
40 | | - <UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec> |
41 | | - <UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties> |
42 | | - </PropertyGroup> |
| 44 | + <Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" /> |
43 | 45 |
|
44 | | - <Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" /> |
| 46 | + <RemoveDir Directories="$(FullOutputDir)" /> |
| 47 | + <MakeDir Directories="$(FullOutputDir)" /> |
45 | 48 |
|
46 | | - <RemoveDir Directories="$(FullOutputDir)" /> |
47 | | - <MakeDir Directories="$(FullOutputDir)" /> |
| 49 | + <Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" /> |
48 | 50 |
|
49 | | - <Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" /> |
| 51 | + <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')"/> |
| 52 | + <Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/> |
| 53 | + </Target> |
50 | 54 |
|
51 | | - <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')"/> |
52 | | - <Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/> |
53 | | - </Target> |
54 | | - |
55 | | -<Target Name="SignFullNugets"> |
56 | | - <ItemGroup> |
| 55 | + <Target Name="SignFullNugets"> |
| 56 | + <ItemGroup> |
57 | 57 | <NugetPackagesToBeSigned Include="$(FullOutputDir)\**\*.nupkg"/> |
58 | 58 | </ItemGroup> |
59 | | - |
| 59 | + |
60 | 60 | <Message Text="DEBUG INFO: SignNugetProject=$(SignNugetProject)" /> |
61 | 61 |
|
62 | 62 | <MSBuild Projects="$(SignNugetProject)" |
63 | 63 | Properties="NugetToolPath=$(Nuget32ToolPath); |
64 | 64 | SignedFilePath=%(NugetPackagesToBeSigned.FullPath)"/> |
65 | | -</Target> |
| 65 | + </Target> |
66 | 66 |
|
67 | | - </Project> |
| 67 | +</Project> |
0 commit comments