Visual Studio 2012 无法识别所有挂起的更改? [英] Visual Studio 2012 not recognizing all pending changes?

查看:29
本文介绍了Visual Studio 2012 无法识别所有挂起的更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与我的团队一起在 TFS 中为项目工作,当我尝试为我的类创建新的建模项目时出现问题,它没有出现在待定的更改中.

I'm working in TFS with my team for project and the problem occurs when I'm trying to make new modeling project for my classes, it doesn't show up in pending changes.

所以这是我的方法:首先,我进入我保存课程的文件夹.我已经尝试了很多组合:我首先尝试右键单击我的文件夹并放置签出以进行编辑",然后继续 *(见下文);接下来我尝试点击我的类的 .csproj,所以当我添加建模项目时我激活了我的项目,然后移动到 *;最后我尝试激活我们整个项目的整个解决方案,将它们连接起来,然后移动到 *.

So here is how I go: First I enter my folder where I keep my classes. I've tried from there many combinations: I've tried first right-clicking on my folder and putting "check-out for edit" and then continued to * (see later); next I've tried clicking on .csproj of my classes so I activate my project when I'll be adding modeling project and then moved to *; last I tried to activate whole solution of our whole projects which is connecting them and then to moved to *.

都没有奏效.(我总是有最新版本)

None of it worked. (I was always having last version)

  • 这是我接下来为所有可能性所做的:我去了 Architecture -> New diagram (named diagram and left create new project) -> Create(然后窗口显示在哪个文件夹中创建新项目,我总是选择我保存类的文件夹).

完成后,我去检查团队资源管理器中的待定更改",因为应该有一些可用,因为我已经创建了建模项目.但是没有.由于我不能这样做,我最后的解决方案是通过右键单击我的项目上的源代码管理资源管理器并转到将项目添加到文件夹并选择我的项目,该项目是在我想要的本地创建的被创建.

After when that was done, I went to check to "pending changes" in Team Explorer, because there should be some available since I created already Modeling project. But there was none. Since I couldn't do it like that, the last solution how I made it was by right-clicking to Source-control Explorer on my project and going to Add items to folder and selected my project which was created locally where I wanted it to be created.

但是,最后一个解决方案在之后尝试打开我的建模项目时给了我错误.我知道我应该激活第一个建模项目,所以我点击了 .modelproj,点击它时,它给了我这个通知"或警告":

But, this last solution was giving me errors while trying to open my modeling project after. I know I should activate first modeling project, so I clicked to .modelproj and while clicking to it, it was giving me this "notice" or rather "warning":

您打开的解决方案受源代码管理,但当前未配置为在 Visual Studio 中集成源代码管理.您现在要将此解决方案绑定到源代码管理吗?

The solution you have opened is under source control but not currently configured for integrated source control in Visual Studio. Would you like to bind this solution to source control now?

--

我做错了什么?为什么在创建我的项目时默认不集成解决方案(我的朋友是自动集成的,他们不需要在源代码管理资源管理器中右键单击添加项目即可看到待处理的更改)?

What am I doing wrong? Why solutions are not integrated by default while creating my project (my friends are doing it automatically, they don't need to right-click in Source Control Explorer to add item to be able to see pending changes)?

我希望我能理解.

推荐答案

您的解决方案绑定似乎已损坏.在问题上单击是将您的解决方案绑定到源代码管理,这是必须存储在解决方案文件中的信息,虽然 Visual Studio 确实看到该文件夹​​已映射到源代码管理,但它也看到您的解决方案不是 (您在创建时是否选中了将解决方案添加到源代码管理复选框?)

It looks like your solution binding is broken. Either click yes on the question to bind your solution to source control, this is information that must be stored in the solution file and while Visual Studio does see that the folder is mapped to source control, it also sees that your solution isn't (did you check the add solution to source control checkbox when you created it?)

可选择尝试打开 file -> Source Control ->(可选)Advanced -> Manage Source Control.您可以单独选择解决方案中的项目,然后单击工具栏上的 bind 按钮以手动将它们绑定到源控件.

Optionally try opening file -> Source Control -> (optionally) Advanced -> Manage Source Control. You can select project in your solution individually and then click the bind button on the toolbar to bind them to sourcecontrol manually.

这篇关于Visual Studio 2012 无法识别所有挂起的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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