2016-02-01 45 views
1

我把最新的代碼https://github.com/aspnet/MusicStore/tree/dev應用asp.net5失敗

,而無需對代碼進行任何更改。我構建的應用程序爲 dnx版本:1.0.0-rc2-16308 coreclr x64

應用程序生成成功,但是當我嘗試運行應用程序時,我得到下面的錯誤。

System.NullReferenceException: Object reference not set to an instance of an  object. 
    at Xunit.Runner.Dnx.Program.GetAvailableRunnerReporters() 
    at Xunit.Runner.Dnx.Program.Run(String[] args) 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 
    at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly  assembly, String[] args, IServiceProvider serviceProvider) 
    at System.Threading.Tasks.Task`1.InnerInvoke() 
    at System.Threading.Tasks.Task.Execute() 

請注意,相同的代碼庫成功工作幾天後。

+0

的可能的複製[什麼是一個NullReferenceException,如何解決?(http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-我怎麼辦 - 修復它) – Filburt

+0

改變了,我的問題。它必須對dnx和xunit做些什麼 – user336058

回答

2

我們正在從dnx遷移到dotnet。遷移發生在dev分支上,因此所有代碼在運行時可能不會編譯或失敗。這很可能是其中的一種情況。

從調用堆中,我假設你正在嘗試運行測試。在dotnet世界中,我們運行的測試有點不同,我們還沒有到MusicStore進行轉換。

抱歉給您帶來不便。