2013-04-27 106 views
0

我使用Visual Studio 2012无法从一个项目添加引用到另一个项目

我已创建WCF服务库项目命名为:EvalServiceLibrary

我已经创建的Windows服务项目名称:WindowsServiceHost在相同的解决方案。现在

,我引用EvalServiceLibraryWindowsServiceHost

当我构建解决方案,我收到以下错误:

The type or namespace name 'EvalServiceLibrary' could not be found (are you missing a using directive or an assembly reference?)

经过一番分析,我发现它是发生在Windows服务项目类型。

任何人都可以请建议解决方案?

+0

可能的重复:http://stackoverflow.com/questions/4764978/the-type-or-namespace-name-could-not-be-found – khlr 2013-04-27 14:52:08

回答

0

正如你所说我创建了一个新的WCF库。然后将Windows服务项目添加到将此WCF引用到Windows服务的同一解决方案并构建解决方案。没有问题出现。

您是否在解决方案中做了一些代码?如果是的话会有问题。你能详细描述一下吗?

+0

你使用过VS-2012吗?我的疑问是,这个问题只是VS-2012。 经过一些google搜索,我发现下面的文章: 如何:http://msdn.microsoft.com/en-IN/library/ms733069.aspx 我:在托管的Windows服务主机WCF服务必须努力,但不知道它有多大的帮助。 – 2013-04-27 13:19:40

+0

嗨,我只用过VS-2012。无论如何,我会深入探讨你的问题。 – 2013-04-29 04:13:59