<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.microsoft.co.il/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Shimmy on .NET : RIA-Services, Silverlight-4</title><link>http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/RIA-Services/Silverlight-4/default.aspx</link><description>Tags: RIA-Services, Silverlight-4</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>TIP: Have the 'SILVERLIGHT' processor directive appear in intellisense in the ASP.NET host project (VB.NET)</title><link>http://blogs.microsoft.co.il/blogs/shimmy/archive/2011/03/31/tip-have-the-silverlight-processor-directive-appear-in-intellisense-in-the-asp-net-host-project-as-well-vb-net.aspx</link><pubDate>Thu, 31 Mar 2011 08:26:00 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:815320</guid><dc:creator>Shimmy</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.microsoft.co.il/blogs/shimmy/rsscomments.aspx?PostID=815320</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.microsoft.co.il/blogs/shimmy/commentapi.aspx?PostID=815320</wfw:comment><comments>http://blogs.microsoft.co.il/blogs/shimmy/archive/2011/03/31/tip-have-the-silverlight-processor-directive-appear-in-intellisense-in-the-asp-net-host-project-as-well-vb-net.aspx#comments</comments><description>&lt;iframe style="border:currentColor;" height="90" src="http://rcm.amazon.com/e/cm?t=shonne-20&amp;amp;o=1&amp;amp;p=48&amp;amp;l=st1&amp;amp;mode=books&amp;amp;search=silverlight%205&amp;amp;fc1=000000&amp;amp;lt1=_blank&amp;amp;lc1=3366FF&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" frameborder="0" width="728" scrolling="no"&gt;&lt;/iframe&gt;
&lt;p&gt;Nothing special anyway, but I thought let&amp;#39;s&amp;nbsp;write it down briefly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In Silverlight solutions, especially when RIA Services is enabled, it&amp;#39;s pretty common to use the SILVERLIGHT processor directive in the &lt;em&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee707371.aspx"&gt;shared code&lt;/a&gt;&lt;/em&gt; and other.&lt;/p&gt;
&lt;p&gt;So the SILVERLIGHT directive is known in the Silverlight project, but in the ASP.NET there it doesn&amp;#39;t appear in the intellisense, and since this is always valid, it&amp;#39;s kinda error-prone when there is no intellisense support.&lt;/p&gt;
&lt;p&gt;To enable the intellisense simply open the ASP.NET project settings/properties-&amp;gt;Compile-&amp;gt;Advanced Compile Options and at &amp;quot;&lt;u&gt;C&lt;/u&gt;ustom Constants&amp;quot; add &lt;strong&gt;Silverlight=0&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NOTE: I only tested this in VB.NET projects, I barely use C#.&lt;/p&gt;&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=815320" width="1" height="1"&gt;</description><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/DEV/default.aspx">DEV</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/VB.NET/default.aspx">VB.NET</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/RIA/default.aspx">RIA</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/Visual-Studio-2010/default.aspx">Visual-Studio-2010</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/Silverlight-4/default.aspx">Silverlight-4</category><category domain="http://blogs.microsoft.co.il/blogs/shimmy/archive/tags/RIA-Services/default.aspx">RIA-Services</category></item></channel></rss>