的Visual Studio 2012和丢失的文件 [英] Visual Studio 2012 and missing files

查看:274
本文介绍了的Visual Studio 2012和丢失的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

得到与Visual Studio 2012专业版的一个奇怪的问题。

Got a weird issue with Visual Studio 2012 Professional edition.

我们三个人在工作中使用的是这一点,我们在同一个项目,MVC4 / EF5 / .Net4.5 / C#和Oracle的工作。

Three of us at work are using this, and we're working on the same project, MVC4/EF5/.Net4.5/C# and Oracle.

我们正在使用SVN版本控制。

We're using SVN for version control.

发生的事情是,当我的同事提交了新的文件,以一个项目,当我更新我的工作拷贝,文件来通过,但它不是在Visual Studio中显示的是该项目的一部分,这是只有在那里,如果你选择显示所有文件,然后手动将其添加到项目中。

What's happening is that when my colleague commits a new file to a project, when I update my working copy, the file comes through, but it's not showing in Visual Studio as being a part of the project, it's only there if you choose Show All Files and then manually add it to the project.

现在我知道你可能会想,我们不会犯的csproj文件或类似的东西,但我双重检查和我们肯定是;我们忽略的唯一的事情是。用户/ .resharper名为.suo和文件。

Now I know what you might be thinking, we're not committing the CSPROJ files or something like that, but I've double checked and we definitely are; the only thing we're ignoring are .user/.resharper and .suo files.

任何人都碰到这个问题来了?

Anyone else come across this problem ?

推荐答案

我们使用相同的设置与我们的饭桶。

We use the exact same setup with our git.

这听起来好像他不是做提交前救了他的.csproj。 Visual Studio是pretty不好保存的.csproj它保存新文件到磁盘的同时,所以有时你击中保存所有强制保存.csproj的文件。我已经得到这样做,每一个我用git交互时间的习惯。

That sounds like he's not saving his .csproj before doing a commit. Visual studio is pretty bad about saving the .csproj at the same time it saves a new file to the disk, so sometimes you have hit save all to force a save of the .csproj file. I've gotten in the habit of doing that every time I interact with git.

您应该看到这种行为时,由他的.csproj文件的侧面比较和你做一个侧面验证。他们是引擎盖下简单的.xml文件。用记事本打开它,看看尽管各种<编译包括=fileName.cs/> 节点。当他增加了一个文件,你没有拥有它,你应该看到您缺少相应的<编译/> ,而他有它。

You should verify by doing a side by side comparison of his .csproj file and yours when seeing this behavior. They are simple .xml files under the hood. Open it with notepad, and look though the various <Compile Include="fileName.cs" /> nodes. When he's added a file and you do not have it, you should see that you are missing the appropriate <Compile /> while he has it.

一个并排比较工具,如无法比拟可以使这个非常容易。

A side by side comparison tool such as beyond compare can make this very easy.

这篇关于的Visual Studio 2012和丢失的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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