Skip to content

Assembly load error when building an Android project referencing a DLL assembly #8153

@brunck

Description

@brunck

Android application type

.NET Android (net7.0-android, etc.)

Affected platform version

.NET 7, .NET 8 preview (Android workload 34.0.0-preview.5.312/8.0.100-preview.5)

Description

The problem described in this MAUI issue and presumably recently fixed still exists in this preview version specified above.

Building a .NET for Android head project for a .NET MAUI (migrated) application fails due to a referenced DLL.

Binlog:
msbuildlog.zip

Steps to Reproduce

  1. Create a .NET for Android project that references an assembly directly as a DLL
  2. Build
  3. The build fails with System.IO.FileNotFoundException: Could not load assembly '<assembly name>, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?

Did you find any workaround?

No response

Relevant log output

Binlog attached in .zip file above.

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.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