在 Visual Studio 中的同一解决方案中从另一个项目访问项目时出现问题
我有一个 Windows 服务项目,我将其添加到其他几个项目中。我添加了参考文献并且可以访问它们。然后当我构建时,它说“不存在” 然后我删除引用并再次添加它,我可以访问它,但在构建时仍然失败并且以后无法访问它。任何线索这会发生什么?
I have a windows service project which I added to a few other projects. I added the references and I can access them. Then when I build, it says "Does not exist"
Then I remove the reference and add it again and I can access it, but still fails when I build and can't access it later. Any clue what does this happen form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要检查的一些事项:
您的 Web 服务构建到哪里?您可能想检查它是否未部署到在重建时删除其内容的 \bin 文件夹。
它是作为 Web 引用添加还是作为直接引用添加到程序集?
A few things to check:
Where does your web service get built to? You might like to check its not getting deployed to a \bin folder that has its contents deleted on a rebuild.
Is it added as a web reference or as a reference directly to an assembly?