asp.net-core – 在Visual Studio 2015 for ASP.NET Core项目中
我正在按照迁移建议将MVC5网站转换为ASP.NET核心网站 –
http://docs.asp.net/en/latest/migration/mvc.html并且在尝试使用Bower安装客户端软件包(Bootstrap和jQuery)时遇到困难.
我创建了一个空的ASP.NET 5 Web应用程序,然后我创建了一个bower.json文件,但是当我保存它时,我在Output窗口中得到以下内容 PATH=.node_modules.bin;C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEExtensionsMicrosoftWeb ToolsExternal;%PATH%;C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEExtensionsMicrosoftWeb ToolsExternalgit "C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEExtensionsMicrosoftWeb ToolsExternalBower.cmd" install jquery#2.1.4 --production --force-latest --save bower jquery#2.1.4 not-cached https://github.com/jquery/jquery-dist.git#2.1.4 bower jquery#2.1.4 resolve https://github.com/jquery/jquery-dist.git#2.1.4 bower jquery#2.1.4 checkout 2.1.4 bower jquery#2.1.4 ECMDERR Failed to execute "git clone https://github.com/jquery/jquery-dist.git -b 2.1.4 --progress . --depth 1",exit code of #-532462766 我也尝试在VS中使用Bower Package Manager,结果相同 我正在使用Visual Studio 2015 Update 2和ASP.NET Web Tools RC1-update 1 我看到其他帖子,当这不起作用(有不同的错误),但那些是在企业防火墙/代理后面,我不是 我是这个npm / bower的新手.我错过了什么? 更新: Unhandled Exception: System.MissingMethodException: Method not found: 'LibGit2Sharp.Branch LibGit2Sharp.RepositoryExtensions.Checkout(LibGit2Sharp.IRepository,LibGit2Sharp.Branch,LibGit2Sharp.Signature)'. at Microsoft.VisualStudio.GitCli.GitShim.clone(String url,String workingDirectory,String branchName) at Microsoft.VisualStudio.GitCli.Program.Main(String[] args) 并找到了这个链接,其他人似乎有同样的问题https://connect.microsoft.com/VisualStudio/feedback/details/1322649/bower-cannot-get-packages-with-protocol-git-since-behind-a-firewall 所以看起来是MS发布了这个组件的错误版本的问题 解决方法
尝试打开命令窗口并运行“git clone …..”命令.如果它工作,这肯定意味着它不是代理/防火墙问题,更可能是Git和VS的问题.
为了解决这个问题,我下载了独立的git安装程序(downloader here),它对我有用. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-web-api – Web API中的OData POST的媒体资源支持
- ASP.net WebForms – 构造函数与Page_Load
- ASP.NET分析器错误无法加载代码
- asp.net – Web.config Transforms在没有的情况下添加额外的
- asp.net-mvc-4 – GAC问题不能在IIS上托管应用程序
- asp.net – 什么时候在普通的HTML上使用runat =“server”
- asp.net-mvc-4 – 以复杂对象为参数的Web API获取方法
- asp.net – CLSID为{00024500-0000-0000-C000-000000000046
- asp.net-mvc – 从Visual Web Developer Express 2008使用A
- asp.net – 和debug =“false”有什么区别?
- asp.net-web-api – 如何只获取没有值的Odata.Co
- asp.net-mvc-3 – 使用存储过程(MSSQL)时Dapper的
- asp.net-mvc-4 – MVC 4部分与单独的控制器和视图
- asp.net-mvc – 在IE中清除cookie后,保持用户登录
- 未能加载文件或程序集或它的某一个依赖项
- 什么用作asp.net会员后端? RavenDB或SqlServer
- asp.net-mvc-3 – ASP.NET MVC中全局错误/异常处
- 编写T4模板进行代码生成无法避免的两个话题:
- asp.net – 当引发CacheItemRemovedCallback时,H
- asp.net – Absolut 1个aspx文件中最少的代码唤醒