<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Gav's Blog - SharePoint .NET &amp; Tech</title>
	
	<link>http://gavinb.net</link>
	<description>My adventures in the world of SharePoint</description>
	<lastBuildDate>Wed, 17 Apr 2013 02:52:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain="gavinb.net" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gav's Blog - SharePoint .NET &amp; Tech</title>
		<link>http://gavinb.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gavinb.net/osd.xml" title="Gav's Blog - SharePoint .NET &amp; Tech" />
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/gavinb/rss" /><feedburner:info uri="gavinb/rss" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://gavinb.net/?pushpress=hub" /><feedburner:emailServiceId>gavinb/rss</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Practical Guide to Public Facing sites</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/Y2smk6tlxl0/</link>
		<comments>http://gavinb.net/2013/04/17/practical-guide-to-public-facing-sites/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 02:52:49 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://gavinb.net/?p=375</guid>
		<description><![CDATA[This year I presented a second session at the New Zealand  SharePoint Conferences, on “A Practical Guide to Public Facing web sites”. As promised in my session here is the slide deck. Filed under: Conferences, Development, SharePoint<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=375&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This year I presented a second session at the New Zealand  SharePoint Conferences, on “A Practical Guide to Public Facing web sites”. As promised in my session here is the slide deck.</p>
<p style="text-align:center;"><iframe src="https://skydrive.live.com/embed?cid=301272906E806A26&#038;resid=301272906E806A26%21328&#038;authkey=ALyuW_2kgye1Awc&#038;em=2" width="402" height="327" frameborder="0" scrolling="no"></iframe></p>
<br />Filed under: <a href='http://gavinb.net/category/conferences/'>Conferences</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=375&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/Y2smk6tlxl0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2013/04/17/practical-guide-to-public-facing-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2013/04/17/practical-guide-to-public-facing-sites/</feedburner:origLink></item>
		<item>
		<title>Writing testable SharePoint code: New Zealand and Australian SharePoint Conferences</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/izNGojN_XcQ/</link>
		<comments>http://gavinb.net/2013/04/16/writing-testable-sharepoint-code-new-zealand-and-australian-sharepoint-conferences/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 04:41:12 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://gavinb.net/?p=370</guid>
		<description><![CDATA[This year I was lucky enough to be invited back to present at the New Zealand and Australian SharePoint Conferences, this time on &#8220;Writing Testable SharePoint Code&#8221;. As promised in my sessions here is the slide deck and, more importantly, &#8230; <a href="http://gavinb.net/2013/04/16/writing-testable-sharepoint-code-new-zealand-and-australian-sharepoint-conferences/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=370&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This year I was lucky enough to be invited back to present at the New Zealand and Australian SharePoint Conferences, this time on &#8220;Writing Testable SharePoint Code&#8221;. As promised in my sessions here is the slide deck and, more importantly, <a title="sample code" href="http://sdrv.ms/117SZxd" target="_blank">the sample code</a> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:center;"><iframe src="https://skydrive.live.com/embed?cid=301272906E806A26&#038;resid=301272906E806A26%21281&#038;authkey=AO2h0rf_6XEn1OE&#038;em=2" width="402" height="327" frameborder="0" scrolling="no"></iframe></p>
<br />Filed under: <a href='http://gavinb.net/category/conferences/'>Conferences</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=370&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/izNGojN_XcQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2013/04/16/writing-testable-sharepoint-code-new-zealand-and-australian-sharepoint-conferences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2013/04/16/writing-testable-sharepoint-code-new-zealand-and-australian-sharepoint-conferences/</feedburner:origLink></item>
		<item>
		<title>Design Manager and Server 2008 R2</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/M46Dr7IGh2Q/</link>
		<comments>http://gavinb.net/2012/12/21/design-manager-and-server-2008-r2/#comments</comments>
		<pubDate>Fri, 21 Dec 2012 03:34:12 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=362</guid>
		<description><![CDATA[I was trying to use the design manager features today and ran into this on my dev server. I’d copied the short cut from the screen and pasted it into the map network folder dialog and got this: &#160; If &#8230; <a href="http://gavinb.net/2012/12/21/design-manager-and-server-2008-r2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=362&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was trying to use the design manager features today and ran into this on my dev server. I’d copied the short cut from the screen and pasted it into the map network folder dialog and got this:</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/12/image.png"><img title="image" style="border-top:0;border-right:0;border-bottom:0;float:none;margin-left:auto;border-left:0;display:block;margin-right:auto;" border="0" alt="image" src="http://gavinbdotnet.files.wordpress.com/2012/12/image_thumb.png?w=626&#038;h=443" width="626" height="443"></a> </p>
<p>&nbsp;</p>
<p>If you’re trying to do this from Server 2008 R2 you’ll need to do a simple piece of config first; Simply go and add the Desktop Experience Feature and reboot your server!</p>
<p>A nice and easy fix <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also make sure you use the http:// path and not the file:// path that you’ll get with right click &gt; copy shortcut <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://gavinb.net/category/uncategorized/'>Uncategorized</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=362&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/M46Dr7IGh2Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/12/21/design-manager-and-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/12/21/design-manager-and-server-2008-r2/</feedburner:origLink></item>
		<item>
		<title>Setting up Visual Studio 2012 for SharePoint 2013</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/aouJe85jegQ/</link>
		<comments>http://gavinb.net/2012/12/19/setting-up-visual-studio-2012-for-sharepoint-2013/#comments</comments>
		<pubDate>Wed, 19 Dec 2012 05:21:46 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=358</guid>
		<description><![CDATA[VS2012 Update 1 is great it adds the Microsoft Fakes framework for stubbing out SharePoint dependencies and other really useful tools for SharePoint development. If you’re using Visual Studio 2012 you should be using Update 1; but it doesn’t have &#8230; <a href="http://gavinb.net/2012/12/19/setting-up-visual-studio-2012-for-sharepoint-2013/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=358&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>VS2012 Update 1 is great it adds the Microsoft Fakes framework for stubbing out SharePoint dependencies and other really useful tools for SharePoint development. If you’re using Visual Studio 2012 you should be using Update 1; but it doesn’t have the extensions for 2013 development as yet. To get those they need to be installed using the web platform installer.
<p>1) Download and install <a href="http://www.microsoft.com/web/downloads/platform.aspx">http://www.microsoft.com/web/downloads/platform.aspx</a> (you should probably do this for all development environments anyway)
<p>2) Launch the Web Platform Installer and search for SharePoint
<p>3) Add install the latest version of the “&#8221;Microsoft Office Developer Tools for Visual Studio 2012” (currently it’s Preview 2)</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/tools/'>Tools</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=358&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/aouJe85jegQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/12/19/setting-up-visual-studio-2012-for-sharepoint-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/12/19/setting-up-visual-studio-2012-for-sharepoint-2013/</feedburner:origLink></item>
		<item>
		<title>PowerShell: Pause for specific key strokes</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/F_rdnA7MhTQ/</link>
		<comments>http://gavinb.net/2012/08/09/powershell-pause-for-specific-key-strokes/#comments</comments>
		<pubDate>Thu, 09 Aug 2012 03:21:52 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=349</guid>
		<description><![CDATA[Today I needed to add a wait into a Powershell script, given that is a point where the user running the script needs to go do some manual steps on another server I thought it might be a good idea &#8230; <a href="http://gavinb.net/2012/08/09/powershell-pause-for-specific-key-strokes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=349&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I needed to add a wait into a Powershell script, given that is a point where the user running the script needs to go do some manual steps on another server I thought it might be a good idea to wait for a specific key press. So off to <a href="http://bing.com">Bing</a> I go…</p>
<p>There are plenty of great articles on waiting for or getting user input, personally I really like <a href="http://technet.microsoft.com/en-us/library/ff730938.aspx">Windows PowerShell Tip of the Week: Pausing a Script Until the User Presses a Key</a> and the <a href="http://www.pavleck.net/powershell-cookbook/ch13.html">User Interaction</a> chapter from the <a href="http://www.pavleck.net/powershell-cookbook/">PowerShell Cookbook</a>. After seeing that [Console]::ReadKey() would give me an object which told me about the modifers on the key press (Crtl, Alt and/or Shift) I started thinking about making that key press more specific, say <strong>Ctrl + G,</strong> so I wrote a function to handle this:</p>
<p>
<pre class="brush: powershell; title: ; notranslate">
function Pause
{
	param([string] $pauseKey,
			[ConsoleModifiers] $modifier,
			[string] $prompt,
			[bool] $hideKeysStrokes)
			
    Write-Host -NoNewLine &quot;Press $prompt to continue . . . &quot;
    do
	{
		$key = [Console]::ReadKey($hideKeysStrokes)
	} 
	while(($key.Key -ne $pauseKey) -or ($key.Modifiers -ne $modifer))	
	
    Write-Host
}
</pre>
<p>This function received a bit of inspiration from <a href="http://adamstech.wordpress.com/2011/05/12/how-to-properly-pause-a-powershell-script/">How to Properly Pause a PowerShell Script</a> which itself is pretty interesting.
<p>Things to note:
<p>Ctrl + C will still cancel the script, you’ll need to use $host.UI.RawUI.ReadKey with the AllowCtrlC option to prevent that, but then accessing the Modifiers is done differently.
<p>$modifers is a simple enum value of <a href="http://msdn.microsoft.com/en-us/library/system.consolemodifiers.aspx">ConsoleModifiers</a> if you want to do combinations like Atl+Shift you’ll pass a collection of modifers and do –band operations to see if your conditions are met.
<p>To call the Pause function use something like this:
<pre class="brush: powershell; title: ; notranslate">
$modifer = [ConsoleModifiers]::Control
Pause &quot;G&quot; $modifer &quot;Ctrl + G&quot; $true  
</pre>
<p>And then you’ll see this: <a href="http://gavinbdotnet.files.wordpress.com/2012/08/image.png"><img title="image" style="margin-left:0;display:inline;margin-right:0;border-width:0;" border="0" alt="image" src="http://gavinbdotnet.files.wordpress.com/2012/08/image_thumb.png?w=286&#038;h=23" width="286" height="23"></a></p>
<br />Filed under: <a href='http://gavinb.net/category/uncategorized/'>Uncategorized</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=349&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/F_rdnA7MhTQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/08/09/powershell-pause-for-specific-key-strokes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/08/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/08/09/powershell-pause-for-specific-key-strokes/</feedburner:origLink></item>
		<item>
		<title>I’m an MVP for SharePoint Server!</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/9K1Nc2EYQuE/</link>
		<comments>http://gavinb.net/2012/07/17/im-an-mvp-for-sharepoint-server/#comments</comments>
		<pubDate>Tue, 17 Jul 2012 01:04:01 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=345</guid>
		<description><![CDATA[Wahooo! A couple of weeks ago I got one of the coolest emails I’ve received in my professional career, it read: Dear Gavin Barron,Congratulations! We are pleased to present you with the 2012 Microsoft® MVP Award! This award is given &#8230; <a href="http://gavinb.net/2012/07/17/im-an-mvp-for-sharepoint-server/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=345&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Wahooo!</p>
<p>A couple of weeks ago I got one of the coolest emails I’ve received in my professional career, it read:</p>
<blockquote><p>Dear Gavin Barron,<br />Congratulations! We are pleased to present you with the 2012 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in SharePoint Server technical communities during the past year.</p>
</blockquote>
<p>I’m really happy receive this honour! I’d really like to thank everyone at <a href="http://intergen.co.nz">Intergen</a> for the support they’ve provided over the years and for an environment where community involvement is encouraged. I’d like to personally call out <a href="http://syringe.net.nz/">Chris</a>, <a href="http://www.chandima.net">Chan</a>, <a href="http://www.spevents.co.nz/debbiesblog/pages/blog.aspx">Debbie</a>, <a href="http://www.linkedin.com/in/markorange">OJ</a> and <a href="https://twitter.com/BrendanSPMaster">Brendan</a> for their personal support and help since I first got involved with this crazy SharePoint thing.
<p>It’s been a heck of a ride so far and with the <a href="http://office.com/preview">public preview of Office 2013</a> announced this morning I’m looking forward to the next few months.
<p>-Gavin</p>
<br />Filed under: <a href='http://gavinb.net/category/personal/'>Personal</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=345&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/9K1Nc2EYQuE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/07/17/im-an-mvp-for-sharepoint-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/07/17/im-an-mvp-for-sharepoint-server/</feedburner:origLink></item>
		<item>
		<title>Whitespace: Silent Killer!</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/s8-uSkmFVn0/</link>
		<comments>http://gavinb.net/2012/06/11/whitespace-silent-killer/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 02:22:14 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=343</guid>
		<description><![CDATA[Today I went hunting in an XML file for an erroneous double space I knew was there.&#160; I was horrified to see all those extra spaces there!!! Now this Visual Studio 2010 instance is just running the default setup with &#8230; <a href="http://gavinb.net/2012/06/11/whitespace-silent-killer/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=343&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I went hunting in an XML file for an erroneous double space I knew was there.&nbsp; </p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/06/space_horror.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Space_horror" border="0" alt="Space_horror" src="http://gavinbdotnet.files.wordpress.com/2012/06/space_horror_thumb.png?w=354&#038;h=275" width="354" height="275"></a></p>
<p>I was horrified to see all those extra spaces there!!! Now this Visual Studio 2010 instance is just running the default setup with the productivity tools installed (Oh and I hit <strong>Ctrl+R, Ctrl+W </strong>to show the whitespace characters used)</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/06/filesize_with_spaces.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="FileSize_With_Spaces" border="0" alt="FileSize_With_Spaces" src="http://gavinbdotnet.files.wordpress.com/2012/06/filesize_with_spaces_thumb.png?w=597&#038;h=62" width="597" height="62"></a></p>
<p>That’s an 81KB XML file!</p>
<p>Now I’m a believer in tabs over spaces and full tab sized indents in all cases, to me it’s cleaner and reduces page weight.</p>
<p>So, open up Visual Studios options, <strong>Tools &gt; Options</strong> <strong>and go to Text Editor &gt; All Languages &gt; Tabs</strong>. For me this is what I found….</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/06/original_tab_settings.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Original_Tab_Settings" border="0" alt="Original_Tab_Settings" src="http://gavinbdotnet.files.wordpress.com/2012/06/original_tab_settings_thumb.png?w=653&#038;h=380" width="653" height="380"></a></p>
<p>Settings that were not consistent across all the file types and Spaces used as indents! Grrrr!!!!! So, a quick change of settings:</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/06/new_tab_settings.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="New_Tab_settings" border="0" alt="New_Tab_settings" src="http://gavinbdotnet.files.wordpress.com/2012/06/new_tab_settings_thumb.png?w=648&#038;h=380" width="648" height="380"></a></p>
<p>A quick <strong>Ctrl+A, Ctrl+K, Ctrl+F</strong> to re-format the file and things looks much tidier:</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/06/tabs_not_spaces.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Tabs_Not_Spaces" border="0" alt="Tabs_Not_Spaces" src="http://gavinbdotnet.files.wordpress.com/2012/06/tabs_not_spaces_thumb.png?w=455&#038;h=283" width="455" height="283"></a></p>
<p>The file size came down to 80KB, so about a 1.25% savings, not a huge amount, but if you think about that over all of the code sitting in source control for a development company like ours that’s likely to be gigabytes worth of savings. Plus the double space in the file stood out nice and clearly!</p>
<p>Now that the preferences for VS are ‘fixed’ all of the files will get the ugly space based whitespace removed as they get worked on. </p>
<p>-Gavin</p>
<br />Filed under: <a href='http://gavinb.net/category/deployment/'>Deployment</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=343&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/s8-uSkmFVn0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/06/11/whitespace-silent-killer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/06/space_horror_thumb.png" medium="image">
			<media:title type="html">Space_horror</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/06/filesize_with_spaces_thumb.png" medium="image">
			<media:title type="html">FileSize_With_Spaces</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/06/original_tab_settings_thumb.png" medium="image">
			<media:title type="html">Original_Tab_Settings</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/06/new_tab_settings_thumb.png" medium="image">
			<media:title type="html">New_Tab_settings</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/06/tabs_not_spaces_thumb.png" medium="image">
			<media:title type="html">Tabs_Not_Spaces</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/06/11/whitespace-silent-killer/</feedburner:origLink></item>
		<item>
		<title>Document Set Limitations and Considerations in SharePoint 2010</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/95p9QM6orhM/</link>
		<comments>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 04:49:00 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Caveats]]></category>
		<category><![CDATA[Document Sets]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=331</guid>
		<description><![CDATA[First of all, go and read the excellent article Document Set Limitations and Considerations in SharePoint 2010 written by Michal Pisarek. Ok, you’re back and have read all those? Great! I’ve got a few more for you. Shared Fields are &#8230; <a href="http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=331&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>First of all, go and read the excellent article <a href="http://www.sharepointanalysthq.com/2011/09/document-set-limitations-and-considerations-in-sharepoint-2010/">Document Set Limitations and Considerations in SharePoint 2010</a> written by <a href="http://www.sharepointanalysthq.com/about/">Michal Pisarek</a>. </p>
<p>Ok, you’re back and have read all those? Great! I’ve got a few more for you.</p>
<ol>
<li>
<h4>Shared Fields are push down only:</h4>
<p>If you go into a document within a document and edit a property which is set as a shared property for the Document Set that change does not get propagated to the either the containing Document Set or to other documents within the set. If you need to change these across the entire Document Set you must make the change to the Document Set itself and then SharePoint will propagate these changes down.</p>
<li>
<h4>Versions have to be declared: </h4>
<p>Despite the fact that a Document Set itself can have metadata which users change there is no automatic tracking of changes made. You must use the Capture Version functionality manually to record changes made against the metadata at a Document Set level.</p>
<li>
<h4>No Check-In/Check-Out functionality: </h4>
<p>The notion of check-in/check-out does not apply to Document Sets. This kind of makes sense when you consider that they are just special folders and a check-out at the folder level would imply that they user had also checked out all child documents. But it’s a little annoying, especially as there is metadata against the Document Set which users can freely edit with no automatic version history captured.</p>
</li>
</ol>
<br />Filed under: <a href='http://gavinb.net/category/caveats/'>Caveats</a>, <a href='http://gavinb.net/category/document-sets/'>Document Sets</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=331&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/95p9QM6orhM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/</feedburner:origLink></item>
		<item>
		<title>VS 2010: Missing Source Control Icons</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/n8XjyZrGU2U/</link>
		<comments>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 23:54:03 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=326</guid>
		<description><![CDATA[So I’m working on a project with a number of other developers at present. However every so often when another developer adds files to source control when they are added to my local solution they appear unbound to source control &#8230; <a href="http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=326&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>So I’m working on a project with a number of other developers at present. However every so often when another developer adds files to source control when they are added to my local solution they appear unbound to source control and Visual Studio treats them as though they are not bound to TFS.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Missing_Bindings" border="0" alt="Missing_Bindings" src="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings_thumb.png?w=287&#038;h=453" width="287" height="453"></a></p>
<p>Note the missing padlock icons on some files. The files missing the padlock were retrieved on my last Get Latest operation.</p>
<p>To ensure that Visual Studio treats these correctly and enforces source control behaviour you have to refresh the source control connection. Ensure that you select the solution file, to refresh all projects, or just a single project to target the refresh at just that project. Then select <strong>File &gt; Source Control &gt; Refresh Status </strong>or <strong>Alt + F, Alt + R, Alt + T</strong> for you keyboard jockeys out there.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Refresh_Status" border="0" alt="Refresh_Status" src="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status_thumb.png?w=658&#038;h=642" width="658" height="642"></a></p>
<p>Lo and behold, padlocks are present and source control behaviour is correct!</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Bindings_Present" border="0" alt="Bindings_Present" src="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present_thumb.png?w=291&#038;h=457" width="291" height="457"></a></p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/tfs/'>TFS</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a> Tagged: <a href='http://gavinb.net/tag/source-control/'>source control</a>, <a href='http://gavinb.net/tag/visual-studio-2/'>visual studio</a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=326&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/n8XjyZrGU2U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings_thumb.png" medium="image">
			<media:title type="html">Missing_Bindings</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status_thumb.png" medium="image">
			<media:title type="html">Refresh_Status</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present_thumb.png" medium="image">
			<media:title type="html">Bindings_Present</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/</feedburner:origLink></item>
		<item>
		<title>Create a Document Set in Code</title>
		<link>http://feedproxy.google.com/~r/gavinb/rss/~3/11LJKtQ1GG0/</link>
		<comments>http://gavinb.net/2012/03/15/create-a-document-set-in-code/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 04:06:30 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Document Sets]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=314</guid>
		<description><![CDATA[I have a solution where we need to create custom Documents Set via code, luckily there are some good samples out there. However I ran into a strange piece of behaviour. My Document Sets were appearing as folders without Welcome &#8230; <a href="http://gavinb.net/2012/03/15/create-a-document-set-in-code/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=314&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have a solution where we need to create custom Documents Set via code, luckily there are some good samples out there. However I ran into a strange piece of behaviour. My Document Sets were appearing as folders without Welcome Pages….</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="docsetpopoutmenu" src="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu_thumb.png?w=656&#038;h=336" alt="docsetpopoutmenu" width="656" height="336" border="0" /></a></p>
<p>I’d been using this code to create my document sets:</p>
<pre class="brush: csharp; pad-line-numbers: true; title: ; notranslate">/*
Broken but sort of works
*/
public static void GenerateNewApplicationDocumentSet(string applicationNumber, SPList targetLibrary, SPWeb web)
{
	if (applicationNumber == null) throw new ArgumentNullException(&quot;applicationNumber&quot;);
	if (targetLibrary == null) throw new ArgumentNullException(&quot;targetLibrary&quot;);
	if (web == null) throw new ArgumentNullException(&quot;web&quot;);
	//You can use a hashtable to populate properties of the document set
	var docsetProperties = new Hashtable {{&quot;Name&quot;, applicationNumber}};
	var documentSetContentType = web.ContentTypes[ContentTypeNames.ApplicationDocumentSet];
	documentSet = DocumentSet.Create(targetLibrary.RootFolder,
                                                    	applicationNumber,
                                                    	documentSetContentType.Id,
                                                    	docsetProperties,
                                                    	true);
}</pre>
<p>Creating my Document Sets via the UI worked fine and gave me the right icon and a link to my Welcome Page. I was well puzzled. After a bit of head scratching and getting back to SharePoint basics I realised my mistake. I was creating an instance of the Documents Set Content Type that was on the SPWeb and not that which was bound to the Document Library.</p>
<p>Once I start using the content type from the library things started working perfectly!</p>
<pre class="brush: csharp; pad-line-numbers: true; title: ; notranslate">public static void GenerateNewApplicationDocumentSet(string applicationNumber, SPList targetLibrary)
{
	if (applicationNumber == null) throw new ArgumentNullException(&quot;applicationNumber&quot;);
	if (targetLibrary == null) throw new ArgumentNullException(&quot;targetLibrary&quot;);
	//You can use a hashtable to populate properties of the document set
	var docsetProperties = new Hashtable {{&quot;Name&quot;, applicationNumber}};
	var documentSetContentType = targetLibrary.ContentTypes[ContentTypeNames.ApplicationDocumentSet];
	documentSet = DocumentSet.Create(targetLibrary.RootFolder,
                                                    	applicationNumber,
                                                    	documentSetContentType.Id,
                                                    	docsetProperties,
                                                    	true);
}</pre>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/docsets.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="docsets" src="http://gavinbdotnet.files.wordpress.com/2012/03/docsets_thumb.png?w=328&#038;h=151" alt="docsets" width="328" height="151" border="0" /></a></p>
<p>Subtle but telling reminder that the content types bound to lists are different from those site wide content types that they inherit from.</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/document-sets/'>Document Sets</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&#038;blog=19844983&#038;post=314&#038;subd=gavinbdotnet&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/gavinb/rss/~4/11LJKtQ1GG0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/03/15/create-a-document-set-in-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bae26d50dcc43a41ec941994a111360b?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu_thumb.png" medium="image">
			<media:title type="html">docsetpopoutmenu</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/docsets_thumb.png" medium="image">
			<media:title type="html">docsets</media:title>
		</media:content>
	<feedburner:origLink>http://gavinb.net/2012/03/15/create-a-document-set-in-code/</feedburner:origLink></item>
	</channel>
</rss>
