<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technical Tidbits</title>
	<atom:link href="http://tech.prandom.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://tech.prandom.com/blog</link>
	<description>from a perpetually random mind</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:49:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SVN: 405 Method not allowed</title>
		<link>http://tech.prandom.com/blog/?p=177</link>
		<comments>http://tech.prandom.com/blog/?p=177#comments</comments>
		<pubDate>Tue, 31 Aug 2010 22:49:02 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[gotcha]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[3rd party]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=177</guid>
		<description><![CDATA[As I was committing a bunch of code today, I came across the following error in SVN (command line): svn: Commit failed (details follow): svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL req uest for &#8216;/svn-repo/the-repo/!svn/wrk/96db5daf-a23d-334c-b96e-870d397df28e/module-path/trun k/web/module-web/src/main/webapp/assets&#8217; After a quick google search, I learned the error is an HTTP [...]]]></description>
			<content:encoded><![CDATA[<p>As I was committing a bunch of code today, I came across the following error in SVN (command line):</p>
<blockquote><p>svn: Commit failed (details follow):<br />
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL req<br />
uest for &#8216;/svn-repo/the-repo/!svn/wrk/96db5daf-a23d-334c-b96e-870d397df28e/module-path/trun<br />
k/web/module-web/src/main/webapp/assets&#8217;</p></blockquote>
<p>After a quick google search, I learned the error is an HTTP error, and that it&#8217;s fairly generic with very little technical fixes documented.  So I was on the hunt!  Fortunately, this one didn&#8217;t take too long to solve.  The problem ended up being that the folder it was erroring on (module-path/trun<br />
k/web/module-web/src/main/webapp/assets) already existed on the server.  Apparently, when I had re-arranged some things (that folder specifically), SVN got confused (probably by Eclipse) and thought it was a new folder that needed to be added to SVN.  Not so!  The resolution may vary for you, but my solution was to delete my local working copy and co that folder again.  I didn&#8217;t have any actual changes to the files in that folder, so it was a simple fix for me.  You may have to backup your changes, checkout a fresh working copy, and apply your changes again to get SVN straight.</p>
<p>SVN version: 1.6.6<br />
Eclipse version: 3.4.2 (Ganymede)</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=177</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Blog Title in SharePoint 2010</title>
		<link>http://tech.prandom.com/blog/?p=155</link>
		<comments>http://tech.prandom.com/blog/?p=155#comments</comments>
		<pubDate>Thu, 12 Aug 2010 13:53:10 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[gotcha]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=155</guid>
		<description><![CDATA[Now that my employer has upgrade our SharePoint site to SharePoint 2010, I&#8217;ve spent a little bit of time working on taking full advantage of the new My Site features, particularly the social/collaboration tools. While I have this blog for my technical ponderings in order to share them with the world, I also created an [...]]]></description>
			<content:encoded><![CDATA[<p>Now that my employer has upgrade our SharePoint site to SharePoint 2010, I&#8217;ve spent a little bit of time working on taking full advantage of the new My Site features, particularly the social/collaboration tools.  While I have this blog for my technical ponderings in order to share them with the world, I also created an internal blog so I could post company-sensitive material for internal information sharing.  By default, SharePoint titles your blog &#8220;Blog&#8221; and has some very basic settings.  Perhaps it should&#8217;ve been obvious (since I couldn&#8217;t find any howtos on the topic), but I had a tough time figuring out how to change the title, among other things.</p>
<p>One key thing to note on the blog is that it is a SharePoint site, and thus adheres to the site architecture!  Thus, you can change the site (aka blog) title by going to <strong>Site Actions</strong> &gt; <strong>Site Settings</strong> &gt; <strong>Look and Feel</strong> &gt; <strong>Title, description, and icon</strong>.</p>
<p>Site settings will look like this (roughly):<br />
<a href="http://tech.prandom.com/images/blogsitesettings.png" target="_blank"><img style="align: center; border: 1px solid #506B1A; padding:5px; padding-top: 6px;" src="http://tech.prandom.com/images/lookandfeel.png" alt="Blog site settings" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=155</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6&#8242;s slow death</title>
		<link>http://tech.prandom.com/blog/?p=124</link>
		<comments>http://tech.prandom.com/blog/?p=124#comments</comments>
		<pubDate>Wed, 16 Jun 2010 22:46:51 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=124</guid>
		<description><![CDATA[I&#8217;ve been having a lot of conversations with a client about certifying all their customer-facing applications for Internet Explorer 7 and 8. As a result, there have been some discussions about Internet Explorer 6, and when to end support. The biggest problem is that the client&#8217;s customers are healthcare companies, and like most companies, a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a lot of conversations with a client about certifying all their customer-facing applications for Internet Explorer 7 and 8.  As a result, there have been some discussions about Internet Explorer 6, and when to end support.  The biggest problem is that the client&#8217;s customers are healthcare companies, and like most companies, a significant number of them are still using IE6.  </p>
<div style="border: 1px solid #506B1A; float: left; margin-right: 5px;padding:4px;"><img alt="you wouldn&#039;t buy 9 year old milk would you?" src="http://tech.prandom.com/images/9yroldmilk.jpg" title="9 yr old milk" class="alignleft" width="105" height="154" /></div>
<div>I&#8217;m fascinated that despite constant <a href="http://news.bbc.co.uk/2/hi/8465038.stm">warnings</a> of IE6&#8242;s <a href="http://www.fiercecio.com/techwatch/story/microsoft-confirms-new-internet-explorer-vulnerability/2009-11-23">security vulnerabilities</a> and promises for better performance and productivity companies are <a href="http://www.networkworld.com/news/2010/052510-ie6-businesses.html">still hanging on</a> to the <a href="http://www.microsoft.com/australia/technet/ie8milk/">9 year old browser</a>.  I understand that the enterprise community has a significant number of &#8220;legacy&#8221; applications that either do not run on IE7+ or need to be updated (either vendor-patched or in-house-patched), and that costs money.  In an economy where companies can barely afford to keep a minimum staff in some cases, this is a big problem.  But I don&#8217;t feel that&#8217;s the case with the majority of companies.</div>
<p>The biggest problem is the majority of <a href="http://www.networksecurityedge.com/content/continuing-business-use-ie6-hinders-security-efforts">decision makers don&#8217;t truly understand</a> the risk they are running.  Even Google didn&#8217;t acknowledge the risk before they got themselves <a href="http://www.wired.com/threatlevel/2010/01/operation-aurora/">hacked in January 2010</a>.  Sure, that event was highly sophisticated and planned, but that doesn&#8217;t make the risk any less meaningful.  Apparently, the Aurora exploit <a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">isn&#8217;t all that complicated to use</a> in its most basic form.</p>
<p>So I say to all the enterprises, please let&#8217;s put IE6 out of its misery, and end support once and for all.  You will make a lot of developers very happy.  Perhaps the government or some other institution should offer some incentive that would help companies create jobs to do upgrades and such (very much like the Y2k type work).<br />
<br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=124</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>building sharepoint solutions (easy mode)</title>
		<link>http://tech.prandom.com/blog/?p=66</link>
		<comments>http://tech.prandom.com/blog/?p=66#comments</comments>
		<pubDate>Tue, 16 Dec 2008 20:50:55 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[3rd party]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=66</guid>
		<description><![CDATA[one of the hurdles i encountered when i first started working with Sharepoint was how to create solutions and deploy them quickly. writing the CAML for the manifest from scratch seemed tedious and daunting, and well&#8230;it is (tedious more than daunting). the manual nature of creating the cab files (and thus the solution package) becomes [...]]]></description>
			<content:encoded><![CDATA[<p>one of the hurdles i encountered when i first started working with Sharepoint was how to create solutions and deploy them quickly.  writing the CAML for the manifest from scratch seemed tedious and daunting, and well&#8230;it is (tedious more than daunting).  the manual nature of creating the cab files (and thus the solution package) becomes cumbersome, particularly when you are troubleshooting issues in deployment, have many solutions to keep track of, and/or are just plain lazy (in this case, the time saved makes a good business case)!</p>
<p>enter <a href="http://www.codeplex.com/wspbuilder" target="_blank">wspbuilder</a>!</p>
<p>from the wspbuilder codeplex site:</p>
<blockquote><p>A SharePoint Solution Package (WSP) creation tool for WSS 3.0 &#038; MOSS 2007</p>
<p>No more manually creating the manifest.xml file.<br />
No more manually specifying the DDF file.<br />
No more using the makecab.exe application.</p>
<p>The WSPbuilder is a console application that creates SharePoint Solutions files based on a folder structure. WSPBuilder will automatically traverse a &#8220;12&#8243; folder structure and creates a SharePoint solution manifest.xml and the wsp file based on the files it finds.  Therefore you do not need the knowledge of how to create a solution manifest.xml and wsp file any more.</p></blockquote>
<div style="border: 1px solid green; margin-left: 5px; float: right; padding: 4px;"><img src="http://tech.prandom.com/images/12FolderStructure.gif" /><br /> <em><strong>figure 1: the &#8220;12&#8243; folder structure</strong></em></div>
<div>this is a great little tool that does all the tedious work auto-magically.  all you have to do is create your features within the folder structure using &#8220;12&#8243; folder (simulating the Sharepoint folder structure) at the top as shown in figure 1. </div>
<p>there are a few setup/use instructions that aren&#8217;t explained plainly (at least, none that i could find easily).  here&#8217;s what i did to set it up and use it:</p>
<ol>
<li><a href="http://www.codeplex.com/wspbuilder/Release/ProjectReleases.aspx?ReleaseId=16820" target="_blank">download</a> &amp; install WSPBuilder (you can download the extensions for integration in visual studio or the standalone exe&#8230;i tried out the VS plugin, and was unsuccessful in getting the project to build properly)</li>
<li>modify your computer&#8217;s PATH environment variable by adding the folder where you installed wspbuilder.exe (for example, my addition was &#8220;C:\Program Files\WSPTools\WSPBuilderExtensions&#8221;) to the path</li>
<li>whenever you need to build a sharepoint solution (manifest + cab creation = compiled wsp), open a command prompt</li>
<li>navigate to where your 12 folder is for the project you&#8217;re working on (for example, %VisualStudioProjects%\feature1 which contains %VisualStudioProjects%\feature1\12)</li>
<li>type wspbuilder and hit enter</li>
</ol>
<p>you will end up with <a href="http://www.keutmann.dk/sharepointblog/wspbuilder/buildresult.jpg" target="_blank">a nicely packaged .wsp file</a> (in addition to a solutionid.txt file, that&#8217;s not required for deployment).  you can now run your <a href="http://technet.microsoft.com/en-us/library/cc263162.aspx">addsolution command</a> from stsadm. </p>
<p>wspbuilder makes things much simpler!<br />
<br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=66</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>override Item title</title>
		<link>http://tech.prandom.com/blog/?p=33</link>
		<comments>http://tech.prandom.com/blog/?p=33#comments</comments>
		<pubDate>Mon, 15 Dec 2008 21:12:46 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[gotcha]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[custom content type]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=33</guid>
		<description><![CDATA[i&#8217;ve been working on some custom content types, and could never find the exact answer to my question until i tried a few different tricks. i have come to discover that overriding the Title column on the base content type, Item, is really not a good idea unless you&#8217;re delivering a CAML-based solution. why do [...]]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve been working on some custom content types, and could never find the exact answer to my question until i tried a few different tricks.  i have come to discover that overriding the Title column on the base content type, Item, is really not a good idea unless you&#8217;re delivering a CAML-based solution.</p>
<p><strong>why do you want to override it?</strong></p>
<p>my main reason for overriding the Title column (display) name is the functionality that&#8217;s included in the Title column, which i&#8217;ve not been able to recreate.  here&#8217;s a screenshot of the functionality i&#8217;m talking about:</p>
<p><img src="http://tech.prandom.com/images/linkedToMenuWithEdit.JPG" alt="linked to item with edit menu" /></p>
<p>basically, it was a preference of allowing the user to be able to &#8220;click to edit&#8221; on the primary field of my list.  unfortunately, i have not found a way to do this without writing a CAML feature.  while a CAML-based feature is not out of the question, it&#8217;s not necessary in some cases where a simple, out-of-the-box solution meets the need of the business.</p>
<p><strong>what&#8217;s the problem?</strong></p>
<p>you can override the display name of the Title column without impacting basic functionality in Sharepoint.  it&#8217;s noted in <a href="http://webborg.blogspot.com/2008/03/how-sharepoint-stores-field-names.html" target="_blank">many</a> <a href="http://www.sharepointblogs.com/rohan/archive/2007/09/07/spfield-column-field-name-title-and-internal-names-and-spaces-between-them.aspx" target="_blank">places</a> that you don&#8217;t rename the actual column, but only change the display name whenever you edit the column name.  however, there are two different approaches to doing this.</p>
<p><strong>do tell&#8230;</strong></p>
<p>the first approach is via Site Settings, which is basically Sharepoint configuration.  the problem with this approach is that overriding the Title column name via the Sharepoint configuration screens (Custom Content Type > Title Site Column on the Item content type) overrides the Title column on the Item content type.  when you override that column on the Item content type, it impacts ALL content types (unless the CAML is explicitly defined for it) that inherit from Item.</p>
<p>the second approach is via CAML.  you can provision a content type in CAML and override the column display name.  <a href="http://blogs.pointbridge.com/Blogs/crossland_apryl/pages/default.aspx">apryl crossland</a> has a great post about <a href="http://blogs.pointbridge.com/Blogs/crossland_apryl/Pages/Post.aspx?_ID=1">doing this</a>.  by doing it in the CAML definition, the change occurs exclusively on that content type instead of on the site column on the Item content type.  here&#8217;s a sample of the CAML.</p>
<p><code>&lt;FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="Request Title" Required="TRUE" /&gt;</code></p>
<p>however, this requires an upload to the Sharepoint site (preferrably via a solution package&#8211;see my post on creating solutions).  when this is the only part of the customization that requires CAML, you may want to opt to simply use the Edit button column that&#8217;s typically provided (what i&#8217;m doing for my solution).</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=33</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sharepoints of confusion</title>
		<link>http://tech.prandom.com/blog/?p=19</link>
		<comments>http://tech.prandom.com/blog/?p=19#comments</comments>
		<pubDate>Mon, 24 Nov 2008 21:05:22 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[gotcha]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=19</guid>
		<description><![CDATA[there are a few terms in the sharepoint world that cause confusion, at least for the beginner sharepoint developer. below is my attempt at summarizing some of the points of confusion (and some clarification) that i came across. first of all, the site vs. web vs. web application terminology was a bit misleading. plain and [...]]]></description>
			<content:encoded><![CDATA[<p>there are a few terms in the sharepoint world that cause confusion, at least for the beginner sharepoint developer.  below is my attempt at summarizing some of the points of confusion (and some clarification) that i came across.</p>
<p>first of all, the site vs. web vs. web application terminology was a bit misleading.  plain and simple, here&#8217;s my understanding:</p>
<ul>
<li><strong>web application </strong>= the sharepoint installation (virtual directory, usually)</li>
<li><strong>site </strong>= the top level site of the site collection you&#8217;re working on (for small groups, http://localhost:8080)</li>
<li><strong>web </strong>= the actual site you&#8217;re working with (could have site collections underneath it or could be a child at the bottom of the list)</li>
</ul>
<p>the other terminology i had trouble with was the field vs. column vs. property.  we all know that databases call columns fields, so it wasn&#8217;t a stretch to make the distinction.  however, the confusing part was the content types take references to fields&#8230;not definitions.  <a href="http://blogs.msdn.com/andrew_may/about.aspx">andrew may</a> has a <a href="http://blogs.msdn.com/andrew_may/archive/2006/06/14/SharePointTermsColumnsFieldsProperties.aspx">blog post explaining the differences amongst the terms</a>, but also includes a good explanation of how it works and why (with a <a href="http://blogs.msdn.com/photos/andrew_may/images/original/ColumnFieldProp.aspx">pretty picture</a>).</p>
<p>if i run into any others, i will update this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to get publicKeyToken from assembly</title>
		<link>http://tech.prandom.com/blog/?p=16</link>
		<comments>http://tech.prandom.com/blog/?p=16#comments</comments>
		<pubDate>Tue, 18 Nov 2008 22:24:11 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[signing]]></category>
		<category><![CDATA[strong named]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=16</guid>
		<description><![CDATA[i have needed to do this for strong named assemblies, particularly with sharepoint development. there&#8217;s a nice little tool, sn.exe, that handles all of this. if you work primarily in the IDE as opposed to command line (as i frequently do), you can setup a command on the tools menu using the methods described on [...]]]></description>
			<content:encoded><![CDATA[<p>i have needed to do this for strong named assemblies, particularly with sharepoint development.  </p>
<p>there&#8217;s a nice little tool, sn.exe, that handles all of this.  if you work primarily in the IDE as opposed to command line (as i frequently do), you can setup a command on the tools menu using the methods described <a href="http://www.andrewconnell.com/blog/archive/2006/09/15/4587.aspx">on this blog post</a>.  this works in visual studio 2003, 2005, and 2008.  not sure about others.</p>
<p>keep in mind that for Visual Studio 2008, the path to sn.exe and other commands is:<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin </p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>reporting services &#8211; 2005 side-by-side with 2000</title>
		<link>http://tech.prandom.com/blog/?p=13</link>
		<comments>http://tech.prandom.com/blog/?p=13#comments</comments>
		<pubDate>Mon, 23 Jun 2008 15:34:16 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[reporting services]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=13</guid>
		<description><![CDATA[we have successfully installed reporting services 2005 side-by-side with reporting services 2000. following microsoft&#8217;s instructions, we installed 2000 as the default and installed 2005 in the 2005 instance of SQL, and created 2005 virtual directories. it&#8217;s working great. no hitches besides remembering which instance/virtual directory to send reports to. hopefully, we&#8217;ll move off of 2000 [...]]]></description>
			<content:encoded><![CDATA[<p>we have successfully installed reporting services 2005 side-by-side with reporting services 2000.  following <a href="http://msdn2.microsoft.com/en-us/library/ms143520.aspx">microsoft&#8217;s instructions</a>, we installed 2000 as the default and installed 2005 in the 2005 instance of SQL, and created 2005 virtual directories.  it&#8217;s working great.  no hitches besides remembering which instance/virtual directory to send reports to.  hopefully, we&#8217;ll move off of 2000 sooner than later (it&#8217;s the only reason we have VS2k3 still).</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asp.net ajax &#8220;gotcha&#8221;</title>
		<link>http://tech.prandom.com/blog/?p=12</link>
		<comments>http://tech.prandom.com/blog/?p=12#comments</comments>
		<pubDate>Wed, 17 Oct 2007 15:46:09 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[gotcha]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=12</guid>
		<description><![CDATA[i recommend paying close attention to the Controls that Are Not Compatible with UpdatePanel Controls section of the asp.net ajax documentation. it can save you a lot of trouble.]]></description>
			<content:encoded><![CDATA[<p>i recommend paying close attention to the <strong>Controls that Are Not Compatible with UpdatePanel Controls</strong> section of the <a href="http://www.asp.net/AJAX/Documentation/Live/overview/UpdatePanelOverview.aspx">asp.net ajax documentation</a>.  it can save you a lot of trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>code snippets in visual studio 2005</title>
		<link>http://tech.prandom.com/blog/?p=11</link>
		<comments>http://tech.prandom.com/blog/?p=11#comments</comments>
		<pubDate>Fri, 05 Oct 2007 19:07:21 +0000</pubDate>
		<dc:creator>rach</dc:creator>
				<category><![CDATA[visual studio 2k5]]></category>

		<guid isPermaLink="false">http://tech.prandom.com/blog/?p=11</guid>
		<description><![CDATA[i&#8217;ve recently begun using the code snippet feature of visual studio 2005, and have to say i love it! it makes mundane tasks move a lot quicker. there are some caveats to every feature in visual studio, though. the Code Snippet Manager in the IDE allows for limited customization and no editing, and there are [...]]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve recently begun using the code snippet feature of visual studio 2005, and have to say i love it!  it makes mundane tasks move a lot quicker.  there are some caveats to every feature in visual studio, though.</p>
<p>the Code Snippet Manager in the IDE allows for limited customization and no editing, and there are no settings that correspond with the snippet manager.  however, what i did find that worked is <a href="http://msdn2.microsoft.com/en-us/vbasic/ms789085.aspx">an open-source Snippet Editor</a>.  below are two cool things about the snippet editor.</p>
<p><strong>snippet editing (duh!)</strong></p>
<p>creating snippets in a text editor is the simplest way to create a code snippet.  after all, it&#8217;s just xml.  using the <a href="http://msdn2.microsoft.com/en-us/library/ms171418(VS.80).aspx">code snippets schema reference</a>, you can easily hand-write any type of snippet.  however, the snippet editor is a great tool for quickly creating code snippets with replacements, references, and imports.  i haven&#8217;t had much success getting the references and imports features to work (manually creating the snippet or otherwise), but i think i&#8217;m just missing something (feel free to make suggestions).</p>
<p><strong>snippet locations</strong></p>
<p>through the IDE, you have limited options on modifying locations where snippets are stored.  whenever you make a change to a snippet, you must import it through the Code Snippet Manager (Ctrl+K, Ctrl+B if it&#8217;s not on your Tools menu) or you must copy the snippet to the right folder (that&#8217;s what the import does).  there are a couple of other developers in my group, and we use an inhouse-built foundation class library.  as a result, there are some common snippets of code that could be extracted into the Code Snippet manager that we need to place on a shared directory.  this is also the case with any common coding standards we employ.</p>
<p>the Code Snippet Manager doesn&#8217;t give you anything other than snippet organization (and barely even that&#8211;more like snippet review).  i found a <a href="http://jens-schaller.de/blog/post/224/index.htm">registry hack</a> that suggested it would allow addition of other paths to the Code Snippet Manager list, but i couldn&#8217;t get it to work.  what i did find that worked was to add the path in the Snippet Editor.  the path could be to a shared folder, a fileserver, etc.  once it&#8217;s in there, you have to restart Visual Studio (i believe) to refresh the paths that have been added.</p>
<p>it&#8217;s not a hugely complex tool, but can really make utilizing the snippets feature in VS2k5 a lot more appealing.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.prandom.com/blog/?feed=rss2&#038;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

