<?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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>NiKiZh</title>
	
	<link>http://nikizh.com</link>
	<description>My name is Nikolay Zhekov, and this is my blog. I'm passionate about software development. It is my hobby and profession.</description>
	<lastBuildDate>Fri, 30 Dec 2011 17:31:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/NiKiZhCom" /><feedburner:info uri="nikizhcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>VSX: Solution Folders</title>
		<link>http://feedproxy.google.com/~r/NiKiZhCom/~3/rooYL_cx9CM/</link>
		<comments>http://nikizh.com/2011/12/vsx-solution-folders/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 17:31:06 +0000</pubDate>
		<dc:creator>nikizh</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VSX]]></category>

		<guid isPermaLink="false">http://nikizh.com/?p=21</guid>
		<description><![CDATA[Recently I&#8217;ve been working on few extensions for Visual Studio 2010. In a series of post I&#8217;ll share different snippets and techniques that I&#8217;ve learned. In this post, I&#8217;ll show you how to create, and how to find an existing Solution folder. First we need a reference to a DTE2 object (http://bit.ly/szlrOt) and then to a [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been working on few extensions for Visual Studio 2010. In a series of post I&#8217;ll share different snippets and techniques that I&#8217;ve learned.</p>
<p>In this post, I&#8217;ll show you how to create, and how to find an existing Solution folder.</p>
<p>First we need a reference to a DTE2 object (<a href="http://bit.ly/szlrOt">http://bit.ly/szlrOt</a>) and then to a Solution2 object.</p>
<pre class="brush:csharp">DTE2 dte2 = ...; // Get a reference to DTE2 object.

Solution2 solution = (Solution2)dte2.Solution;</pre>
<p>Then to add the folder, just invoke the AddSolutionFolder method and pass the name of the folder:</p>
<pre class="brush:csharp">Project projectItem = solution.AddSolutionFolder("MyNewSolutionFolder");

SolutionFolder solutionFolder = (SolutionFolder)(projectItem.Object);</pre>
<p>There is trick, though. If a folder with the same name already exists an exception will be thrown. Here is a way to find an existing Solution folder:</p>
<pre class="brush:csharp">SolutionFolder foundSolutionFolder = null;
string folderName = "MyNewSolutionFolder";

foreach (Project project in solution.Projects)
{
	if (project.Kind == ProjectKinds.vsProjectKindSolutionFolder)
	{
		if (string.Compare(project.Name, folderName, StringComparison.CurrentCultureIgnoreCase) == 0)
		{
			foundSolutionFolder = (SolutionFolder)project.Object;
			break;
		}
	}
}</pre>
<p>I hope that you will find this information useful.</p>
<p>&#8217;till next time.</p>
<img src="http://feeds.feedburner.com/~r/NiKiZhCom/~4/rooYL_cx9CM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nikizh.com/2011/12/vsx-solution-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nikizh.com/2011/12/vsx-solution-folders/</feedburner:origLink></item>
		<item>
		<title>Will Smith – Running &amp; Reading</title>
		<link>http://feedproxy.google.com/~r/NiKiZhCom/~3/G9sTR0TOvbc/</link>
		<comments>http://nikizh.com/2011/08/will-smith-running-reading/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 21:27:18 +0000</pubDate>
		<dc:creator>nikizh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nikizh.com/?p=16</guid>
		<description />
			<content:encoded><![CDATA[<img src="http://feeds.feedburner.com/~r/NiKiZhCom/~4/G9sTR0TOvbc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nikizh.com/2011/08/will-smith-running-reading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nikizh.com/2011/08/will-smith-running-reading/</feedburner:origLink></item>
		<item>
		<title>Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.</title>
		<link>http://feedproxy.google.com/~r/NiKiZhCom/~3/UTxHH6es9Ks/</link>
		<comments>http://nikizh.com/2011/07/always-code-as-if-the-guy-who-ends-up-maintaining-your-code-will-be-a-violent-psychopath-who-knows-where-you-live/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 21:31:02 +0000</pubDate>
		<dc:creator>nikizh</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://nikizh.com/?p=10</guid>
		<description><![CDATA[~Martin Golding]]></description>
			<content:encoded><![CDATA[<p>~Martin Golding</p>
<img src="http://feeds.feedburner.com/~r/NiKiZhCom/~4/UTxHH6es9Ks" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nikizh.com/2011/07/always-code-as-if-the-guy-who-ends-up-maintaining-your-code-will-be-a-violent-psychopath-who-knows-where-you-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nikizh.com/2011/07/always-code-as-if-the-guy-who-ends-up-maintaining-your-code-will-be-a-violent-psychopath-who-knows-where-you-live/</feedburner:origLink></item>
		<item>
		<title>Lamborghini Aventador</title>
		<link>http://feedproxy.google.com/~r/NiKiZhCom/~3/Dksjhwbq-0Y/</link>
		<comments>http://nikizh.com/2011/07/lamborghini-aventador/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 00:00:03 +0000</pubDate>
		<dc:creator>nikizh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nikizh.com/?p=7</guid>
		<description><![CDATA[by Sehsucht™]]></description>
			<content:encoded><![CDATA[<p>by Sehsucht™</p>
<img src="http://feeds.feedburner.com/~r/NiKiZhCom/~4/Dksjhwbq-0Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nikizh.com/2011/07/lamborghini-aventador/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nikizh.com/2011/07/lamborghini-aventador/</feedburner:origLink></item>
		<item>
		<title>Hello world!</title>
		<link>http://feedproxy.google.com/~r/NiKiZhCom/~3/wk7NUcfM0iQ/</link>
		<comments>http://nikizh.com/2011/07/hello-world/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 11:05:00 +0000</pubDate>
		<dc:creator>nikizh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nikizh.com/?p=5</guid>
		<description><![CDATA[Welcome to my website. It&#8217;s been a long time since I bought this domain and since then I&#8217;ve tried several times to start a blog, but unfortunately I was not writing consistently. This time I intend to take time off for blogging, because I think it will be useful for me. I&#8217;ll write mostly about [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to my website. It&#8217;s been a long time since I bought this domain and since then I&#8217;ve tried several times to start a blog, but unfortunately I was not writing consistently. This time I intend to take time off for blogging, because I think it will be useful for me.</p>
<p>I&#8217;ll write mostly about software development, testing, .net, silverlight, wpf and technical stuff that&#8217;s interesting to me. However, this doesn&#8217;t mean that I&#8217;m not going to write about other interesting (and not so interesting) topics.</p>
<p>I think this is enough for a &#8220;Hello World!&#8221; post, so thanks for reading and keep checking for new posts and articles ツ</p>
<img src="http://feeds.feedburner.com/~r/NiKiZhCom/~4/wk7NUcfM0iQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nikizh.com/2011/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://nikizh.com/2011/07/hello-world/</feedburner:origLink></item>
	</channel>
</rss>

