1

我在构建自己编写的简单 WCF 服务时遇到了麻烦。这是我收到的主要错误消息:

D:\temp\3fsgwk0h.1vu\input\AndroidWCFService.csproj(102,3):错误 MSB4019:导入的项目“C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.目标”没有找到。确认声明中的路径正确,并且该文件存在于磁盘上。

唯一可能使这个 WCF 服务更复杂的是我正在使用实体框架连接到我在 AppHarbor 上创建的 SQL 数据库。我需要进行配置设置吗?

4

1 回答 1

1

这是回答您的问题的博客文章。从帖子:

You will see that appharbor cannot build the application with WCF service, the following error will be in log:

"Microsoft.VisualStudio.ServiceModel.targets" was not found
To fix this error you should add Microsoft.VisualStudio.ServiceModel.targets (this file located in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\WCF folder) to your “testForBlockService” service project. Then open testForBlockService.csproj for edit and replace

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.targets" />
with

<Import Project="Microsoft.VisualStudio.ServiceModel.targets" />
于 2013-10-09T23:47:45.767 回答