<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Jimmy Rasmussens Blog : ASP.NET</title><link>http://blogs.msdn.com/jimmytr/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Sharing ASP.NET Files?</title><link>http://blogs.msdn.com/jimmytr/archive/2007/02/10/sharing-asp-net-files.aspx</link><pubDate>Sun, 11 Feb 2007 01:45:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1646582</guid><dc:creator>jimmytr</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jimmytr/comments/1646582.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jimmytr/commentrss.aspx?PostID=1646582</wfw:commentRss><description>&lt;p&gt;If&amp;nbsp;you need to share web files (masterpages, skins etc.) among several web projects there are a few ways to do this. In the following few words I'll try to briefly explain&amp;nbsp;some of these.&lt;/p&gt; &lt;p&gt;Say you have a number of very nice masterpages that you want to use in all of your companys asp.net applications. For simplicity let's assume the following directory layout:&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;\webroot&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;\ApplicationA&lt;/p&gt; &lt;p&gt;\ApplicationB&lt;/p&gt; &lt;p&gt;\ApplicationC&lt;/p&gt; &lt;p&gt;\Shared&lt;/p&gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \masterpages&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Now how do you get the masterpages below each of your applications?&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;IIS Virtual Directories&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Under each of your Applications you simply create a virtual directory named masterpages (pointing this to \WebRoot\SharedFiles\masterpages). To use this you will need to work&amp;nbsp;on a Internet Information Server and cannot use the built-in development web server that ships with Visual Studio 2005.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;NTFS reparse points /junction points&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;Under each of your Applications you create a &lt;a href="http://en.wikipedia.org/wiki/NTFS_reparse_point"&gt;NTFS re-parse point&lt;/a&gt; named masterpages and pointing to \WebRoot\SharedFiles\masterpages. This trick will allow you to develop using the Development Web Server and hence does not require IIS to be installed on your development machine.&lt;/p&gt; &lt;p&gt;Se &lt;a href="http://support.microsoft.com/?kbid=205524"&gt;here&lt;/a&gt; for more information or download the &lt;a href="http://www.sysinternals.com/utilities/junction.html"&gt;junction tool&lt;/a&gt; at sysinternals site&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;/u&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;"Add as Link"&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt; &lt;p&gt;In Visual Studio you can add existing items to a project - there is a very nice feature that allows you to add an existing item as a link (push the little arrow on the "Add" button). Sadly it does not seem to work for Web Projects . It works for Web Application Projects but... the master page references in your solution will get an unfortunate path as you will traverse above the root and probably get the following error when you run the page:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Cannot use a leading .. to exit above the top directory.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;UPDATE: Developers running 2000/2003/XP should be aware of the effects - se &lt;a href="http://en.wikipedia.org/wiki/NTFS_junction_point"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1646582" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jimmytr/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Web Client Software Factory Released!</title><link>http://blogs.msdn.com/jimmytr/archive/2007/01/13/web-client-software-factory-released.aspx</link><pubDate>Sat, 13 Jan 2007 14:01:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1460790</guid><dc:creator>jimmytr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jimmytr/comments/1460790.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jimmytr/commentrss.aspx?PostID=1460790</wfw:commentRss><description>&lt;p&gt;The Patterns&amp;amp;Practices have just released their software factory for building Composite ASP.NET Web Clients. &lt;a href="http://www.codeplex.com/websf/"&gt;Go Here&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1460790" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jimmytr/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>ASP.NET Tips-Tricks @scottgu</title><link>http://blogs.msdn.com/jimmytr/archive/2006/11/25/asp-net-tips-tricks-scottgu.aspx</link><pubDate>Sat, 25 Nov 2006 18:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1148277</guid><dc:creator>jimmytr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jimmytr/comments/1148277.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jimmytr/commentrss.aspx?PostID=1148277</wfw:commentRss><description>Look &lt;A href="http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx" mce_href="http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx"&gt;here&lt;/A&gt; for Scott's list of tips and tricks for ASP.NET 2.0&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1148277" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jimmytr/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>