交流意见,CSS,多asp.net MVC 3项目之间的javascript [英] sharing views, css, javascript between multiple asp.net mvc 3 projects
问题描述
这似乎是不可能的/硬几个asp.net MVC 3项目之间交换意见。至少,这就是谷歌告诉我。请纠正我,如果我错了......
It seems to be impossible/hard to share views between several asp.net mvc 3 projects. At least, that's what Google tells me. Please correct me if I am wrong ...
什么是关于CSS和JS文件?是不是有人已经这样做了?如果是这样,什么是实现这一目标(一VS Studio 2010的解决方案有几个asp.net mvc的3个项目内)最好的做法?
What's about css and js files? Did someone do this already? If so, what is the best practice to achieve this (within a vs studio 2010 solution with several asp.net mvc 3 projects)?
只是好奇,是有可能MVC3区域之间共享CSS和JS?
Just curious, is it possible to share css and js between mvc3 areas?
推荐答案
既然你提到的svn - 它有的svn:外部的属性,让你(甚至从不同的存储库)的网站下映射一个文件夹的位置根文件夹。我们用它成功在一些MVC应用重用的多个库的工具与外部资源(脚本,CSS文件,图像和观点)。
Since you mention svn - it has "svn:externals" property that lets you map a folder (even from a different repository) to a location under the web site root folder. We used it with success to reuse multiple library tools with external resources (scripts, css files, images and views) in a number of MVC applications.
这篇关于交流意见,CSS,多asp.net MVC 3项目之间的javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!