Skip to content

[Bug] Space in Common Class Project triggers some issue while MAUI Class Library is refer on it #72078

@AlexDialga

Description

@AlexDialga

Description

Issue Description:

I encountered an issue in .NET MAUI related to project references when creating a new class library with spaces in its name. The issue seems to cause a build failure with the CS0006 error, indicating that the metadata file could not be found.

Steps to Reproduce:

  1. Create a new class library project in Visual Studio.
  2. Include spaces in the project name during creation.
  3. Reference this class library project from a .NET MAUI project.
  4. Attempt to build the solution.

Expected Behavior:

The .NET MAUI project should be able to reference and build successfully, even if the class library project has spaces in its name.

Actual Behavior:

The build fails with a CS0006 error, stating that the metadata file could not be found.

Environment:

  • .NET MAUI version: [8.0.x]
  • Visual Studio version: [Visual Studio 2022]

image
Class Library with space will trigger some errors.

image
Class Library without space.

Most of the content in this Report was generated by AI

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions