我正在按照迁移建议将MVC5网站转换为ASP.NET Core网站 - http://docs.asp.net/en/latest/migration/mvc.html,当我试图安装客户端软件包时, Bootstrap和jQuery)使用Bower。在Visual Studio 2015 for ASP.NET Core项目中安装bower软件包时出错
我已经创建了一个空的ASP.NET 5 Web应用程序,然后我创建一个bower.json文件,但是当我保存它,我得到的输出窗口
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.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具有相同的结果
我使用Visual Studio 2015年更新2与ASP.NET Web工具RC1更新1
我看到其他职位时,这不起作用(带一个不同的错误),但那些是在企业社会背后ewall/proxy,我不是
我是新来的这个NPM /鲍尔的东西。我错过了什么?
更新: 我跑的命令,在命令提示符下,它仍然没有工作,但我有底层错误
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并检查是否设置了PATH变量。 – Dresel