问题描述
当我创建项目时,我可以提交大约2次,但现在它不允许我。这个按钮是灰色的像这样:
我所做的只是在我的项目中编辑代码。我离开了Visual Studio,第二天我回来了,它不工作。如何解决这个问题?解决方案这听起来像是在Visual Studio 2015 Update 2中解决的错误:简单地说,Visual Studio产生一个后台线程来检查你的仓库的状态。如果该线程由于某种原因抛出异常,Visual Studio将永远不会报告状态。 (因此,不会允许您提交更改。)
安装最新的Update 3 应修复此问题:
(当然,@VonC有一个非常正确的解决方法,即命令行不受此限制问题。)
When I created the project I was able to commit about 2 times, but now it doesn't allow me. The button is grayed out like this:
All I've done was edit the code in my project. I got out of Visual Studio and the next day I came back and it's not working. How do I fix this?
This sounds like a bug that was fixed in Visual Studio 2015 Update 2: briefly, Visual Studio spawns a background thread to check the status of your repository. If that thread throws an exception for some reason, Visual Studio will never report the status. (And, consequently, will not let you commit your changes.)
Installing the latest Update 3 should fix this problem:
https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs
(And of course, @VonC has the quite correct workaround that the command line is immune to such issues.)
这篇关于无法承诺与Visual Studio混用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!