{"id":3683,"date":"2006-08-12T10:30:00","date_gmt":"2006-08-12T10:30:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/08\/12\/links-to-code-samples\/"},"modified":"2006-08-12T10:30:00","modified_gmt":"2006-08-12T10:30:00","slug":"links-to-code-samples","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/links-to-code-samples\/","title":{"rendered":"Links to code samples"},"content":{"rendered":"<p class=\"MsoNormal\">I recently had to put together a list of links to code samples.&nbsp; This isn&#8217;t even close to comprehensive, but it should help you get going if you are looking for something.<\/p>\n<p class=\"MsoNormal\"><b>Version Control<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/blogs.msdn.com\/edhintz\/archive\/2006\/02\/03\/524312.aspx\">How to Write a Team Foundation Version Control Add-in for Visual Studio<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/03\/15\/552288.aspx\">Team Foundation Version Control client API example (RTM version)<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2005\/10\/26\/485458.aspx\">Displaying the sizes and dates of files in the server<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2005\/10\/25\/484854.aspx\">Displaying the labels on a file, including label comments<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/08\/08\/692281.aspx\">Example usage of VersionControlServer.CreateLabel<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/05\/01\/diff_shelveset.aspx\">Compare the content changes in a shelveset with any checked-in version<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/03\/20\/checkin.aspx\">How to check in changes on behalf of other users<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/01\/21\/515858.aspx\">Sample checkin policy: make sure the comment isn&#8217;t empty<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/03\/20\/evaluate_checkin.aspx\">How to validate check-in policies, evaluate check-in notes, and check for conflicts<\/a> \n<\/li>\n<li>How to compare (diff) trees at different versions using the API \n<ul>\n<li>My take on this: <a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/04\/06\/project_diff.aspx\">http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/04\/06\/project_diff.aspx<\/a> \n<\/li>\n<li>Robert Horvick&rsquo;s approach: <a href=\"http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/04\/07\/571043.aspx\">http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/04\/07\/571043.aspx<\/a> <\/li>\n<\/ul>\n<\/li>\n<li>Merge history \n<ul>\n<li class=\"MsoNormal\"><a href=\"http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/02\/09\/528651.aspx\">Discovering TFS merge history using the client API &#8211; Part 3 (Deletes and Renames)<\/a> \n<\/li>\n<li class=\"MsoNormal\"><a href=\"http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/02\/08\/527606.aspx\">Discovering TFS merge history using the client API &#8211; Part 2 (calling QueryMerges)<\/a> \n<\/li>\n<li class=\"MsoNormal\"><a href=\"http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/02\/04\/524960.aspx\">Discovering TFS merge history using the client API &#8211; Part 1<\/a> <\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/03\/27\/562195.aspx\">Programmatically showing differences between files<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/01\/09\/510800.aspx\">Code snippet: What are my effective permissions {globally, to an item}?<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2005\/12\/01\/499033.aspx\">Show all pending changes on the Team Foundation server older than a given age<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2005\/11\/04\/489193.aspx\">Scanning history for the changesets that had policy override &#8211; simple usage of QueryHistory<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jefflu\/archive\/2005\/09\/23\/473248.aspx\">Version Control RSS Feed<\/a> <\/li>\n<\/ul>\n<p class=\"MsoNormal\"><b>TFS<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/03\/17\/credentialprovider.aspx\">How to get the login dialog when using the Team Foundation Server API<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/02\/24\/processtemplates.aspx\">Listing the process templates on a TFS server<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/05\/02\/588648.aspx\">How to list the users\/groups the server knows about<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/01\/09\/510875.aspx\">Code snippet: How to convert an account (DOMAINuser) to its friendly name<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2005\/10\/14\/481105.aspx\">Simple command-line example: listing the team projects on a server<\/a> <\/li>\n<\/ul>\n<p class=\"MsoNormal\"><b>Work Item Tracking<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/blogs.msdn.com\/roberthorvick\/archive\/2006\/05\/03\/589408.aspx\">Creating a TFS Work Item from an Outlook mail message using VSTO<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2006\/03\/06\/544812.aspx\">Potential powertoy: paste from clipboard into work items as attachments<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/jmanning\/archive\/2005\/09\/21\/472524.aspx\">Getting associated changesets for work items<\/a> \n<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/08\/12\/artifact_uri_to_changeset.aspx\">Getting Changeset objects from associated work items<\/a> <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I recently had to put together a list of links to code samples.&nbsp; This isn&#8217;t even close to comprehensive, but it should help you get going if you are looking for something. Version Control How to Write a Team Foundation Version Control Add-in for Visual Studio Team Foundation Version Control client API example (RTM version) [&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,15],"class_list":["post-3683","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation","tag-tfs-api"],"acf":[],"blog_post_summary":"<p>I recently had to put together a list of links to code samples.&nbsp; This isn&#8217;t even close to comprehensive, but it should help you get going if you are looking for something. Version Control How to Write a Team Foundation Version Control Add-in for Visual Studio Team Foundation Version Control client API example (RTM version) [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3683","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=3683"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3683\/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=3683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=3683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=3683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}