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.
我的解决方案中有 2 个项目:
- ClassLibrary1 *Class1.cs - MvcApplication1 *Areas *Content *Controllers *Images
如何从ClassLibrary1访问Images文件夹中的文件?它必须是带有路径的物理文件,而不是嵌入在 Resources.resx 中,而且,我不能把它放在\bin
Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)