Skip to content

[tests] simplify CreateDllBuilder() and CreateApkBuilder() calls #10372

@jonathanpeppers

Description

@jonathanpeppers

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10

Description

Cleanup the MSBuild integration tests in:

  • src\Xamarin.Android.Build.Tasks\Tests\Xamarin.Android.Build.Tests
  • tests\MSBuildDeviceIntegration\

We have a lot of tests that do things like:

using (var b = CreateDllBuilder ("temp/BindByteArrayInMethodParameter")) {

Where we could simply use the default parameter:

using (var b = CreateDllBuilder ()) {

Go through all the MSBuild tests and simplify these cases.

If the test does something like:

using (var libb = CreateDllBuilder (Path.Combine (projectPath, libproj.ProjectName))) {

Leave this one as-is. Don't change tests that pass in a variable and use the variable later in the test either.

Metadata

Metadata

Assignees

Labels

needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions