I am working on a Windows Forms solution with many winform ui projects. There is a class library project that contains some custom generic controls called MyControls .
Now, when I create a control in MyControls that consists of one or more controls in one project, I run into problems.
I either get compilation warnings: warning CS0436: The type "MyType" in "path-to \ MyType.cs" conflicts with the imported type "MyType" in "MyControls.dll". Using the type defined in 'path-to \ MyType.cs'. Or I get a bunch of different compilation errors, all pointing to "MyControls.dll" (error CS0234 - "do you miss the assembly link?").
I get either errors or warnings, neither one nor the other.
How to solve this?
Note
I added visual-studio-2010 because of the version I came across. I do not know if this applies to other versions.
source share