Type or namespace cannot be found, when reference does exist

后端 未结 5 1188
遥遥无期
遥遥无期 2020-12-18 18:05

I have a wpf Application in which I am trying to reference a class library i have created. I have added a reference to the .dll And i have added the using statement to my fi

5条回答
  •  星月不相逢
    2020-12-18 18:48

    The most common cause of this is that your .DLL targets the full .NET Framework, but the WPF Application targets the Client Profile.

    For example, if your library targets .NET 3.5, make sure your WPF Application targets the full .NET 3.5 or 4.0 framework, not the client profile.

提交回复
热议问题