<?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>Wagner Danda Weblog &#187; Dynamic Compilation</title>
	<atom:link href="http://www.wagnerdanda.me/tag/dynamic-compilation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wagnerdanda.me</link>
	<description>.NET, OpenSource, Web 2.0 and other projects</description>
	<lastBuildDate>Fri, 06 Aug 2010 04:28:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tip/Trick: Optimizing ASP.NET Build Time with Dynamic Compilation (optimizeCompilations=&#8221;true&#8221;)</title>
		<link>http://www.wagnerdanda.me/2009/11/optimizing-asp-net-build-time-with-dynamic-compilation-and-optimizecompilations/</link>
		<comments>http://www.wagnerdanda.me/2009/11/optimizing-asp-net-build-time-with-dynamic-compilation-and-optimizecompilations/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:50:14 +0000</pubDate>
		<dc:creator>Wagner Danda</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Dynamic Compilation]]></category>
		<category><![CDATA[optimizeCompilations]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.wagnerdanda.me/?p=23</guid>
		<description><![CDATA[If you are experiencing slow builds with ASP.NET projects or want to learn how to speed them up please read on.
Microsoft has introduced a new optimizeCompilations switch in ASP.NET that can greatly improve the compilation speed in some scenarios. You can read this blog post to understand the overall idea, study a more detailed explanation about [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If you are experiencing slow builds with ASP.NET projects or want to learn how to speed them up please read on.</strong></p>
<p>Microsoft has introduced a new optimizeCompilations switch in ASP.NET that can greatly improve the compilation speed in some scenarios. You can read <a href="http://blogs.msdn.com/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx">this</a> blog post to understand the overall idea, study a more detailed explanation about Dynamic Compilation <a href="http://msdn.microsoft.com/en-us/library/ms366723.aspx">here</a> <strong>or</strong> <strong>simply follow these 2 easy steps:</strong></p>
<p><strong>1) Install this hot-fix:</strong></p>
<ul>
<li>Windows XP: <a title="http://code.msdn.microsoft.com/KB969612" href="http://code.msdn.microsoft.com/KB969612/Release/ProjectReleases.aspx?ReleaseId=2582">http://code.msdn.microsoft.com/KB969612</a></li>
<li>Windows Vista: <a href="http://code.msdn.microsoft.com/KB967535/Release/ProjectReleases.aspx?ReleaseId=2328">http://code.msdn.microsoft.com/KB967535</a></li>
<li>Windows 7 &#8211; not necessary</li>
</ul>
<p><strong>2) Update your web.config as follows:</strong></p>
<p>Add <em>optimizeCompilations=&#8221;true&#8221;</em> to your &lt;<em>compilation</em> &#8230;&gt; tag. Below is an example:</p>
<p><code>&lt;system.web&gt;<br />
....<br />
&lt;compilation debug="true" <strong>optimizeCompilations="true"</strong>&gt;<br />
....<br />
&lt;/compilation&gt;<br />
....<br />
&lt;/system.web&gt;<br />
</code></p>
<p><strong>And you&#8217;re done! </strong>Next time you change something inside the <em>App_code</em> or even a <em>dll</em> inside the <em>bin</em> folder you might not have to wait the entire site to rebuild.</p>
<p><strong>Important note: this approach speeds things up but you might get some weird errors when you start changing some code signatures or restructuring dlls.</strong>In this case, all you need to do is a simple &#8220;rebuild project/solution&#8221; inside your Visual Studio to get things straight again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wagnerdanda.me/2009/11/optimizing-asp-net-build-time-with-dynamic-compilation-and-optimizecompilations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
