Skip to content

Changing <Bind> item metadata does not rerun appropriate parts of the build #9184

Description

@Digifais

Android framework version

net8.0-android

Affected platform version

.NET 8.0.303

Description

When changing item metadata from true to false or vice versa, dotnet build doesn't pick the change up, I need to perform a dotnet clean first before dotnet build works again.

msbuild.binlog.zip

Steps to Reproduce

  1. Create a new Android binding library
  2. Add an AAR to the project and select AndroidLibrary as build action (should add a blank <Bind></Bind>)
  3. Set <Bind> to false.
  4. Build the project through the .NET CLI
  5. Set <Bind> to true
  6. Build the project through the .NET CLI again and see that it produces the same result of not binding the AAR

Did you find any workaround?

Perform dotnet clean first after changing from true to false or vice versa.

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions