MVC - 添加对外部JavaScript文件的引用 [英] MVC - Adding A Reference To An External JavaScript File
问题描述
我有一个MVC / Razor Web应用程序。 从这个应用程序中,我想引用一些存储在解决方案中的单独项目(Windows类库)中的JavaScript文件。 我有适当的参考设置,JavaScript文件
被标记为'Embedded Resource',并且相应的条目已添加到AssemblyInfo.cs中。
我只是不确定如何将资源拉到MVC项目中的View上。 我确定我不是第一个尝试这样做的人,但我还没有找到一个如何实现这个目标的好例子。
嗨 jmwheeler7,
你最好在下面更合适的论坛发布它以获得更好的回复。谢谢。
I have an MVC/Razor Web Application. From this application I would like to reference some JavaScript files that are stored in a separate project (Windows Class Library) in the solution. I have the appropriate reference setup, the JavaScript files are marked as 'Embedded Resource', and the appropriate entries have been added to AssemblyInfo.cs.
I'm just not sure how I can pull the resource onto my View in the MVC project. I'm sure I'm not the first person trying to do this but I have yet to find a good example of how to accomplish this.
Hi jmwheeler7,
You 'd better post it in below more appropriate forum for better responses. Thanks.
这篇关于MVC - 添加对外部JavaScript文件的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!