在 Visual Studio 中的同一解决方案中从另一个项目访问项目时出现问题

发布于 2024-10-02 21:37:53 字数 123 浏览 0 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

待"谢繁草 2024-10-09 21:37:53

需要检查的一些事项:

您的 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文