简体   繁体   中英

Share a folder between two Asp.Net web applications in the same solution

I'm currently working on an Asp.net MVC Web application. In my solution, there're two projects: front office and back office. I'd like to share a folder that'll contain resources such as images, documents, etc... that'll be uploaded through the web application.

For example, when I upload an image using the back office, I only need to store the name of the image in my database, that way I'll be able to use this image in my front office part. So I need to share a folder between both my applications.

Thanks for responses!

当您有两个应用程序时,我认为最好的方法是:创建一个新的虚拟目录,将其映射到该文件夹​​(文件所在的目录)到第二个应用程序中,然后编写一个HttpHandler从那里获取文件。

You could use a branch within your source control environment if that is what you're asking.

-Shaun

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM