Skip to content

My WPF project has a namespace error #7125

@344089386

Description

@344089386

Error Tip:
No type or namespace name "Windows" in namespace "test.wpf.system" (missing assembly reference?)

This error occurs when my project contains the System namespace.
I predict this is due to the implicit namespaces of.net6.
I tried <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports> and <Using Remove="XXX.System" /> but it didn't work.

image

Repeat steps:
build project

Error Code:
https://github.com/344089386/WpfTest

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions