DNX beta8-15530:无法加载文件或程序集 'Microsoft.DNX.PackageManager'

DNX beta8-15530 : Could not load file or assembly 'Microsoft.DNX.PackageManager'

我在程序包管理器控制台中有 运行 这个命令来升级 dnx。

"dnvm upgrade -u default"

更新后,我可以看到(C:\Users\Chandrasekar.dnx\runtimes) 新的运行时间版本,如下所述

"dnx-clr-win-x86.1.0.0-beta8-15530"  

我开始在 VS2015 中创建新项目 --> ASPNET 5 web 应用程序它以一些错误结束。

在输出window中你可以看到错误"Could not load 'Microsoft.DNX.PackageManager'",根据这个announcement它已经重命名为'Microsoft.Dnx.Tooling' 所以我的问题是为什么新的 DNX beta 8 版本仍然依赖这个删除或重命名的 DLL 'Microsoft.DNX.PackageManager'?

输出Window错误:

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:\Users\Chandrasekar\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta8-15530\bin\dnx.exe "C:\Users\Chandrasekar\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta8-15530\bin\lib\Microsoft.DNX.PackageManager\Microsoft.DNX.PackageManager.dll" restore "C:\Users\Chandrasekar\Documents\Visual Studio 2015\Projects\DNX8\src\DNX8" -f "C:\Program Files (x86)\Microsoft Web Tools\DNU"
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DNX.PackageManager' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.DNX.PackageManager'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Microsoft.Dnx.Runtime.Loader.LoadContext.Load(AssemblyName assemblyName)
   at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, FrameworkName targetFramework)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, FrameworkName targetFramework)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, FrameworkName targetFramework)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

你能帮我解决这个问题吗?我需要更新任何 dll 或软件吗?

工具: 微软 Visual Studio 企业版 2015 版本 14.0.23107.0

您使用的不是最新的工具版本。您的版本可能是 14.0.20711.0 而最新版本是 14.0.20723.0.

20711 有一个错误,因为它试图加载 Microsoft.DNX.PackageManager 实际上是 Microsoft.Dnx.Tooling .

获取最新版本:http://www.microsoft.com/en-us/download/details.aspx?id=48222

查看this公告。

让我把它脱颖而出 - 我往往会忘记。这是 Beta 8:

Microsoft ASP.NET and Web Tools 2015 (Beta8) – Visual Studio 2015

并搜索所有这些 - 如果名称不变,RC1 将很快出现 ;)

Search results for Microsoft ASP.NET and Web Tools on Microsoft.com

对于 RC1,Microsoft ASP.NET and Web Tools 2015 (RC) – Visual Studio 2015 页面下的下载有很多选择,我缺少的是 WebToolsExtensionsVS14.msi。安装后引用得到修复并且包能够恢复。