<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6854318633423520439</id><updated>2011-04-21T20:47:53.364-07:00</updated><title type='text'>Marius Onofrei's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://marius-ono.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6854318633423520439/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://marius-ono.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ONO</name><uri>http://www.blogger.com/profile/08470560425840117962</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6854318633423520439.post-7613280286774299244</id><published>2006-08-18T00:38:00.000-07:00</published><updated>2006-08-18T01:01:39.852-07:00</updated><title type='text'></title><content type='html'>So here goes my first post - it's about extending Visual Studio Team System - to force developers to post comments when Checking In items.&lt;br /&gt;&lt;br /&gt;Of course there are a lot of articles on this topic on the web - but after starting a thread on forums.microsoft.com (&lt;a href="http://forums.microsoft.com/MSDN/showpost.aspx?postid=645398&amp;siteid=1"&gt;http://forums.microsoft.com/MSDN/showpost.aspx?postid=645398&amp;amp;siteid=1&lt;/a&gt;)&lt;br /&gt;i was asked to post my solution and this is how i got to this.&lt;br /&gt;&lt;br /&gt;First you should create a new Class Library project (of course the plugin you will create is a DLL that you will register with VSTS through a registry key) - now that's all set add a reference to Microsoft.TeamFoundation.Version.Control that is usually located under [C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.VersionControl.Client.dll] .&lt;br /&gt;&lt;br /&gt;Now all you have to do is to extend the PolicyBase class in the above mantioned namespace and you've got your plugin all set.&lt;br /&gt;&lt;br /&gt;Now for the registration part - you should add a registry key of type REG_SZ under&lt;br /&gt;&lt;span style=";font-family:Courier New;font-size:85%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;HKLM\Software\Microsoft\VisualStudio\8.0TeamFoundation\SourceControl\Checkin  Policies&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family: arial;font-family:arial;" &gt;with the name of your plugin (without the .dll extension) and the value is the absolute path to your dll.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now for activating the freshly built plugin you shoul open VS&gt;Team Explorer, login as an admin, right click on the project for which you want the policy to be enforced and go to Team Project Settings &gt; Source Control.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;A dialog box will pop up and under Check-In Policy click Add - you should now see here the policy you've registered - select it, click ok, ok again and you're done.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Let's hope this was helpfull enough -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Here's a link to my original project - it also contains a setup so no more headackes whith registry keys and stuff - even no coding required if you build the setup :-P.&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://hal.cs.tuiasi.ro/%7Emariusonofrei/CustomCheck-inPolicy.zip"&gt;http://hal.cs.tuiasi.ro/~mariusonofrei/CustomCheck-inPolicy.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Good luck !&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6854318633423520439-7613280286774299244?l=marius-ono.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marius-ono.blogspot.com/feeds/7613280286774299244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6854318633423520439&amp;postID=7613280286774299244' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6854318633423520439/posts/default/7613280286774299244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6854318633423520439/posts/default/7613280286774299244'/><link rel='alternate' type='text/html' href='http://marius-ono.blogspot.com/2006/08/so-here-goes-my-first-post-its-about.html' title=''/><author><name>ONO</name><uri>http://www.blogger.com/profile/08470560425840117962</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
