admin管理员组文章数量:1336148
I need to add to my C# web project a JS library, but i still don`t get how to do it. There is no such library in the built-in Nuget Package manager. Thanks for any help ;)
I need to add to my C# web project a JS library, but i still don`t get how to do it. There is no such library in the built-in Nuget Package manager. Thanks for any help ;)
Share Improve this question edited Jun 28, 2016 at 19:14 Daniel A. White 191k49 gold badges379 silver badges465 bronze badges asked Jun 28, 2016 at 19:11 StrixenStrixen 331 silver badge3 bronze badges 2- JavaScript libraries are generally just files: download the file and put it in your project. Or use a client side package manager, ex Bower. Or reference it from the CDN it's hosted on. – mason Commented Jun 28, 2016 at 19:14
- "C# Web project" is quite a broad label that enpasses ASP.NET Web Forms, ASP.NET MVC, ASP.NET Web API, etc. – Heretic Monkey Commented Jun 28, 2016 at 19:19
1 Answer
Reset to default 6Download the file and then just copy/paste the *.js
file in your project and take a reference of it in your design page *.aspx
(for ASP.NET) or *.cshtml
(for ASP.NET MVC) saying
<script src="~/filename.js"></script>
本文标签: javascriptAdd js library to visual studio projectStack Overflow
版权声明:本文标题:javascript - Add js library to visual studio project - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742243325a2438971.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论