开发者

Visual Studio TeamExplorer disable project check-in

开发者 https://www.devze.com 2022-12-26 10:10 出处:网络
I need to disable check-in operation for several projects in my solution. I need it to ensure myself from uploading changes to projects which I don\'t want to change. Is it possible with Team Explore开

I need to disable check-in operation for several projects in my solution. I need it to ensure myself from uploading changes to projects which I don't want to change. Is it possible with Team Explore开发者_开发百科r?


TFS only tracks changes that are made through Visual Studio. In your case, you need to edit the files locally, but without VS knowing. Unfortunately, this is difficult, because your converter is running in VS.

The steps would be

  1. "Get" Entire Solution
  2. Open solution in VS
  3. run converter to 2010
  4. Copy the relevant sln files to a local folder.
  5. Undo pending changes on the files you don't want checked in.
  6. Paste the modified files back.

Some risks associated with this. This is a huge pain if the SLN files get changed very often, because your local changes will be overwritten. This cannot be avoided however, because this problem would still exist if you had them 'checked out' the normal way. You will not be able to add/remove projects to the SLN because your VS version is wrong. you will need to get someone with vs 2008 to "Add..." the project, then you'll have to get latest on the SLN and run the conversion steps again.


Any reason why you cant do one of the following:

  • Work offline (IIRC you can selectively bind projects within a solution)
  • Shelve changes
  • Create a branch


You could change permissions on the folders in TFS to remove checkin rights.

But this could be a rather large hammer, why not just revert any changes to do (accidentally) make?


Personally I'd create a branch.

0

精彩评论

暂无评论...
验证码 换一张
取 消