[英]Share a folder between two Asp.Net web applications in the same solution
I'm currently working on an Asp.net MVC Web application. 我目前正在研究Asp.net MVC Web应用程序。 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.
我想共享一个文件夹,其中包含图像,文档等资源,这些资源将通过Web应用程序上传。
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 -Shaun
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.