6060 <!-- Windows -->
6161 <Exec Command =" powershell -NoProfile -Command " [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture" "
6262 ConsoleToMSBuild =" true"
63- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT '))" >
63+ Condition =" $([MSBuild]::IsOSPlatform('Windows '))" >
6464 <Output TaskParameter =" ConsoleOutput" PropertyName =" OSArchitecture" />
6565 </Exec >
6666 <Error Text =" Only x86 and x64 are supported on windows"
67- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' != 'X86' AND '$(OSArchitecture)' != 'X64'" />
67+ Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' != 'X86' AND '$(OSArchitecture)' != 'X64'" />
6868 <PropertyGroup >
69- <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' == 'X86'" >win32</ChromePlatrofm >
70- <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' == 'X64'" >win64</ChromePlatrofm >
69+ <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' == 'X86'" >win32</ChromePlatrofm >
70+ <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' == 'X64'" >win64</ChromePlatrofm >
7171 </PropertyGroup >
7272 <DownloadFile
73- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT '))"
73+ Condition =" $([MSBuild]::IsOSPlatform('Windows '))"
7474 SourceUrl =" https://storage.googleapis.com/chrome-for-testing-public/$(ChromeVersion)/$(ChromePlatrofm)/chrome-$(ChromePlatrofm).zip"
7575 DestinationFolder =" $(Cache)"
7676 DestinationFileName =" chrome.zip" >
7777 </DownloadFile >
7878 <Exec
7979 Command =" powershell -Command " Expand-Archive -Path '$(Cache)chrome.zip' -DestinationPath '$(OutDir)chrome-for-testing-$(Version)'" "
80- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) And !Exists('$(OutDir)chrome-for-testing-$(Version)/chrome-$(ChromePlatrofm)')" />
80+ Condition =" $([MSBuild]::IsOSPlatform('Windows ')) And !Exists('$(OutDir)chrome-for-testing-$(Version)/chrome-$(ChromePlatrofm)')" />
8181 </Target >
8282
8383 <Target Name =" DownloadChromeInPublish" AfterTargets =" Publish" >
129129 <!-- Windows -->
130130 <Exec Command =" powershell -NoProfile -Command " [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture" "
131131 ConsoleToMSBuild =" true"
132- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT '))" >
132+ Condition =" $([MSBuild]::IsOSPlatform('Windows '))" >
133133 <Output TaskParameter =" ConsoleOutput" PropertyName =" OSArchitecture" />
134134 </Exec >
135135 <Error Text =" Only x86 and x64 are supported on windows"
136- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' != 'X86' AND '$(OSArchitecture)' != 'X64'" />
136+ Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' != 'X86' AND '$(OSArchitecture)' != 'X64'" />
137137 <PropertyGroup >
138- <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' == 'X86'" >win32</ChromePlatrofm >
139- <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) AND '$(OSArchitecture)' == 'X64'" >win64</ChromePlatrofm >
138+ <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' == 'X86'" >win32</ChromePlatrofm >
139+ <ChromePlatrofm Condition =" $([MSBuild]::IsOSPlatform('Windows ')) AND '$(OSArchitecture)' == 'X64'" >win64</ChromePlatrofm >
140140 </PropertyGroup >
141141 <DownloadFile
142- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT '))"
142+ Condition =" $([MSBuild]::IsOSPlatform('Windows '))"
143143 SourceUrl =" https://storage.googleapis.com/chrome-for-testing-public/$(ChromeVersion)/$(ChromePlatrofm)/chrome-$(ChromePlatrofm).zip"
144144 DestinationFolder =" $(Cache)"
145145 DestinationFileName =" chrome.zip" >
146146 </DownloadFile >
147147 <Exec
148148 Command =" powershell -Command " Expand-Archive -Path '$(Cache)chrome.zip' -DestinationPath '$(PublishDir)chrome-for-testing-$(Version)'" "
149- Condition =" $([MSBuild]::IsOSPlatform('Windows_NT ')) And !Exists('$(PublishDir)chrome-for-testing-$(Version)/chrome-$(ChromePlatrofm)')" />
149+ Condition =" $([MSBuild]::IsOSPlatform('Windows ')) And !Exists('$(PublishDir)chrome-for-testing-$(Version)/chrome-$(ChromePlatrofm)')" />
150150 </Target >
151151</Project >
0 commit comments