зеркало из https://github.com/DeGsoft/maui-linux.git
[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:
Родитель
0dfade22be
Коммит
dcff8ef6ff
|
@ -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'
|
||||
|
|
Загрузка…
Ссылка в новой задаче