【发布时间】:2015-04-06 22:09:56
【问题描述】:
- 软件版本
- 操作系统:MacX 版本:10.10.2
- 嘘:3.2.57
- K 版本管理器 - 内部版本 10319
通过 Brew 安装 KVM。使用 GitHub 文档。 Here
克隆了样本。使用示例 HelloMVC
'kvm restore' 运行没有错误
'k web'
我收到:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
关于在哪里或如何解决这个问题的任何想法?
编辑
修复确实有效。我删除了我的目录,从 github 重新克隆完成了下面修复中的步骤,是的,现在我运行了
红隼
Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException: /Users/dsmith/Projects/Home/samples/HelloMVC/Startup.cs(11,17): error CS1061: 'IApplicationBuilder' does not contain a definition for 'UseErrorPage' and no extension method 'UseErrorPage' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)
这是一个 C# 编译错误,这意味着程序集已找到并尝试编译,因此我正在取得进展我确实会在下面作为答案提供的 Github 问题上看到此错误。将发布我发现的内容谢谢!
【问题讨论】:
-
这似乎是一个非常当前的问题github.com/aspnet/Home/issues/310 我也遇到了同样的问题,如果有什么我会更新
标签: c# asp.net asp.net-mvc kvm asp.net-core