2015-05-01 34 views
1

我想在Windows 7操作系統的VSCode中運行代碼示例https://github.com/aspnet/home。我成功地推出了網站,但它的錯誤了在VSCode中運行ASP.net V5

An unhandled exception occurred while processing the request. 

MissingMethodException: Method not found:'Microsoft.Framework.Runtime.Compilation.ILibraryExport Microsoft.Framework.Runtime.ILibraryManager.GetLibraryExport(System.String)'. 

Microsoft.AspNet.Mvc.Razor.Compilation.RoslynCompilationService.GetApplicationReferences()

我試圖升級DNVM並試圖列出可用的版本,並做了「DNU恢復「

Active Version  Runtime Architecture Location       Alia 
                     s 
------ -------  ------- ------------ --------       ---- 
* 1.0.0-beta4 clr  x86   C:\Users\***\.dnx\runtimes d... 

請幫助解決這個問題。

回答

2

我有同樣的問題,但我通過獲取最新的開發版本來解決它。所以我猜這是當前nuget包構建中的一個錯誤。來自github頁面:

DNVM有一個穩定和不穩定飼料的概念。穩定默認爲NuGet.org,而不穩定默認爲我們的開發MyGet飼料。所以,如果你添加-u或-unstable任何安裝或升級的命令,你會得到我們的DNX的最新CI構建,而不是一個上的NuGet

最後發佈

嘗試運行下面的命令,然後啓動網站再次。

dnvm upgrade -u 
+0

您的解決方案工作得很好。我現在能夠啓動我的V5網站。謝謝。 – Thanigainathan