revert back state of BuildNuget.UWP.proj
This commit is contained in:
Родитель
20d41bf027
Коммит
9295f518c6
|
@ -1,54 +1,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">
|
||||
<Import Project="$(MSBuildProjectDirectory)\Config.UWP.proj" />
|
||||
|
||||
<PropertyGroup>
|
||||
<Version Condition= " '$(Version)' == '' ">1.0.2.7</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>
|
||||
<NugetDependsOn>
|
||||
PrepareNugetProperties;
|
||||
BuildFullNugets
|
||||
</NugetDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="Nuget" DependsOnTargets="$(NugetDependsOn)"/>
|
||||
|
||||
</Target>
|
||||
<Target Name="PrepareNugetProperties">
|
||||
|
||||
<Target Name="BuildFullNugets" >
|
||||
<PropertyGroup>
|
||||
<Version Condition= " '$(Version)' == '' ">1.0.2.7</Version>
|
||||
<FullPathDeployDirectory>$([System.IO.Path]::GetFullPath('$(DeployDirectory)'))</FullPathDeployDirectory>
|
||||
<BinariesSubDir>$(BinariesTargetDirectory)</BinariesSubDir>
|
||||
|
||||
<PropertyGroup>
|
||||
<UWPNuspec>$(NuspecUWPDir)\Package.UniversalWindowsPlatform.nuspec</UWPNuspec>
|
||||
<UWPProperties>Id=$(UWPId);Title="$(UWPTitle)";PartialID="$(UWPPartialId)";PartialTitle="$(UWPPartialTitle)";DeployDirectory="$(FullPathDeployDirectory)";BinariesSubDir="$(BinariesSubDir)";NuspecsDir="$(NuspecUWPDir)"</UWPProperties>
|
||||
</PropertyGroup>
|
||||
<UWPPartialId>UniversalWindowsPlatform</UWPPartialId>
|
||||
<UWPPartialTitle>UniversalWindowsPlatform</UWPPartialTitle>
|
||||
|
||||
<Message Text="DEBUG INFO: UWPProperties=$(UWPProperties)" />
|
||||
<UWPId>Telerik.UI.for.$(UWPPartialId)</UWPId>
|
||||
<UWPTitle>Telerik UI for $(UWPPartialTitle)</UWPTitle>
|
||||
|
||||
<NuspecUWPDir>$(MsBuildProjectDirectory)\Nuspecs.UWP</NuspecUWPDir>
|
||||
<FullOutputDir>$(DeployDirectory)\Nuget</FullOutputDir>
|
||||
|
||||
<RemoveDir Directories="$(FullOutputDir)" />
|
||||
<MakeDir Directories="$(FullOutputDir)" />
|
||||
<DefaultTargetFileName>$(UWPId)</DefaultTargetFileName>
|
||||
</PropertyGroup>
|
||||
|
||||
<Copy SourceFiles="$(NuspecUWPDir)\$(DefaultTargetFileName).targets" DestinationFiles="$(NuspecUWPDir)\$(UWPId).targets" />
|
||||
</Target>
|
||||
|
||||
<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>
|
||||
<Target Name="BuildFullNugets" >
|
||||
|
||||
</Project>
|
||||
<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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче