在2015年VS ASP.NET 5 - 无法建立或调试解决方案 [英] ASP.NET 5 on VS 2015 - Can't build or debug solution
问题描述
我开发一个ASP.NET MVC 5 6解决方案。
不幸的是我不记得发生了什么事,但我发现一个奇怪的问题,即IDE不生成解决方案。
当我按<大骨节病>控制骨节病> + <大骨节病>移骨节病> + <大骨节病>乙骨节病>下面一行出现在输出控制台:
1> ------启动生成:项目:其中,我的项目名称&gt;中配置:调试任何CPU ------
块引用>但没有实际发生,我无法接近解决方案,直到我preSS <大骨节病>控制骨节病> + <大骨节病>将骨节病>取消构建。
我注意到然而,一些奇怪的事情。
- 项目的参考部分后面的(错误 - 参见错误列表)。的,但没有错误出现在错误列表
- 在程序包管理器控制台,没有项目是在默认项目下拉present,和包管理器抱怨。结果
- Debug菜单中没有选项,但启动和浏览方式,当我开始打,我得到一个错误消息说:
块引用>- 运行还原包(<大骨节病>控制骨节病> + <大骨节病>移骨节病> + <大骨节病> K 骨节病> + <大骨节病>研究骨节病>)不会做任何事情无论是。
- 当试图
更新包-reinstall
在PM控制台命令,我收到以下错误:
没有包更新可从项目当前包源'Ackount。
块引用>不幸的是我不记得precisely我改变之前它发生,所以我不能重现该问题。
解决方案下面是我所做的事情,帮我解决这个问题的基础上,<一的评论href=\"http://stackoverflow.com/questions/32131768/asp-net-5-on-vs-2015-cant-build-or-debug-solution?noredirect=1#comment52179134_32131768\">Victor Hurdugaci 。
现在它的工作原理,并建立就像一个魅力。
I'm developing an ASP.NET 5 MVC 6 solution.
Unfortunately I can't remember what happened but I'm getting a strange issue where the IDE doesn't build solution.
When I hit Ctrl+Shift+B the following line appears in the output console:
1>------ Build started: Project: <My project name>, Configuration: Debug Any CPU ------
but nothing actually happens, and I can't close solution until I'd press Ctrl+Break to cancel build.
I'm however noticing a few strange things.
- The References section of the project is followed by (Errors - see Error List), but no errors appear in the Error List.
- In the Package Manager Console, no projects are present in the Default Project dropdown, and the Package Manager does complain about it.
- The Debug menu contains no options but Start and Browse With, and when I hit Start, I get an error message saying:
The debugger cannot continue running the process. Unable to start debugging.
- Running 'Restore Packages' (Ctrl+Shift+K+R) doesn't do anything either.
- When trying
update-package -reinstall
command in the PM console, I get the following error:No package updates are available from the current package source for project 'Ackount'.
Unfortunately I can't remember precisely what I changed before it happened so I can't reproduce the issue.
解决方案Here's what I've done and help me solve the issue, based on the comments of Victor Hurdugaci.
- I've updated to the latest ASP.NET and Web Tools beta6.
- In a new command line,
cd
ing to my solution folder I've ran the commanddnu restore
.Now it works and build like a charm.
这篇关于在2015年VS ASP.NET 5 - 无法建立或调试解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!