<?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>tewari &#187; AOP</title>
	<atom:link href="http://www.tewari.info/category/aop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tewari.info</link>
	<description>Professional Software Development by Ash Tewari</description>
	<lastBuildDate>Thu, 03 Jun 2010 01:52:16 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PostSharp with SharpDevelop</title>
		<link>http://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/</link>
		<comments>http://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 05:04:43 +0000</pubDate>
		<dc:creator>tewari</dc:creator>
				<category><![CDATA[AOP]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Aspect]]></category>
		<category><![CDATA[MSBuild]]></category>
		<category><![CDATA[PostSharp]]></category>
		<category><![CDATA[SharpDevelop]]></category>

		<guid isPermaLink="false">http://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/</guid>
		<description><![CDATA[	SharpDevelop3.0 uses MSBuild. Including PostSharp in your build process is transparent if you are doing a global install using PostSharp installer. If you are doing a per-project installation using &#8220;Binary &#8211; No Installer&#8221; download, you will need to import the PostSharp targets into your .csproj file -
	
	
    True

	C:\code\PostSharp-1.0.8.316-Binary\


	For more details, read the [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://sharpdevelop.net/OpenSource/SD/Default.aspx" title="SharpDevelop HomePage" target="_blank">SharpDevelop3.0</a> uses <a href="http://en.wikipedia.org/wiki/MSBuild" title="MSBuild on wikipedia" target="_blank">MSBuild</a>. Including PostSharp in your build process is transparent if you are doing a global install using PostSharp installer. If you are doing a per-project installation using &#8220;Binary &#8211; No Installer&#8221; <a href="http://www.postsharp.org/download/" title="postsharp download" target="_blank">download</a>, you will need to import the PostSharp targets into your .csproj file -</p>
	<pre name="code" class="xml">
	<propertygroup>
    <dontimportpostsharp>True</dontimportpostsharp>
</propertygroup>
	<postsharpdirectory>C:\code\PostSharp-1.0.8.316-Binary\</postsharpdirectory>
<import project=\"$(MSBuildBinPath)\Microsoft.CSharp.targets\"></import>
<import project=\"$(PostSharpDirectory)PostSharp.targets\"></import></pre>
	<p>For more details, read the install instructions included in the PostSharp <a href="http://www.postsharp.org/download/" title="postsharp download" target="_blank">download </a>and <a href="http://www.postsharp.org/blog/2008/01/under-hood-of-msbuild-integration.html" title="under-hood-of-msbuild-integration" target="_blank">under-the-hood-of-msbuild-integration</a>.</p>
	<p>To use local PostSharp binaries (relative to your project) , modify your .csproj file as follows -</p>
	<pre name="code" class="xml">
  <PropertyGroup Condition=\" Exists('PostSharp\PostSharp.targets') \">
    <DontImportPostSharp>True</DontImportPostSharp>
    <PostSharpDirectory>$(MSBuildProjectDirectory)\PostSharp\</PostSharpDirectory>
  </PropertyGroup>
	
  <Import Project=\"$(MSBuildBinPath)\Microsoft.CSharp.targets\" />
	
  <Import Project=\"$(PostSharpDirectory)PostSharp.targets\"
  Condition=\" Exists('$(PostSharpDirectory)PostSharp.targets') \" />
</pre>
	<p>$(MSBuildProjectDirectory) is the directory containing your .csproj file.<br />
\PostSharp\ is the directory containing local PostSharp binaries.</p>
	<p>2. You will need to exclude the Aspect class itself from being woven.</p>
	<p>If you are following the <a href="http://www.postsharp.org/about/getting-started/" title="getting-started-sample" target="_blank">getting-started sample</a>, see the following example:</p>
	<pre name="code" class="csharp">
[Serializable]
[Trace( null, AttributeExclude = true )]
public sealed class TraceAttribute : OnMethodBoundaryAspect
{</pre>
	<p>3. Compile your project.<hr/>Copyright &copy; 2010 <strong><a href="http://www.tewari.info">tewari</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@tewari.info so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>
</p>
<p class="akst_link"><a href="http://www.tewari.info/?p=35&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_35" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
