Shared wwwroot files in different projects

本秂侑毒 提交于 2021-02-07 04:00:55

问题


In the "older" ASP.NET MVC projects you were able to create two separate MVC projects. Use the first project as the "main" MVC project and let that project then reference the second project (with some additional config settings).

Basically how 3rd party MVC projects were setup. You reference their assemblies in your own MVC project and you auto-magically have "Admin" pages available as well.

I'm currently trying to find out if this is possible for the newer MVC ASP.NET 5 as well.

I basically have two projects. Both have their own wwwroot folder. Only the first start up project has an index.html in the wwwroot and the second project (which is referenced by the first) has an index.html in the subfolder test. So in the 2nd it is: wwwroot/test/index.html.

When I run the first project I want to be able to also call localhost/test/index.html.

But all my attempts failed so far. Anyone any idea if this is already possible?

来源:https://stackoverflow.com/questions/30061330/shared-wwwroot-files-in-different-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!