Referencing shared project in several projects of solution

前端 未结 3 1613
有刺的猬
有刺的猬 2021-01-18 20:13

I am trying to fix warning

Warning CS0436: The type \'Class1\' in \'...\\SharedProject1\\SharedProject1\\Class1.cs\' conflicts with the imported type

3条回答
  •  广开言路
    2021-01-18 21:01

    Try to change your code as :

           namespace SharedProject1{public class Class1() { }}
    

    In your project WpfApplication1 you must add references to SharedProject1 and ClassLibrary1 ,it hork after that :

    I have create a project for you with your specefication :

    Project exemple

提交回复
热议问题