<?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>Andrey Shchekin &#187; Visual Studio</title>
	<atom:link href="http://blog.ashmind.com/index.php/category/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashmind.com</link>
	<description></description>
	<lastBuildDate>Mon, 15 Mar 2010 18:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Making a Visual Studio Custom Project Type buildable</title>
		<link>http://blog.ashmind.com/2007/04/30/making-a-visual-studio-custom-project-type-buildable/</link>
		<comments>http://blog.ashmind.com/2007/04/30/making-a-visual-studio-custom-project-type-buildable/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 09:16:29 +0000</pubDate>
		<dc:creator>Andrey Shchekin</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[MPF]]></category>
		<category><![CDATA[MSBuild]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/04/30/making-a-visual-studio-custom-project-type-buildable/</guid>
		<description><![CDATA[As a side project, I am creating a new Project Type for Visual Studio using Managed Package Framework from VS 2005 SDK. I have read an excellent post on the matter, so mostly it was a piece of cake. But I had one problem: Build was not available as a menu item and Build Selection [...]]]></description>
			<content:encoded><![CDATA[<p>As a side project, I am creating a new Project Type for Visual Studio using Managed Package Framework from VS 2005 SDK.<br />
I have read an <a href="http://mikehadlow.blogspot.com/2007/03/building-visual-studio-custom-project.html">excellent post</a> on the matter, so mostly it was a piece of cake.<br />
But I had one problem: Build was not available as a menu item and Build Selection was greyed out when I selected my custom project.</p>
<p>Adding Target Name=&#8221;Build&#8221; to the project template and specifying it in DefaultTargets did not help.</p>
<p>After some experiments I have found out a minimal *proj file that has Build menu item available (if you have already inherited the MPF ProjectNode).<br />
It is quite interesting:<span xmlns:x="http://ashmind.com/xml"><br />
<style type="text/css">x\:a,x\:value { color: #0000FF; } x\:tag { color: #A31515; } x\:attribute { color: #FF0000; }</style>
<pre><x:a>&lt;</x:a><x:tag>Project</x:tag> <x:attribute>xmlns</x:attribute><x:a>=</x:a>"<x:value>http://schemas.microsoft.com/developer/msbuild/2003</x:value>"<x:a>&gt;</x:a>
  <x:a>&lt;</x:a><x:tag>PropertyGroup</x:tag> <x:attribute>Condition</x:attribute><x:a>=</x:a>"<x:value> '$(Configuration)' == 'Debug' </x:value>" <x:a>/&gt;</x:a>
<x:a>&lt;/</x:a><x:tag>Project</x:tag><x:a>&gt;</x:a>
</pre>
<p></span></p>
<p>It seems that the Configuration comparison gets parsed into the Configuration values for this project.<br />
I am not sure whether Visual Studio or MPF does this.</p>
<p>Of course, if you actually want this menu item to work, you will have to add a default target, but that&#8217;s quite easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashmind.com/2007/04/30/making-a-visual-studio-custom-project-type-buildable/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
