From dcff8ef6ff74309cae072523069faa16416ea60a Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Fri, 6 Sep 2019 00:33:50 +0100 Subject: [PATCH] [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 --- .../Xamarin.Forms.Core.Android.UITests.csproj | 2 +- .../Xamarin.Forms.Core.UnitTests.csproj | 2 +- .../Xamarin.Forms.Core.Windows.UITests.csproj | 2 +- .../Xamarin.Forms.Pages.UnitTests.csproj | 4 ++-- .../Xamarin.Forms.Xaml.UnitTests.csproj | 2 +- azure-pipelines.yml | 2 ++ build/steps/build-windows.yml | 4 ++-- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj b/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj index 869e079eb..e7e55a7f8 100644 --- a/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj +++ b/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj @@ -48,7 +48,7 @@ - 2.1.1 + 2.2.0 diff --git a/Xamarin.Forms.Core.UnitTests/Xamarin.Forms.Core.UnitTests.csproj b/Xamarin.Forms.Core.UnitTests/Xamarin.Forms.Core.UnitTests.csproj index bb0f2a967..23b564803 100644 --- a/Xamarin.Forms.Core.UnitTests/Xamarin.Forms.Core.UnitTests.csproj +++ b/Xamarin.Forms.Core.UnitTests/Xamarin.Forms.Core.UnitTests.csproj @@ -46,7 +46,7 @@ - + diff --git a/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj b/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj index 9d1a156e0..f5e5e8fba 100644 --- a/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj +++ b/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj @@ -51,7 +51,7 @@ - 2.1.1 + 2.2.0 diff --git a/Xamarin.Forms.Pages.UnitTests/Xamarin.Forms.Pages.UnitTests.csproj b/Xamarin.Forms.Pages.UnitTests/Xamarin.Forms.Pages.UnitTests.csproj index b45905fd0..83f1cb0ce 100644 --- a/Xamarin.Forms.Pages.UnitTests/Xamarin.Forms.Pages.UnitTests.csproj +++ b/Xamarin.Forms.Pages.UnitTests/Xamarin.Forms.Pages.UnitTests.csproj @@ -43,13 +43,13 @@ - + MockDispatcherProvider.cs - + MockDispatcher.cs diff --git a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj index 0d0fc1da1..a9b779999 100644 --- a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj +++ b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj @@ -20,7 +20,7 @@ - + diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a7346f7e2..47b4ebde3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: diff --git a/build/steps/build-windows.yml b/build/steps/build-windows.yml index 9a4eed657..3101d678f 100644 --- a/build/steps/build-windows.yml +++ b/build/steps/build-windows.yml @@ -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'