Win2D.proj now detects which command prompt it is being run from

Tidied up build.cmd to not try and override the nuget package name (as this no longer works)
This commit is contained in:
Damyan Pepper 2015-07-24 15:57:08 -07:00
Родитель e82a7941a0
Коммит abe97787d8
2 изменённых файлов: 6 добавлений и 9 удалений

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

@ -26,7 +26,7 @@
<PropertyGroup> <PropertyGroup>
<Has81Sdk Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)' != ''">true</Has81Sdk> <Has81Sdk Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)' != ''">true</Has81Sdk>
<Has10Sdk Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)' != ''">true</Has10Sdk> <Has10Sdk Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)' != ''">true</Has10Sdk>
<RunningFrom2015Prompt Condition="'$(VisualStudioVersion)' &gt;= '14.0'">true</RunningFrom2015Prompt>
<ShouldRunUAPTests>false</ShouldRunUAPTests> <ShouldRunUAPTests>false</ShouldRunUAPTests>
<ShouldRunUAPTests Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion@CurrentBuildNumber)' &gt;= '10000'">true</ShouldRunUAPTests> <ShouldRunUAPTests Condition="'$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion@CurrentBuildNumber)' &gt;= '10000'">true</ShouldRunUAPTests>
</PropertyGroup> </PropertyGroup>
@ -43,7 +43,7 @@
<SkippedBuildPhone>true</SkippedBuildPhone> <SkippedBuildPhone>true</SkippedBuildPhone>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Has10Sdk)' != 'true' and $(BuildUAP)"> <PropertyGroup Condition="('$(Has10Sdk)' != 'true' or '$(RunningFrom2015Prompt)' != 'true') and $(BuildUAP)">
<BuildUAP>false</BuildUAP> <BuildUAP>false</BuildUAP>
<SkippedBuildUAP>true</SkippedBuildUAP> <SkippedBuildUAP>true</SkippedBuildUAP>
</PropertyGroup> </PropertyGroup>
@ -363,8 +363,11 @@
<Warning Condition="'$(SkippedBuildPhone)' == 'true'" <Warning Condition="'$(SkippedBuildPhone)' == 'true'"
Text="Skipped building for Windows Phone 8.1 since Windows 8.1 SDK is not installed." /> Text="Skipped building for Windows Phone 8.1 since Windows 8.1 SDK is not installed." />
<Warning Condition="'$(SkippedBuildUAP)' == 'true'" <Warning Condition="'$(SkippedBuildUAP)' == 'true' and '$(Has10Sdk)' != 'true'"
Text="Skipped building for Windows 10 UAP since Windows 10 SDK is not installed." /> Text="Skipped building for Windows 10 UAP since Windows 10 SDK is not installed." />
<Warning Condition="'$(SkippedBuildUAP)' == 'true' and '$(Has10Sdk)' == 'true' and '$(RunningFrom2015Prompt)' != 'true'"
Text="Skipped building for Windows 10 UAP since not running from a MSBuild Command Prompt for VS2015" />
</Target> </Target>
<Import Project="$(MsBuildThisFileDirectory)build\nuget-restore.targets" /> <Import Project="$(MsBuildThisFileDirectory)build\nuget-restore.targets" />

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

@ -54,12 +54,6 @@ IF %ERRORLEVEL% NEQ 0 (
ECHO. ECHO.
SET OVERRIDE_NUGET_PACKAGE=
IF "%NOUAP%" == "1" (
SET OVERRIDE_NUGET_PACKAGE=Win2D-NoUAP
)
CALL "%~dp0build\nuget\build-nupkg.cmd" local CALL "%~dp0build\nuget\build-nupkg.cmd" local
GOTO END GOTO END