[Build] Bump msbuild locator move to VS2019 (#7415)

* Bump msbuild locator

* Update test adapter

* Update build-windows.yml

* Update azure-pipelines.yml

* Update build-windows.yml
This commit is contained in:
Rui Marinho 2019-09-06 00:33:50 +01:00 коммит произвёл GitHub
Родитель 0dfade22be
Коммит dcff8ef6ff
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 10 добавлений и 8 удалений

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

@ -48,7 +48,7 @@
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="NUnit" Version="2.6.4" />
<PackageReference Include="NUnitTestAdapter">
<Version>2.1.1</Version>
<Version>2.2.0</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.DeviceInfo" Version="3.0.2" />
<PackageReference Include="Xamarin.UITest" Version="2.2.7" />

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

@ -46,7 +46,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="2.6.4" />
<PackageReference Include="NUnitTestAdapter" Version="2.1.1" />
<PackageReference Include="NUnitTestAdapter" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />

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

@ -51,7 +51,7 @@
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="NUnit" Version="2.6.4" />
<PackageReference Include="NUnitTestAdapter">
<Version>2.1.1</Version>
<Version>2.2.0</Version>
</PackageReference>
<PackageReference Include="Selenium.Support" Version="3.14.0" />
<PackageReference Include="Selenium.WebDriver" Version="3.14.0" />

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

@ -43,13 +43,13 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="NUnit" Version="2.6.4" />
<PackageReference Include="NUnitTestAdapter" Version="2.1.1" />
<PackageReference Include="NUnitTestAdapter" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Xamarin.Forms.Core.UnitTests\MockDispatcherProvider.cs">
<Link>MockDispatcherProvider.cs</Link>
</Compile>
<Compile Include="..\Xamarin.Forms.Core.UnitTests\MockDispatcher.cs">
<Compile Include="..\Xamarin.Forms.Core.UnitTests\MockDispatcher.cs">
<Link>MockDispatcher.cs</Link>
</Compile>
<Compile Include="..\Xamarin.Forms.Core.UnitTests\MockPlatformServices.cs">

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

@ -20,7 +20,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="2.6.4" />
<PackageReference Include="Microsoft.Build.Locator" Version="1.0.31" />
<PackageReference Include="Microsoft.Build.Locator" Version="1.2.6" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Xamarin.Forms.Core.UnitTests\MockDispatcherProvider.cs">

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

@ -17,6 +17,8 @@ variables:
value: 10.2
- name: NUGET_VERSION
value: 5.0.2
- name: winVmImage
value: Hosted Windows 2019 with VS2019
resources:
repositories:

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

@ -15,7 +15,7 @@ parameters:
nugetVersion: $(NUGET_VERSION)
artifactsTargetFolder: '$(build.artifactstagingdirectory)'
artifactsName: 'win_build'
nunitTestAdapterFolder: 'packages/NUnitTestAdapter.AnyVersion/tools/'
nunitTestAdapterFolder: 'packages/NUnitTestAdapter.AnyVersion/build/'
nunitTestFolder: '$(build.sourcesdirectory)'
jobs:
@ -52,7 +52,7 @@ jobs:
solution: ${{ parameters.slnPath }}
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
msbuildArguments: ${{ parameters.msbuildExtraArguments }}
msbuildArguments: ${{ parameters.msbuildExtraArguments }} /p:JavaSdkDirectory="$(JAVA_HOME_8_X64)"
- task: VSTest@2
displayName: 'Unit Tests'