Skip to content

Code generators having issues with projects with System in namespace #7091

@Scharps

Description

@Scharps

Description

When creating a Blazor Maui project e.g. Alpha.System.Beta, errors appear on build; "The type or namespace name 'Collections' does not exist in the namespace 'Alpha.System' (are you missing an assembly reference?" File 'Main_razor.g.cs' etc.

Steps to Reproduce

  1. Create a Maui Blazor application with name "X.System.Y".

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

windows10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-compilerUmbrella for all compiler issuesbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions