在2015年VS ASP.NET 5 - 无法建立或调试解决方案 [英] ASP.NET 5 on VS 2015 - Can't build or debug solution

查看:532
本文介绍了在2015年VS ASP.NET 5 - 无法建立或调试解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个ASP.NET MVC 5 6解决方案。

不幸的是我不记得发生了什么事,但我发现一个奇怪的问题,即IDE不生成解决方案。

当我按<大骨节病>控制 + <大骨节病>移 + <大骨节病>乙下面一行出现在输出控制台:


  

1> ------启动生成:项目:其中,我的项目名称&gt;中配置:调试任何CPU ------


但没有实际发生,我无法接近解决方案,直到我preSS <大骨节病>控制 + <大骨节病>将取消构建。

我注意到然而,一些奇怪的事情。


  1. 项目的参考部分后面的(错误 - 参见错误列表)。的,但没有错误出现在错误列表

  2. 在程序包管理器控制台,没有项目是在默认项目下拉present,和包管理器抱怨。结果

  3. Debug菜单中没有选项,但启动和浏览方式,当我开始打,我得到一个错误消息说:

      

    调试器无法继续运行的进程。无法启动调试。结果
      



  4. 运行还原包(<大骨节病>控制 + <大骨节病>移 + <大骨节病> K + <大骨节病>研究)不会做任何事情无论是。

  5. 当试图更新包-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 。


  • 我已经更新到最新的ASP.NET和Web工具的 beta6

  • 在一个新的命令行, CD ING我的解决方案文件夹我已经运行的命令 DNU恢复

现在它的工作原理,并建立就像一个魅力。

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.

  1. The References section of the project is followed by (Errors - see Error List), but no errors appear in the Error List.
  2. In the Package Manager Console, no projects are present in the Default Project dropdown, and the Package Manager does complain about it.
  3. 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.

  4. Running 'Restore Packages' (Ctrl+Shift+K+R) doesn't do anything either.
  5. 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, cding to my solution folder I've ran the command dnu restore.

Now it works and build like a charm.

这篇关于在2015年VS ASP.NET 5 - 无法建立或调试解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆