Visual Studio 2010 在 git pull 后关闭打开的文件
我们使用 VS 2010 和 GIT。有时,在 git pull 后,所有打开的文件都会关闭——似乎在将新文件添加到项目中时会发生这种情况。我似乎找不到不应该在版本控制中的相关文件。还有其他人遇到过这个问题吗?
We're using VS 2010 and GIT. Occasionally, after a git pull, all open files will close--seems like this happens when new files are added to the project. I can't seem to find a related file that shouldn't be in version control. Has anyone else had this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想出了一个解决方案。这有点烦人,但它可以解决在 VS 中重新打开所有选项卡/文件的繁琐任务。
当您收到 VS 警告,指出项目已在 VS 外部修改时,它会询问您是否要重新加载项目。选择“忽略”。
接下来,保存所有工作,关闭 VS 并重新打开您的解决方案或项目。您之前打开的所有文件/选项卡都将再次打开,显然,项目文件的更新也将被加载。
另一个需要注意的是,您将失去打开文件中所有“撤消”潜力。
I figured out a solution to this. It's a little annoying but it works around the tedious task of re-opening all of your tabs/files in VS.
When you get the VS warning that the Project has been modified outside of VS it asks if you want to reload the project. Choose "Ignore."
Next, save all your work, close VS and reopen your solution or project. All the files/tabs you had open previously will be open again and the updates to the project file, obviously, will also be loaded.
Another caveat to this is you lose all your "Undo" potential in your open files.
当
.vcproj
文件被触及(不一定会更改)时,其所有打开的文件都会被关闭,并且永远不会重新打开。这可能就是你正在经历的事情吗?When a
.vcproj
file gets touched (not necessarily changed), all its opened files are closed and never reopened. Might this be what you are experiencing?查看
WorkspaceReloder。
它是一个视觉工作室插件,可以让您的文件在重新加载时保持打开状态。它非常有用,可以让您不必经历那些荒谬的步骤。生产力++。
Check out
WorkspaceReloder.
It's a visual studio add in that will keep your files open upon reloading. It's tremendously useful and will keep you from having to go through those ridiculous steps. Productivity++.