【问题标题】:running asp.net5 application using latest dnx version fails使用最新的 dx 版本运行 asp.net 5 应用程序失败
【发布时间】:2016-02-02 17:25:54
【问题描述】:

我从https://github.com/aspnet/MusicStore/tree/dev拉取了最新的代码

无需对代码进行任何更改。我构建了应用程序 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()

请注意,几天前相同的代码库成功运行。

【问题讨论】:

标签: asp.net-core dnx coreclr


【解决方案1】:

我们正在从dnx 迁移到dotnet。迁移发生在 dev 分支上,因此那里的所有代码在运行时可能无法编译或失败。这很可能是其中一种情况。

从调用堆栈中,我假设您正在尝试运行测试。在 dotnet 世界中,我们运行的测试略有不同,我们还没有通过转换进入 MusicStore。

很抱歉给您带来不便。

【讨论】:

    【解决方案2】:

    RC2 不稳定。降级到 RC1

    https://github.com/aspnet/MusicStore/releases

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多