我在运行MVC6应用程序时遇到麻烦。 项目建立好了,没有错误,包加载正确(由于恢复没有错误)DNX(rc1)网络命令不起作用
Here is my global.json code. As you see, both dnx versions in app and on machine are the same
当然,我使用与WebTools的-beta8和DotNetVersionManager-beta8 VS2015。
这是我project.json的一部分:
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel",
"gen": "Microsoft.Extensions.CodeGeneration"
},
"frameworks": {
"dnx451": { }
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components",
"Content"
],
"publishExclude": [
"Content",
"node_modules",
"bower_components",
"**.xproj",
"**.user",
"**.vspscc"
],
"scripts": {
"postrestore": [ "npm install", "bower install" ],
"prepare": [ "gulp copy" ]
}
,当我在“网页”命令单击,生成项目,但随后cmd窗口告诉我一个消息:('Could not load file or assembly Microsoft.Extensions.PlatformAbstract')
与输出/调试窗口以 结尾“程序'[14200] dnx.exe'已退出,代码为1(0x1)。”
我已更新dnvm和webTools,但问题未解决。顺便说一下,在另一台PC上,项目运行良好,所以问题可能出在我的dnx上。
难道你没有任何机会使用beta8运行时使用rc1包运行项目吗? – Pawel
你确定你在“依赖”部分有所有需要的包吗?请展示它。 – Dmitry
当在net451框架上引用项目时,我有相同的行为。 – mitsbits