Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个解决方案下有多个 .net 项目。
具体来说,我想从 Windows 应用程序项目访问的 asp.net 项目下的 pdf、word 文档等内容文件很少。
实现这一目标的最佳方法是什么?
您可以尝试将文件添加为现有文件,然后在选择该文件时指定它是链接文件。之后,您可以翻转选项以始终复制到输出文件夹。
您可以创建一个“资源”项目,并在 ASP.NET 项目和 Windows 应用程序项目之间共享它。
然后,您只需根据需要从第三个共享项目加载资源。