解决方案无法在Visual Studio中运行/生成/重建 [英] Solution doesnt run/build/rebuild in Visual Studio

查看:204
本文介绍了解决方案无法在Visual Studio中运行/生成/重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在解决方案中的Visual Studio中运行构建/重建"时,没有任何反应.

When trying to run Build / Rebuild in Visual Studio on a solution, nothing happens.

我可以使用MSbuild.exe在命令提示符下运行该构建,这给了我期望的输出(构建成功)-但是,当尝试从Visual Studio中运行它时,什么也没有发生.没有调试输出或构建输出.

I can run the build from the command prompt using MSbuild.exe, and this gives me the output i would expect (Build succeeded) - But when trying to run it from visual studio, nothing happens. Theres no debug output or build output either.

该项目是MVC项目,其中有些参考其他项目.

The project is a MVC project, with some references to other projects.

我可以创建一个新的MVC项目,它运行得很好!

I can create a new MVC project, and it runs just fine!

您知道什么会触发此行为吗?

Any idea what might trigger this behavior?

使用Visual Studio2015.

Using Visual Studio 2015.

我尝试了以下操作:

  • 重新启动VS
  • 将解决方案文件与新的解决方案文件进行比较
  • 从MSBuild手动触发构建(确定)
  • 切换调试/发布配置
  • 单独构建项目
  • 更新了NuGet
  • 构建配置正常(对构建进行了所有检查)

那只蜜蜂说,解决方案在git存储库中,而另一个从事此项目的人已在Visual Studio 2013的较后阶段进入-但我不知道这是否与问题有关.

That beeing said, the solution is inside a git repository, and the other person working on this project has entered at a later stage with Visual Studio 2013 - But i dont know if this has anything to do with the issue.

推荐答案

所以似乎发生的事情是,在我们的私有仓库中,我对一个单独的git仓库(bootstrap)有某种依赖性,我也没有获得访问权限-因此,没有给我一个错误,它只是默默地失败了. 将对存储库的访问权限添加到我的帐户后,突然使项目再次运行.

So what seemed to happen was that there was some kind of dependency on a separate git repository (bootstrap), in our private repo that i hadnt been getting access too - so instead of giving me an error about it it just silently failed. Adding access to the repository to my account, suddenly made the project run again.

这篇关于解决方案无法在Visual Studio中运行/生成/重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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