Skip to content

Commit

Permalink
[build-tools] Update UpdateApkSizeReference scripts to use the right …
Browse files Browse the repository at this point in the history
…path.

The `UpdateApkSizeReference` scripts were using `net6.0` in their paths.
This is wrong as we now produce `net7.0` assemblies. So the scripts
were failing. So lets update them!
  • Loading branch information
dellis1972 committed Nov 8, 2022
1 parent a6fc4cd commit c170651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-tools/scripts/UpdateApkSizeReference.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ msbuild /p:Configuration=Release /restore .\tools\xabuild\xabuild.csproj
Write-Output "Building legacy BuildReleaseArm64 tests"
msbuild /p:Configuration=Release Xamarin.Android.sln /t:RunNunitTests /p:TEST="Xamarin.Android.Build.Tests.BuildTest2.BuildReleaseArm64"
Write-Output "Building DotNet BuildReleaseArm64 tests"
bin\Release\dotnet\dotnet test -p:Configuration=Release --filter=Name~BuildReleaseArm64 .\bin\TestRelease\net6.0\Xamarin.Android.Build.Tests.dll
bin\Release\dotnet\dotnet test -p:Configuration=Release --filter=Name~BuildReleaseArm64 .\bin\TestRelease\net7.0\Xamarin.Android.Build.Tests.dll
Write-Output "Updating reference files"
Copy-Item -Verbose bin\TestRelease\BuildReleaseArm64*.apkdesc -Destination src\Xamarin.Android.Build.Tasks\Tests\Xamarin.ProjectTools\Resources\Base\
2 changes: 1 addition & 1 deletion build-tools/scripts/UpdateApkSizeReference.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
./build-tools/scripts/nunit3-console bin/TestRelease/net472/Xamarin.Android.Build.Tests.dll --test=Xamarin.Android.Build.Tests.BuildTest2.BuildReleaseArm64
./dotnet-local.sh test bin/TestRelease/net6.0/Xamarin.Android.Build.Tests.dll --filter=Name~BuildReleaseArm64
./dotnet-local.sh test bin/TestRelease/net7.0/Xamarin.Android.Build.Tests.dll --filter=Name~BuildReleaseArm64
cp bin/TestRelease/BuildReleaseArm64*.apkdesc src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Resources/Base/

0 comments on commit c170651

Please sign in to comment.