{"id":5033,"date":"2005-06-03T20:04:00","date_gmt":"2005-06-03T20:04:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2005\/06\/03\/how-to-use-the-tf-version-control-command-line-from-vs-2003-and-other-environments\/"},"modified":"2005-06-03T20:04:00","modified_gmt":"2005-06-03T20:04:00","slug":"how-to-use-the-tf-version-control-command-line-from-vs-2003-and-other-environments","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-use-the-tf-version-control-command-line-from-vs-2003-and-other-environments\/","title":{"rendered":"How to use the TF version control command line from VS 2003 and other environments"},"content":{"rendered":"<p>We&#8217;ve had a lot of customer feedback on wanting integration in VS 2003, VB6, etc.&nbsp; The problem with the VS 2003 environment is that there can only be a single version of the CLR loaded into a process.&nbsp; VS 2003 loads 1.1.&nbsp; The TF source control integration requires that the 2.0 CLR be used.&nbsp; Thus, our VS integration code won&#8217;t run in VS 2003.&nbsp; With other environments that don&#8217;t load a particular CLR, there is the possibility of writing a plugin to provide TF source control integration.<\/p>\n<p>You can also use Team Foundation Client (which is being renamed Team Explorer) as a stand alone interface to all of Team Foundation running side by side with VS 2003.<\/p>\n<p>However, if you are writing code and you just want to check out, check in, etc. from with VS 2003, here&#8217;s a way to do it right now.<\/p>\n<p>The <a href=\"http:\/\/blogs.msdn.com\/buckh\/articles\/category\/9194.aspx\">command line<\/a> works well and invokes dialogs for commands like checkin, shelve, history, resolve (for conflict resolution), workspace, etc.&nbsp; These dialogs contain features you would get in the full VS 2005 source control integration (it&#8217;s a subset of what&#8217;s in the VS integration).&nbsp; For example, the checkin dialog when run from the command line gives you the almost the same features as the Pending Checkins window (the shelve and unshelve buttons aren&#8217;t available in the checkin dialog, but you get pending changes, the ability to compare files, associate or resolve work items, add checkin notes, and evaluate <a href=\"http:\/\/blogs.msdn.com\/team_foundation\/archive\/2005\/04\/15\/408700.aspx\">checkin policies<\/a>).<\/p>\n<p>The diff command launches the diff viewer.&nbsp; In beta 2, shelve has a dialog but unshelve does not (unshelve does have the dialog in the the July CTP).&nbsp; Other commands like checkout (aka edit) and add&nbsp;don&rsquo;t have any UI and just run.<\/p>\n<p>You can hook up get, edit, add, delete, checkin, status, diff, workspace, etc. this way.&nbsp; For some commands, like checkin, status, and shelve, you don&rsquo;t need to specify an argument (drop the $(ItemPath), which represents the currently open file, and just add the command for those).&nbsp; The letter in the title after the ampersand becomes the second half of the shortcut so you can run it from the keyboard (Alt T E to edit the current file as shown below)<\/p>\n<p>Here&#8217;s the information to put into the External Tools dialog.&nbsp; After entering the information, click the Add button.&nbsp; Repeat this for each command you&#8217;d like to run.<\/p>\n<p><font face=\"Courier New\">Title:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hat &amp;Edit<br>Command:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:Program FilesMicrosoft Visual Studio 8Common7IDEh.exe<br>Arguments:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit $(ItemPath)<br>Initial directory: $(ItemDir)<\/font><\/p>\n<p>The $(ItemPath) will cause it to check out the file that&#8217;s currently open in VS.&nbsp; Be sure to check the Use Output Window checkbox so the command line output goes to the VS output window.<\/p>\n<p>For commands like get, shelve, checkin, and status, you would omit $(ItemPath).<br><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve had a lot of customer feedback on wanting integration in VS 2003, VB6, etc.&nbsp; The problem with the VS 2003 environment is that there can only be a single version of the CLR loaded into a process.&nbsp; VS 2003 loads 1.1.&nbsp; The TF source control integration requires that the 2.0 CLR be used.&nbsp; Thus, [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6,8],"class_list":["post-5033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>We&#8217;ve had a lot of customer feedback on wanting integration in VS 2003, VB6, etc.&nbsp; The problem with the VS 2003 environment is that there can only be a single version of the CLR loaded into a process.&nbsp; VS 2003 loads 1.1.&nbsp; The TF source control integration requires that the 2.0 CLR be used.&nbsp; Thus, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/5033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=5033"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/5033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=5033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=5033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=5033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}