Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning CS0436: the type conflicts with imported type #19

Closed
JeremyAnsel opened this issue Sep 8, 2023 · 0 comments
Closed

Warning CS0436: the type conflicts with imported type #19

JeremyAnsel opened this issue Sep 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@JeremyAnsel
Copy link
Contributor

Describe the bug

A warning is generated when there are properties in different assemblies.

Steps to reproduce the bug

Create two class libraries ClassLibraryA and ClassLibraryB.

In ClassLibraryA add:

[DependencyProperty<int>("Property1")]
public partial class Control1 : Control
{
}

In ClassLibraryB add:

[DependencyProperty<int>("Property2")]
public partial class Control2 : Control
{
}

In ClassLibraryB add a reference to ClassLibraryA.

Warnings are generated when compiling ClassLibraryB.

Expected behavior

No warning should be generated.

Screenshots

No response

NuGet package version

1.3.0

IDE

Visual Studio 2022

Additional context

In a WPF class project.

@JeremyAnsel JeremyAnsel added the bug Something isn't working label Sep 8, 2023
@HavenDV HavenDV closed this as completed in a9cf0cf Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant