revert back state of BuildNuget.UWP.proj

This commit is contained in:
LyubkaNikolova 2021-12-20 14:09:43 +02:00
Родитель 20d41bf027
Коммит 9295f518c6
1 изменённых файлов: 40 добавлений и 40 удалений

Просмотреть файл

@ -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=&quot;$(UWPTitle)&quot;;PartialID=&quot;$(UWPPartialId)&quot;;PartialTitle=&quot;$(UWPPartialTitle)&quot;;DeployDirectory=&quot;$(FullPathDeployDirectory)&quot;;BinariesSubDir=&quot;$(BinariesSubDir)&quot;;NuspecsDir=&quot;$(NuspecUWPDir)&quot;</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=&quot;$(UWPTitle)&quot;;PartialID=&quot;$(UWPPartialId)&quot;;PartialTitle=&quot;$(UWPPartialTitle)&quot;;DeployDirectory=&quot;$(FullPathDeployDirectory)&quot;;BinariesSubDir=&quot;$(BinariesSubDir)&quot;;NuspecsDir=&quot;$(NuspecUWPDir)&quot;</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>