<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Denis Vuyka</title>
	
	<link>http://denisvuyka.wordpress.com</link>
	<description>It's all about .NET</description>
	<lastBuildDate>Thu, 04 Apr 2013 17:13:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain="denisvuyka.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Denis Vuyka</title>
		<link>http://denisvuyka.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://denisvuyka.wordpress.com/osd.xml" title="Denis Vuyka" />
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DenisVuyka" /><feedburner:info uri="denisvuyka" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://denisvuyka.wordpress.com/?pushpress=hub" /><item>
		<title>Announcing Masonry for node.js</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/-H6HsowSkAE/</link>
		<comments>http://denisvuyka.wordpress.com/2013/03/03/announcing-masonry-for-node-js/#comments</comments>
		<pubDate>Sun, 03 Mar 2013 15:35:14 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[Masonry]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=446</guid>
		<description><![CDATA[I&#8217;m happy to announce that node.js version of &#8216;Masonry&#8217; framework (branded as collab.js) has landed it&#8217;s GitHub repository. Masonry is a starter kit for social-enabled web applications. To get more details about Masonry starter kit for ASP.NET MVC4 please refer to the following article. Supported environments Masonry.js supports both OSX and Windows development environments. In addition it contains [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=446&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m happy to announce that node.js version of &#8216;Masonry&#8217; framework (branded as collab.js) has landed it&#8217;s <a title="collab.js" href="https://github.com/DenisVuyka/collab.js" target="_blank">GitHub</a> repository.</p>
<p>Masonry is a starter kit for social-enabled web applications. <em>To get more details about Masonry starter kit for ASP.NET MVC4 please refer to the following <a href="http://denisvuyka.wordpress.com/2012/11/21/announcing-masonry-public-preview/" target="_blank">article</a>.</em></p>
<h2>Supported environments</h2>
<p>Masonry.js supports both OSX and Windows development environments. In addition it contains support for Microsoft <a href="http://www.microsoft.com/web/webmatrix/" target="_blank">WebMatrix 2</a> for development and deployment/publishing, and uses only those NPM modules that do not require manual compilation steps in order to run on either OSX x64 or Windows 7 x64 systems.</p>
<h2>Supported databases</h2>
<p>Masonry.js features extensible provider-based model for data layer. It is extremely easy writing custom data providers or switching between them. At the moment of writing this article the following database engines are supported out-of-box:</p>
<ul>
<li><span style="line-height:13px;">Microsoft SQL Server</span></li>
<li>MySQL Server</li>
</ul>
<p><em>Providers for Azure SQL, MongoDb and SQLite are in progress and will appear pretty soon.</em></p>
<h2>Simple code maintenance</h2>
<p>The Node.js version of Masonry provides a better code partitioning with the benefit of keeping the core implementation and modules up-to-date with less effort. Masonry views, routes and controllers are kept separately to avoid interference with your development process.</p>
<h2>Great level of extensibility</h2>
<p>With node.js and JavaScript you get extensibility for nearly everything out of box. With node.js you don&#8217;t need binary compilation of the project and so don&#8217;t need complex plugin layers with always limited APIs for discovery and initialization of extensions at run time.</p>
<p>In order to reduce the need modifying core Masonry files there is a set of lightweight contracts (via configuration files) to modify or extend key parts of the UI like brand/copyright information, sidebar/header links, etc. That means less time can be spent to keep Masonry up-to-date and more time for your own features.</p>
<h2>Separate presentation and web api layers</h2>
<p>The frontend is separated with a plain presentation layer and web api&#8217;s - set of RESTful services with JSON output by default. It becomes extremely easy switching between presentation layers and rendering engines, or building  completely different clients on the top of existing RESTful endpoints.</p>
<h2>And many more&#8230;</h2>
<p>You should expect more features and details soon. Meanwhile feel free raising issues and/or suggestions <a href="https://github.com/DenisVuyka/collab.js/issues" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/446/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=446&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/-H6HsowSkAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2013/03/03/announcing-masonry-for-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2013/03/03/announcing-masonry-for-node-js/</feedburner:origLink></item>
		<item>
		<title>Simple Workflow Designer with Silverlight and MEF</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/D7blFnE2rbU/</link>
		<comments>http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/#comments</comments>
		<pubDate>Thu, 06 Dec 2012 12:34:17 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[MEF]]></category>
		<category><![CDATA[Silverlight 4]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=432</guid>
		<description><![CDATA[Introducing simple workflow designer I&#8217;m excited to announce another project from my collection went public today. This time it is a demo POC (proof of concept) implementation for a simple workflow designer written in Silverlight 4 and MEF. The project contains the following features that may be interesting for review: Design surface with drag and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=432&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h1>Introducing simple workflow designer</h1>
<p>I&#8217;m excited to announce another project from my collection went public today. This time it is a demo POC (proof of concept) implementation for a simple workflow designer written in Silverlight 4 and <a href="http://mef.codeplex.com/" target="_blank">MEF</a>.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/01-slwfdesigner/" rel="attachment wp-att-433"><img class="alignnone size-full wp-image-433" style="border:0;" alt="01.slwfdesigner" src="http://denisvuyka.files.wordpress.com/2012/12/01-slwfdesigner.png?w=645&#038;h=409" height="409" width="645" /></a></p>
<p>The project contains the following features that may be interesting for review:</p>
<ul>
<li><span style="line-height:13px;">Design surface with drag and drop (MVC)</span></li>
<li>Toolbox with automatic runtime discovery of items (MVVM)</li>
<li>Drawing connections, live update of connections during drag and drop</li>
<li>Separate model layer with custom serialization support (functions, activities, workflows)</li>
<li>Separate presentation layer (visual elements for activities), styling and templating nodes</li>
<li>Runtime discovery of models and corresponding node views (decoupled layers)</li>
<li>Simple rules (i.e. &#8220;Output &#8221; node may have only 1 incoming connection)</li>
</ul>
<p>There are two modes supported out of box &#8211; <strong>Design</strong> and <strong>Source</strong> views.</p>
<h1>Design view</h1>
<p>This mode showcases the process of visual modeling. The process is divided into two separated areas &#8211; Toolbox and Design Surface.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/02-slwfdesigner-designview/" rel="attachment wp-att-436"><img class="alignnone size-full wp-image-436" style="border:0;" alt="02.slwfdesigner-designview" src="http://denisvuyka.files.wordpress.com/2012/12/02-slwfdesigner-designview.png?w=645&#038;h=489" height="489" width="645" /></a></p>
<p>Toolbox hosts all items exported and discovered at runtime by means of <a href="http://mef.codeplex.com/" target="_blank">MEF</a>. Default set of activities resides in a separate &#8220;<strong>WorkflowDesigner.Activities.dll</strong>&#8221; assembly and can be easily replaced or extended. There&#8217;s also an additional &#8220;<strong>WorkflowDesigner.Sdk.dll</strong>&#8221; assembly that is mean to be shared across 3rd party libraries and aids in creating custom activity libraries.</p>
<p>You can add activities to the surface by double-clicking the corresponding item in the toolbox. For the sake of simplicity there is no drag and drop support for the toolbox but it can be easily introduced. The quickest way may be reusing Telerik&#8217;s drag and drop manager with fancy visual cues, but this is out of scope of this article.</p>
<p>Design surface is based on MVC pattern and showcases basic set of functions like: drag and drop of activities across the surface, drawing connection lines, removing nodes or connections, clearing entire surface. Every visual node is mapped to underlying model (activity) at runtime. That means that both activity and it&#8217;s visual representation are completely decoupled and any of the parts can be easily tuned or extended.</p>
<p>For demonstration purposes default activities emulate the behavior of OData- or SQL-based entities with simple UI editors, entire project emulates the process of creating a workflow that deals with data aggregation.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/08-slwfdesigner-activity/" rel="attachment wp-att-437"><img class="alignnone size-full wp-image-437" style="border:0;" alt="08.slwfdesigner-activity" src="http://denisvuyka.files.wordpress.com/2012/12/08-slwfdesigner-activity.png?w=645"   /></a></p>
<p>UI dialogs are not bound to any particular business logic except assigning corresponding property values of the model entity. However this may be a good start building user experiences based on your real-life scenarios.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/09-slwfdesigner-dialog3/" rel="attachment wp-att-438"><img class="alignnone size-full wp-image-438" style="border:0;" alt="09.slwfdesigner-dialog3" src="http://denisvuyka.files.wordpress.com/2012/12/09-slwfdesigner-dialog3.png?w=645&#038;h=282" height="282" width="645" /></a></p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/06-slwfdesigner-dialog1/" rel="attachment wp-att-439"><img class="alignnone size-full wp-image-439" style="border:0;" alt="06.slwfdesigner-dialog1" src="http://denisvuyka.files.wordpress.com/2012/12/06-slwfdesigner-dialog1.png?w=645&#038;h=275" height="275" width="645" /></a></p>
<h1>Source view</h1>
<p>In addition the Source view feature is supported. It allows you switching to the XML representation of the workflow at any time during design process. Serialization is completely custom and was kept as simple as possible in order to be replaceable or customized. Based on your real-life scenarios the resulting XML can travel to server side and can be turned into object graph without UI dependencies, etc.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/03-slwfdesigner-sourceview/" rel="attachment wp-att-440"><img class="alignnone size-full wp-image-440" style="border:0;" alt="03.slwfdesigner-sourceview" src="http://denisvuyka.files.wordpress.com/2012/12/03-slwfdesigner-sourceview.png?w=645&#038;h=489" height="489" width="645" /></a></p>
<h1>Project structure</h1>
<p>I will be giving only brief overview of the project structure in this article. Most of the code is split into 2 areas and resides in 2 different class libraries: &#8220;<strong>WorkflowDesigner.Sdk</strong>&#8221; and &#8220;<strong>WorkflowDesigner.Activities</strong>&#8220;:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/04-slwfdesigner-activities/" rel="attachment wp-att-441"><img class="alignnone size-full wp-image-441" style="border:1px solid lightgray;" alt="04.slwfdesigner-activities" src="http://denisvuyka.files.wordpress.com/2012/12/04-slwfdesigner-activities.png?w=645"   /></a></p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/05-slwfdesigner-sdk/" rel="attachment wp-att-442"><img class="alignnone size-full wp-image-442" style="border:1px solid lightgray;" alt="05.slwfdesigner-sdk" src="http://denisvuyka.files.wordpress.com/2012/12/05-slwfdesigner-sdk.png?w=645"   /></a></p>
<p>As soon as you figure out the process of creation of new activities you most probably may need only &#8220;<strong>WorkflowDesigner.Sdk</strong>&#8221; assembly that contains all core and shared functionality.</p>
<h1>Source code</h1>
<p>You can grab the source code at my <a href="https://github.com/DenisVuyka/SLWorkflowDesigner" target="_blank">GitHub repository</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/432/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=432&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/D7blFnE2rbU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/01-slwfdesigner.png" medium="image">
			<media:title type="html">01.slwfdesigner</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/02-slwfdesigner-designview.png" medium="image">
			<media:title type="html">02.slwfdesigner-designview</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/08-slwfdesigner-activity.png" medium="image">
			<media:title type="html">08.slwfdesigner-activity</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/09-slwfdesigner-dialog3.png" medium="image">
			<media:title type="html">09.slwfdesigner-dialog3</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/06-slwfdesigner-dialog1.png" medium="image">
			<media:title type="html">06.slwfdesigner-dialog1</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/03-slwfdesigner-sourceview.png" medium="image">
			<media:title type="html">03.slwfdesigner-sourceview</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/04-slwfdesigner-activities.png" medium="image">
			<media:title type="html">04.slwfdesigner-activities</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/05-slwfdesigner-sdk.png" medium="image">
			<media:title type="html">05.slwfdesigner-sdk</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2012/12/06/simple-workflow-designer-with-silverlight-and-mef/</feedburner:origLink></item>
		<item>
		<title>Masonry Extensibility. Part 1.</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/4cJUPKA-zaQ/</link>
		<comments>http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/#comments</comments>
		<pubDate>Mon, 03 Dec 2012 19:51:13 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Masonry]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=400</guid>
		<description><![CDATA[This is a second post in a series of articles about Masonry starter kit. Please refer to this article in order to get more information about Masonry: Announcing Masonry public preview Masonry starter kit was designed with extensibility in mind from the very beginning. There are several out-of-box blocks that greatly reduce learning curve and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=400&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is a second post in a series of articles about Masonry starter kit. Please refer to this article in order to get more information about Masonry:</p>
<p><a title="Announcing Masonry public preview" href="http://denisvuyka.wordpress.com/2012/11/21/announcing-masonry-public-preview/" target="_blank"><strong>Announcing Masonry public preview</strong></a></p>
<p>Masonry starter kit was designed with extensibility in mind from the very beginning. There are several out-of-box blocks that greatly reduce learning curve and efforts required to extend main navigation elements like sidebar and header bar, provide custom content and routing, integrate into help or search system or messaging pipeline.</p>
<p>Masonry is also shipped with a project template for Visual Studio 2012 that turns the process of extension library creation into a several mouse-click procedure.</p>
<p><strong>Part 1 </strong>of this article will give a high-level overview of supported extensibility features as well as developer tools shipped with version 1.0</p>
<p><strong>Part 2</strong> will dwell on technical details of extension discovery, processing and mapping of dynamic/static content and UI composition.</p>
<p>Extensions in Masonry are based on Areas that are compiled into a single-assembly libraries and deployed to Masonry-based web application by means of xcopy. For more details on Areas in ASP.NET MVC please refer to the following articles:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee671793(v=vs.100).aspx" target="_blank">Walkthrough: Organizing an ASP.NET MVC Application using Areas</a></p>
<p><a href="http://sankarsan.wordpress.com/2012/04/14/asp-net-mvc-areasa-better-way-to-structure-the-application/" target="_blank">ASP.NET MVC Areas &#8211; A Better Way to Structure The Application</a></p>
<p><a href="http://www.codeguru.com/csharp/.net/net_asp/mvc/article.php/c20227/Using-Areas-in-ASPNET-MVC-Application.htm" target="_blank">Using Areas in ASP.NET MVC Application</a></p>
<p>Every Masonry extension depends on the following assemblies:</p>
<ul>
<li><span style="line-height:13px;"><strong>Masonry.Core.dll (required)</strong>; <em>contains low-level infrastructure required by Masonry and 3rd party extensions in order to function.</em></span></li>
<li><strong>Masonry.Extensibility.dll (required)</strong>; <em>contains shared blocks that may be used by all or any 3rd party extension. For the moment of writing this article it consists mainly of UI-relacted contracts.</em></li>
<li><strong>Masonry.Resources.dll (optional)</strong>; <em>contains default localized content that may be reused within extensions</em></li>
</ul>
<p>Masonry does not require extra efforts in order to enable extensibility support for a web application, referencing &#8220;Masonry.Core&#8221; is usually enough to automatically enable underlying infrastructure.</p>
<p>There are two different modes supported by Masonry out-of-box: <strong>automatic</strong> (or convention-based) and <strong>controlled </strong>(or configuration-based) extension discovery.</p>
<h1>Automatic extension discovery</h1>
<p>This is the default mode and requires zero coding efforts besides referencing &#8220;<strong>Masonry.Core</strong>&#8221; assembly from within your Masonry-based web application.</p>
<p>Prior to web application startup the following workflow is executed automatically:</p>
<ul>
<li><span style="line-height:13px;">Underlying extensibility engine is initialized and started</span></li>
<li>All assemblies are discovered by &#8220;<strong>*.Extension.dll</strong>&#8221; mask and loaded</li>
<li>Custom ASP.NET MVC view and content providers (Masonry-specific) are initialized and wired with the extension libraries if loaded with previous step</li>
</ul>
<p>With automatic discovery mode every 3rd party extension library must follow the following predefined conventions in order to allow resulting assembly to be discovered and loaded:</p>
<ul>
<li><span style="line-height:13px;">Extension assembly file name should end with &#8220;<strong>.Extension.dll</strong>&#8220;</span></li>
<li>Default root namespace for the extension assembly should not end with &#8220;Extension&#8221; word</li>
</ul>
<p>The process of configuring assembly file name and namespace for a new extension project is pretty simple. For example in order to configure a &#8220;Dummy&#8221; extension developer may need performing the following steps:</p>
<ul>
<li><span style="line-height:13px;">Create a .NET class library project named &#8220;Dummy&#8221; and navigate to project properties pane</span></li>
<li>Ensure &#8220;Default namespace&#8221; property is set to &#8220;Dummy&#8221;</li>
<li>Change &#8220;Assembly name&#8221; property from &#8220;Dummy&#8221; to &#8220;Dummy.Extension&#8221;</li>
</ul>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/02-project-properties/" rel="attachment wp-att-408"><img class="alignnone size-full wp-image-408" style="border:1px solid lightgray;" alt="02.project-properties" src="http://denisvuyka.files.wordpress.com/2012/12/02-project-properties.png?w=645&#038;h=155" height="155" width="645" /></a></p>
<p><em><strong>Note: steps above can be omitted when using &#8220;Masonry Extension&#8221; project template for Visual Studio 2012 shipped with Masonry kit out-of-box. More details regarding project template will be given further in this</strong></em><strong><em> article</em>.</strong></p>
<h1>Controlled extension discovery</h1>
<p>Due to security, performance, additional level of extension management and review, or any other reasons it is possible switching off automatic discovery for 3rd party extensions and defining them explicitly within configuration file (<strong>web.config</strong>) instead.</p>
<p>The following picture demonstrates registration of &#8220;Dummy&#8221; widget within configuration file:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/01-webconfig/" rel="attachment wp-att-411"><img class="alignnone size-full wp-image-411" style="border:1px solid lightgray;" alt="01.webconfig" src="http://denisvuyka.files.wordpress.com/2012/12/01-webconfig.png?w=645"   /></a></p>
<p>In this case the following workflow will be executed prior to web application startup:</p>
<ul>
<li><span style="line-height:13px;">Underlying extensibility engine is initialized and started</span></li>
<li>All assemblies from configuration file are discovered and loaded</li>
<li>Custom ASP.NET MVC view and content providers (Masonry-specific) are initialized and wired with the extension libraries loaded during previous step</li>
</ul>
<p>The are no file and namespace naming conventions for configuration-based mode (as it is possible defining corresponding values within configuration file as well).</p>
<h1>Extension project template</h1>
<p>In order to greatly simplify development process and reduce amount of efforts and time needed to create and configure a new extension library Masonry is shipped with a special project template for Visual Studio 2012.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/03-vstemplate/" rel="attachment wp-att-412"><img class="alignnone size-full wp-image-412" style="border:0;" alt="03.vstemplate" src="http://denisvuyka.files.wordpress.com/2012/12/03-vstemplate.png?w=645&#038;h=321" height="321" width="645" /></a></p>
<p><strong>Important note: for version 1.0 the resulting project should reside within &#8220;Extensions&#8221; subfolder of the project like displayed on the picture. This is required in order to automate configuration of assembly references and Nuget packages for a newly created project.</strong></p>
<p>Project template handles and automates development process by executing the following operations:</p>
<ul>
<li><span style="line-height:13px;">Creates new class library within &#8220;Extensions&#8221; subfolder</span></li>
<li>Configures all Masonry-related assembly references, wires project with required and/or optional Nuget packages</li>
<li>Enables Razor support for newly created project (code highlighting, intellisense, compilation, etc.)</li>
<li>Creates initial file structure that conforms to common ASP.NET MVC Areas design</li>
<li>Generates &#8220;Area Registration&#8221; settings for the given project including default route registration</li>
<li>Generates set of files that address basic extensibility scenarios, for example sidebar and header bar extensions, grouping, default &#8220;main content&#8221; and &#8220;about&#8221; pages, etc.</li>
<li>All generated files and automated settings take into account name of project</li>
</ul>
<p>So upon creating a new project with this template you get a working Masonry Extension library that is ready to be instantly compiled and deployed to main web application.</p>
<p>By default Masonry also provides and embedded demo extension called &#8220;Dummy&#8221; that reuses most of the extensibility features:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/05-extension-structure-expanded/" rel="attachment wp-att-413"><img class="alignnone size-full wp-image-413" style="border:1px solid lightgray;" alt="05.extension-structure-expanded" src="http://denisvuyka.files.wordpress.com/2012/12/05-extension-structure-expanded.png?w=645"   /></a></p>
<p>The file structure of the project when using Masonry Extension project template will be nearly the same except the name of the area registration class, all code namespaces and all UI labels/names will be reflecting the name of the project you have defined at the creation stage. This means that multiple extensions created from the same template won&#8217;t conflict.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/06-custom-extension/" rel="attachment wp-att-414"><img class="alignnone size-full wp-image-414" style="border:1px solid lightgray;" alt="06.custom-extension" src="http://denisvuyka.files.wordpress.com/2012/12/06-custom-extension.png?w=645"   /></a></p>
<p>Here&#8217;s for example the content of the Area Registration file that was automatically generated for the &#8220;MyExtension1&#8243; project:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/07-custom-arearegistration/" rel="attachment wp-att-415"><img class="alignnone size-full wp-image-415" style="border:0;" alt="07.custom-arearegistration" src="http://denisvuyka.files.wordpress.com/2012/12/07-custom-arearegistration.png?w=645"   /></a></p>
<p>And image below provides a quick example on a sidebar extension element generated automatically and aligned with your project name and settings:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/08-custom-sidebar-integration/" rel="attachment wp-att-416"><img class="alignnone size-full wp-image-416" style="border:0;" alt="08.custom-sidebar-integration" src="http://denisvuyka.files.wordpress.com/2012/12/08-custom-sidebar-integration.png?w=645"   /></a></p>
<p>Needless to say that resulting project can be tuned in any way. Visual Studio template just takes care of the most frequent, repetitive and so time-consuming tasks.</p>
<h1>Compiling and deploying extensions</h1>
<p>Every class library created with &#8220;Masonry Extension&#8221; project template can be instantly compiled and deployed to a Masonry-based web application without any modifications.</p>
<p>As a result of successful compilation you will be getting a single assembly file with all the features and content required by extension.</p>
<p><strong>Important note: </strong>all non-C# files related to ASP.NET MVC (i.e. &#8220;.cshtml&#8221; files) and static content should be marked as &#8220;embedded resources&#8221; in order to be included into resulting assembly and processed by Masonry at run time. It is possible including images, JavaScript, CSS, etc. files as embedded resources as well. Masonry will ensure those files are mapped properly during execution and behave as common MVC views or static/script files.</p>
<p>Besides changing build action to &#8220;Embedded Resource&#8221; developers need performing no actions. Picture below demonstrates the default set of files delivered by Masonry Extension project template as embedded resources:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/11-extension-resources/" rel="attachment wp-att-417"><img class="alignnone size-full wp-image-417" style="border:1px solid lightgray;" alt="11.extension-resources" src="http://denisvuyka.files.wordpress.com/2012/12/11-extension-resources.png?w=645"   /></a></p>
<p>Deploying compiled extensions has no special requirements or prerequisites. Resulting &#8220;.dll&#8221; file can be copied into the binaries folder of the target Masonry-based web application. Optionally you can drop debugging information (.pdb files) to enable debugging of deployed extensions and stepping through the code:</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/09-extension-binaries/" rel="attachment wp-att-418"><img class="alignnone size-full wp-image-418" style="border:0;" alt="09.extension-binaries" src="http://denisvuyka.files.wordpress.com/2012/12/09-extension-binaries.png?w=645"   /></a></p>
<p><em>Note: when using &#8220;controlled discovery mode&#8221; you may need defining a new configuration entry upon deploying your extension to the target web application.</em></p>
<p>Upon execution and extension discovery Masonry will automatically populate sidebar, header bar and other extensible UI areas with corresponding elements. Every action (link) will point to custom extension-provided content.</p>
<p><a href="http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/10-extensions-ui/" rel="attachment wp-att-419"><img class="alignnone size-full wp-image-419" style="border:1px solid lightgray;" alt="10.extensions-ui" src="http://denisvuyka.files.wordpress.com/2012/12/10-extensions-ui.png?w=645"   /></a></p>
<p>This is the end of basic overview of extensibility in Masonry. In the second part I will be giving more information about areas that support extensibility in Masonry, classes and contracts that may be utilized when writing custom extensions, technical details on embedded resources and the process of mapping them at run time, and a lot more&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/400/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=400&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/4cJUPKA-zaQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/02-project-properties.png" medium="image">
			<media:title type="html">02.project-properties</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/01-webconfig.png" medium="image">
			<media:title type="html">01.webconfig</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/03-vstemplate.png" medium="image">
			<media:title type="html">03.vstemplate</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/05-extension-structure-expanded.png" medium="image">
			<media:title type="html">05.extension-structure-expanded</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/06-custom-extension.png" medium="image">
			<media:title type="html">06.custom-extension</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/07-custom-arearegistration.png" medium="image">
			<media:title type="html">07.custom-arearegistration</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/08-custom-sidebar-integration.png" medium="image">
			<media:title type="html">08.custom-sidebar-integration</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/11-extension-resources.png" medium="image">
			<media:title type="html">11.extension-resources</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/09-extension-binaries.png" medium="image">
			<media:title type="html">09.extension-binaries</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/12/10-extensions-ui.png" medium="image">
			<media:title type="html">10.extensions-ui</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2012/12/03/masonry-extensibility-part-1/</feedburner:origLink></item>
		<item>
		<title>Announcing Masonry public preview</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/ZxdxHzdYA9w/</link>
		<comments>http://denisvuyka.wordpress.com/2012/11/21/announcing-masonry-public-preview/#comments</comments>
		<pubDate>Wed, 21 Nov 2012 14:30:07 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Masonry]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=343</guid>
		<description><![CDATA[Today I&#8217;m happy to announce the public availability of my new project &#8220;Masonry&#8221;. Please note that this post is a high-level overview of the project and its major features. For the sake of simplicity technical details are omitted. Developer-oriented articles will be published separately. Introduction Social networks and corresponding UI/UX gains more and more attention. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=343&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I&#8217;m happy to announce the public availability of my new project &#8220;Masonry&#8221;. Please note that this post is a high-level overview of the project and its major features. For the sake of simplicity technical details are omitted. Developer-oriented articles will be published separately.</p>
<h1>Introduction</h1>
<p>Social networks and corresponding UI/UX gains more and more attention. Even big enterprise players are looking forward to embedding social and gamification features into their products these days. Most of the projects I&#8217;ve been involved with during this year had requirements for lightweight &#8220;socialization&#8221; of common business workflows, i.e. chats, timelines and data aggregation, comment systems, following/unfollowing, user profiles, etc. Most of the project prototyping I&#8217;ve observed or was part of during the year assumed Twitter/Facebook-like user experiences besides mandatory functionality requirements.</p>
<p>Masonry was born as an <a href="http://www.asp.net/mvc/mvc4" target="_blank">ASP.NET MVC4</a> starter kit (or template) to greatly reduce learning curve, time and development efforts required to start prototyping and building social-enabled web applications, or integrating social-enabled features into existing applications. It provides most common building blocks and allows startup or research teams concentrating on main application functionality rather than building social features from scratch.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/01-masonry-homepage.png"><img class="alignnone size-full wp-image-385" style="border:1px solid lightgray;" title="01.Masonry.HomePage" alt="Home Page" src="http://denisvuyka.files.wordpress.com/2012/11/01-masonry-homepage.png?w=645&#038;h=460" height="460" width="645" /></a></p>
<h1></h1>
<h1><span style="line-height:1.5em;">Overview</span></h1>
<p>Masonry is not a static template. Many frequently required and expected features are still being researched, analyzed and included into the roadmap. You should expect frequent updates that bring new blocks in the future.</p>
<p>The major set of features shipped with initial beta is as follows:</p>
<ul>
<li>Account registration with email confirmation/validation and reCaptcha support</li>
<li>Account settings and password management</li>
<li>Timeline and user posts (status updates)</li>
<li>Public profiles, following/unfollowing other users</li>
<li>Personal feeds and &#8220;twitterization&#8221; of content (account links, hash tags, etc.)</li>
<li>Comment system</li>
<li>Mentions and People hubs</li>
<li>Wiki-based help system with Markdown support</li>
<li>Extensibility support (single-assembly modules built with ASP.NET MVC4 template and deployed with xcopy)</li>
</ul>
<p>There&#8217;s also a supplementary content to aid development:</p>
<ul>
<li>Default demo database to get started instantly (SQL LocalDb)</li>
<li>SQL schema scripts to setup a new database</li>
<li>Visual Studio 2012 project template for creating custom extensions/modules with less efforts</li>
</ul>
<h1>Account Registration</h1>
<p>Account management is built on to of <a href="http://weblogs.asp.net/jgalloway/archive/2012/08/29/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates.aspx" target="_blank">SimpleMembership</a> provider by MS used in most of the WebMatrix projects these days. That allows having more flexible membership scenarios (i.e. support for external OAuth authentication models, Facebook/Twitter/LinkedIn integration without much efforts) and provides greatly refined SQL database schema compared to popular ASP.NET SQL Membership provider.</p>
<p>Registration form prevents cross-site request forgery (CSRF) out of box by utilizing ASP.NET MVC&#8217;s <a href="http://dotnetslackers.com/articles/aspnet/Protect-ASP-NET-MVC-3-Applications-Using-AntiForgery-Helpers.aspx" target="_blank">AntiForgeryToken</a> helpers.</p>
<p><a href="http://www.google.com/recaptcha" target="_blank">Google reCaptcha</a> is also preconfigured by default</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/02-masonry-register.png"><img class="alignnone  wp-image-362" style="border:1px solid #d3d3d3;" title="02.Masonry.Register" alt="Account Registration" src="http://denisvuyka.files.wordpress.com/2012/11/02-masonry-register.png?w=349&#038;h=450" height="450" width="349" /></a></p>
<p>In addition Masonry supports account validation and email validation. This feature when opted in through configuration allows automatically generating confirmation emails with links to confirm and enable newly created account.</p>
<h1>Signing in</h1>
<p>Similar to Registration form the LogOn one prevents cross-site request forgery (CSRF) attacks by default. All redirect URL links (used to redirect back to the requested content that requires authentication) are verified to be valid local addresses rather than external links.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/03-masonry-signin.png"><img class="alignnone  wp-image-366" style="border:1px solid #d3d3d3;" title="03.Masonry.SignIn" alt="Sign In" src="http://denisvuyka.files.wordpress.com/2012/11/03-masonry-signin.png?w=386&#038;h=286" height="286" width="386" /></a></p>
<h1>Timeline</h1>
<p>All authenticated users are automatically redirected to the Timeline. Similar to <a href="https://support.twitter.com/articles/164083-what-is-a-twitter-timeline" target="_blank">Twitter</a> it is a long stream showing all Posts from those you have chosen to follow, or your own posts with user comments. There are no paging controls on the Timeline, similar to Facebook new content is downloaded smoothly while you scroll down the page.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/05-masonry-timeline.png"><img class="alignnone size-full wp-image-369" style="border:1px solid lightgray;" title="05.Masonry.Timeline" alt="Timeline" src="http://denisvuyka.files.wordpress.com/2012/11/05-masonry-timeline.png?w=645&#038;h=416" height="416" width="645" /></a></p>
<p>All content is &#8220;twitterized&#8221; by default &#8211; all user account tags are turned into user profile links and point to Personal Feeds (see below), all hash tags are wrapped with hyperlinks redirecting to internal Search controller upon click. In addition all hash tags are enumerated in a separate area below the main post content.</p>
<p>There are at least 2 easy ways to post new content (i.e. status update) in Masonry:</p>
<ul>
<li>Inline editor box at the bottom of the Timeline</li>
<li>&#8220;New Post&#8221; button on the header bar and available on any page</li>
</ul>
<p>Image below demonstrates a dialog that appears when user presses &#8220;new post&#8221; button:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/15-masonry-statusupdate.png"><img class="alignnone size-full wp-image-388" style="border:1px solid lightgray;" title="15.Masonry.StatusUpdate" alt="Status Update" src="http://denisvuyka.files.wordpress.com/2012/11/15-masonry-statusupdate.png?w=645&#038;h=203" height="203" width="645" /></a></p>
<h1>Personal Feeds</h1>
<p>Masonry provides support for personal feeds &#8211; streams showing public posts by a specific user. There are several ways quickly accessing personal feed:</p>
<ul>
<li>User account name within the post header</li>
<li>User account tag within the post or comment content</li>
<li>Public profile dialog that pops up upon clicking user avatar</li>
<li>People or Mentions hub</li>
</ul>
<p>Upon navigation the sidebar control will automatically reflect the account opened:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/12-masonry-feed.png"><img class="alignnone size-full wp-image-380" style="border:1px solid lightgray;" title="12.Masonry.Feed" alt="Personal Feed" src="http://denisvuyka.files.wordpress.com/2012/11/12-masonry-feed.png?w=645&#038;h=427" height="427" width="645" /></a></p>
<h2>Public Profile Popups</h2>
<p>Masonry automatically wraps all user avatars with profile popups that allow following/unfollowing particular user, navigating to a personal feed or People hub to see followings/followers.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/11-masonry-profilepopup.png"><img class="alignnone size-full wp-image-381" style="border:1px solid lightgray;" title="11.Masonry.ProfilePopup" alt="Profile Popup" src="http://denisvuyka.files.wordpress.com/2012/11/11-masonry-profilepopup.png?w=645&#038;h=378" height="378" width="645" /></a></p>
<h1>Mentions</h1>
<p>Similar to <a href="https://support.twitter.com/articles/14023-what-are-replies-and-mentions" target="_blank">Twitter Mentions</a> Masonry provides support for streaming posts that &#8220;mention&#8221; current user &#8211; i.e. any post that has an account tag in the content. All Timeline features like profile popups, comments, personal feed navigation are automatically applied to Mentions stream as well.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/13-masonry-mentions.png"><img class="alignnone size-full wp-image-383" style="border:1px solid lightgray;" title="13.Masonry.Mentions" alt="Mentions" src="http://denisvuyka.files.wordpress.com/2012/11/13-masonry-mentions.png?w=645"   /></a></p>
<h1>People Hub</h1>
<p>To simplify intranet/corporate scenarios Masonry provides a special feature &#8220;People Hub&#8221; that allows newly registered users discovering already existing members (to follow, view personal feeds, etc.). People hub lists existing uses with basic public information (see Account Settings section below) and main statistics like number of posts, followers or users being followed by a particular user. It is possible following/unfollowing users directly from the People hub:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/14-masonry-people.png"><img class="alignnone size-full wp-image-387" style="border:1px solid lightgray;" title="14.Masonry.People" alt="People Hub" src="http://denisvuyka.files.wordpress.com/2012/11/14-masonry-people.png?w=645&#038;h=284" height="284" width="645" /></a></p>
<p><em>Note: it may be possible wiring People hub with additional logic and business rules, like showing/filtering users by department, etc.</em></p>
<h1>Account Settings</h1>
<p>Users can access their account and profile settings from the header bar. Besides account editing Settings drop down menu provides access to Help system, About information and allows signing out as shown on the picture below:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/04-masonry-settings.png"><img class="alignnone size-full wp-image-371" style="border:1px solid lightgray;" title="04.Masonry.Settings" alt="Settings" src="http://denisvuyka.files.wordpress.com/2012/11/04-masonry-settings.png?w=645"   /></a></p>
<p>There are no mandatory fields within account settings section. All public fields are optional: photo, display name, location, website and bio. If current browser supports HTML5 File API user will be able to preview changes to the picture live without uploading any data to server.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/06-masonry-accountsettings.png"><img class="alignnone size-full wp-image-373" style="border:1px solid lightgray;" title="06.Masonry.AccountSettings" alt="Account Settings" src="http://denisvuyka.files.wordpress.com/2012/11/06-masonry-accountsettings.png?w=645&#038;h=482" height="482" width="645" /></a></p>
<p>Both &#8220;Account settings&#8221; and &#8220;Change password&#8221; forms provide lightweight unobtrusive alerts to indicate update results.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/07-masonry-changepassword.png"><img class="alignnone  wp-image-374" style="border:1px solid lightgray;" title="07.Masonry.ChangePassword" alt="Change Password" src="http://denisvuyka.files.wordpress.com/2012/11/07-masonry-changepassword.png?w=516&#038;h=305" height="305" width="516" /></a></p>
<h1>Comment system</h1>
<p>For extensibility and flexibility purposes Comment system in Masonry is separated from status updates (posts). To avoid user distraction comment areas are collapsed by default:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/09-masonry-post01.png"><img class="alignnone size-full wp-image-376" style="border:1px solid lightgray;" title="09.Masonry.Post01" alt="Generic Post" src="http://denisvuyka.files.wordpress.com/2012/11/09-masonry-post01.png?w=645"   /></a></p>
<p>Moreover comments are loaded asynchronously upon expanding &#8220;Comments&#8221; area. That reduces initial page memory footprint and speeds up main content loading.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/10-masonry-post02.png"><img class="alignnone size-full wp-image-377" style="border:1px solid lightgray;" title="10.Masonry.Post02" alt="Post Comments" src="http://denisvuyka.files.wordpress.com/2012/11/10-masonry-post02.png?w=645&#038;h=213" height="213" width="645" /></a></p>
<p>The author of the post has possibility removing posts with corresponding comments:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/16-masonry-removepost.png"><img class="alignnone size-full wp-image-378" style="border:1px solid lightgray;" title="16.Masonry.RemovePost" alt="Removing Posts" src="http://denisvuyka.files.wordpress.com/2012/11/16-masonry-removepost.png?w=645&#038;h=304" height="304" width="645" /></a></p>
<p>Similar to Facebook Masonry supports displaying posts in separate pages. Every post that has more than 10 comments is automatically opened in a separate view.</p>
<h1>Help System, Markdown Support</h1>
<p>Help system is a separate block within Masonry that provides Wiki-like experience and powered by <a href="http://en.wikipedia.com/wiki/Markdown" target="_blank">Markdown</a> syntax.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/08-masonry-help.png"><img class="alignnone size-full wp-image-390" style="border:1px solid lightgray;" title="08.Masonry.Help" alt="Help System with Markdown" src="http://denisvuyka.files.wordpress.com/2012/11/08-masonry-help.png?w=645&#038;h=495" height="495" width="645" /></a></p>
<p>Underlying Help Controller maps physical &#8220;.md&#8221; files automatically, it is possible updating Markdown content with a running application:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/20-masonry-helpcontent.png"><img class="alignnone size-full wp-image-391" style="border:1px solid lightgray;" title="20.Masonry.HelpContent" alt="Help Content" src="http://denisvuyka.files.wordpress.com/2012/11/20-masonry-helpcontent.png?w=645"   /></a></p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/18-masonry-markdown.png"><img class="alignnone size-full wp-image-392" style="border:0;" title="18.Masonry.Markdown" alt="Markdown syntax" src="http://denisvuyka.files.wordpress.com/2012/11/18-masonry-markdown.png?w=645"   /></a></p>
<h1>Extensibility and Modules</h1>
<p>Masonry utilizes <a href="http://mef.codeplex.com/" target="_blank">Managed Extensibility Framework (MEF)</a> and <a href="http://www.codeguru.com/csharp/.net/net_asp/mvc/article.php/c20227/Using-Areas-in-ASPNET-MVC-Application.htm" target="_blank">ASP.NET MVC Areas</a> to provide rich extensibility support. External extensions are discovered and loaded automatically with zero code configuration and prerequisites within main application. All extensions are represented by a single-file assemblies containing a fully-fledged ASP.NET MVC4 pieces together with static content, styleshees and javascript files.</p>
<p>Upon new extension library discovery Masonry automatically augments UI with additional entities taken from the corresponding plugin:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/17-masonry-extensions.png"><img class="alignnone size-full wp-image-393" style="border:1px solid lightgray;" title="17.Masonry.Extensions" alt="Extensions" src="http://denisvuyka.files.wordpress.com/2012/11/17-masonry-extensions.png?w=645"   /></a></p>
<p>Every custom extension can provide extra elements for header bar (with grouping support), sidebar, may provide user with additional content. With Masonry it becomes extremely easy extending standard UI and functionality.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2012/11/19-masonry-dummyextension.png"><img class="alignnone size-full wp-image-394" style="border:1px solid lightgray;" title="19.Masonry.DummyExtension" alt="Dummy Extension" src="http://denisvuyka.files.wordpress.com/2012/11/19-masonry-dummyextension.png?w=645&#038;h=319" height="319" width="645" /></a></p>
<p>In order to greatly simplify development process Masonry provides a special &#8220;Masonry Extension&#8221; project template that can be used with Visual Studio 2012. This project template takes care of project structure generation, enables Razor compilation and syntax highlighting for the generated class library project and contains all extensibility/routing settings automatically preconfigured.</p>
<p><strong>Note: there will be a separate article that dives deep into Masonry extensibility, tooling and plugin development. </strong></p>
<p>That&#8217;s pretty it. Feel free to grab the code, play with it, request features that are important, file issues&#8230; everything is in the <a href="https://github.com/DenisVuyka/Masonry" target="_blank">GitHub repository</a>.</p>
<p>Thanks for following.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=343&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/ZxdxHzdYA9w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2012/11/21/announcing-masonry-public-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/01-masonry-homepage.png" medium="image">
			<media:title type="html">01.Masonry.HomePage</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/02-masonry-register.png" medium="image">
			<media:title type="html">02.Masonry.Register</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/03-masonry-signin.png" medium="image">
			<media:title type="html">03.Masonry.SignIn</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/05-masonry-timeline.png" medium="image">
			<media:title type="html">05.Masonry.Timeline</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/15-masonry-statusupdate.png" medium="image">
			<media:title type="html">15.Masonry.StatusUpdate</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/12-masonry-feed.png" medium="image">
			<media:title type="html">12.Masonry.Feed</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/11-masonry-profilepopup.png" medium="image">
			<media:title type="html">11.Masonry.ProfilePopup</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/13-masonry-mentions.png" medium="image">
			<media:title type="html">13.Masonry.Mentions</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/14-masonry-people.png" medium="image">
			<media:title type="html">14.Masonry.People</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/04-masonry-settings.png" medium="image">
			<media:title type="html">04.Masonry.Settings</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/06-masonry-accountsettings.png" medium="image">
			<media:title type="html">06.Masonry.AccountSettings</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/07-masonry-changepassword.png" medium="image">
			<media:title type="html">07.Masonry.ChangePassword</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/09-masonry-post01.png" medium="image">
			<media:title type="html">09.Masonry.Post01</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/10-masonry-post02.png" medium="image">
			<media:title type="html">10.Masonry.Post02</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/16-masonry-removepost.png" medium="image">
			<media:title type="html">16.Masonry.RemovePost</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/08-masonry-help.png" medium="image">
			<media:title type="html">08.Masonry.Help</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/20-masonry-helpcontent.png" medium="image">
			<media:title type="html">20.Masonry.HelpContent</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/18-masonry-markdown.png" medium="image">
			<media:title type="html">18.Masonry.Markdown</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/17-masonry-extensions.png" medium="image">
			<media:title type="html">17.Masonry.Extensions</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2012/11/19-masonry-dummyextension.png" medium="image">
			<media:title type="html">19.Masonry.DummyExtension</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2012/11/21/announcing-masonry-public-preview/</feedburner:origLink></item>
		<item>
		<title>I’m back to blogging</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/sr3OhS2E46k/</link>
		<comments>http://denisvuyka.wordpress.com/2012/11/20/im-back-to-blogging/#comments</comments>
		<pubDate>Tue, 20 Nov 2012 11:02:52 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=340</guid>
		<description><![CDATA[After a long pause I&#8217;m finally back to blogging. This year was a very productive one, I&#8217;ve been involved in a series of awesome R&#38;D projects related to Silverlight, ASP.NET MVC, Mono, etc. Lots of material to be turned into useful articles. During this week there will be an additional announcement for the next big [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=340&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>After a long pause I&#8217;m finally back to blogging. This year was a very productive one, I&#8217;ve been involved in a series of awesome R&amp;D projects related to Silverlight, ASP.NET MVC, Mono, etc. Lots of material to be turned into useful articles.</p>
<p>During this week there will be an additional announcement for the next big thing from my side &#8211; Masonry. That is a starter kit for social-enabled extensible MVC4 applications that enters public preview and going to land into my <a title="Masonry" href="https://github.com/DenisVuyka/Masonry" target="_blank">GitHub</a> repository soon.</p>
<p>More information and posts are on the way.</p>
<p>Thanks for following me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/340/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=340&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/sr3OhS2E46k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2012/11/20/im-back-to-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2012/11/20/im-back-to-blogging/</feedburner:origLink></item>
		<item>
		<title>IL.View October 2011 Features.</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/eY9uR6AwGuk/</link>
		<comments>http://denisvuyka.wordpress.com/2011/11/01/il-view-october-2011-features/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 20:17:05 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=324</guid>
		<description><![CDATA[October 2011 was a very busy month for IL.View in terms of new features  introduced. The major features that are worth mentioning in this recap is as following: Automatic updates for OOB (out-of-browser) scenario Rich browsing for Silverlight packages (.xap files) Platform identifiers for assemblies Version numbers for assembly references Content preview for some file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=324&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>October 2011 was a very busy month for IL.View in terms of new features  introduced.</p>
<p>The major features that are worth mentioning in this recap is as following:</p>
<ul>
<li>Automatic updates for OOB (out-of-browser) scenario</li>
<li>Rich browsing for Silverlight packages (.xap files)</li>
<li>Platform identifiers for assemblies</li>
<li>Version numbers for assembly references</li>
<li>Content preview for some file types (xml/xaml/ClientConfig/jpg/png)</li>
<li>Displaying and expanding embedded resource assemblies (for Silverlight assemblies only) by pressing Space bar</li>
<li>Preview of embedded resources (xml/xaml/ClientConfig/jpg/png) by pressing Space bar</li>
<li>User-defined reference paths for automatic assembly resolution (similar to Visual Studio &#8220;reference paths&#8221; feature)</li>
<li>Lot of stabilization and improvements for underlying infrastructures</li>
<li>New assembly versioning schema based on &#8220;YYYY.MM.DD.{Build}&#8221; format</li>
</ul>
<h2><strong>Automatic Updates</strong></h2>
<p>Live preview builds that are continuously  pushed to the <a title="IL.View Project Page" href="denisvuyka.github.com/IL.View" target="_blank">project page</a> got support for automatic updates. Users that are using the full-trust OOB (out-of-browser) scenario will get the application up-to-date automatically upon every launch.</p>
<h2>Browsing Silverlight Packages</h2>
<div>IL.View now provides rich capabilities for browsing Silverlight packages (&#8220;.xap&#8221; files). Users are now able to drag and drop &#8220;.xap&#8221; package directly onto the application surface and view package contents. Package browsing includes full support for content and assembly navigation in the same way it is done for a regular assembly.</div>
<div><a href="http://denisvuyka.files.wordpress.com/2011/11/image01_xapbrowsing.png"><img class="alignnone size-full wp-image-326" title="Image01_XapBrowsing" src="http://denisvuyka.files.wordpress.com/2011/11/image01_xapbrowsing.png?w=645" alt="Silverlight Package Browsing"   /></a></div>
<div></div>
<h2>Platform identifiers for assemblies</h2>
<p>As application is moving forward having a single list of assemblies within the browser the platform identifiers were added to assembly names. Silverlight assemblies will be marked as &#8220;(SL)&#8221; while .NET assemblies will be marked as &#8220;.NET&#8221;. Later on identifiers will be extended to display the actual version of the corresponding framework.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image02_platformidentifiers.png"><img class="alignnone size-full wp-image-327" title="Image02_PlatformIdentifiers" src="http://denisvuyka.files.wordpress.com/2011/11/image02_platformidentifiers.png?w=645" alt="Platform Identifiers"   /></a></p>
<h2>Version numbers for assembly references</h2>
<p>To improve dependency analysis process the application provides version numbers for assembly references within the reference title. That allows to avoid unnecessary decompilation or assembly resolution calls when it is only the version of reference the user is interested in.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image03_referenceversionnumbers.png"><img class="alignnone size-full wp-image-328" title="Image03_ReferenceVersionNumbers" src="http://denisvuyka.files.wordpress.com/2011/11/image03_referenceversionnumbers.png?w=645" alt="Version numbers for assembly references"   /></a></p>
<h2>Content Preview</h2>
<p>It is now possible to view the content of the files that are frequently added to the &#8220;.xap&#8221; files. IL.View provides support to show xml-based files (xml, xaml, ClientConfig) with syntax colouring:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image04_contentpreview_xaml.png"><img class="alignnone size-full wp-image-329" title="Image04_ContentPreview_xaml" src="http://denisvuyka.files.wordpress.com/2011/11/image04_contentpreview_xaml.png?w=645" alt="Content Preview of xml-based files"   /></a></p>
<div> It is also possible to preview the content of image files in the formats supported by Silverlight (.png and .jpg). Images are displayed in real sizes.</div>
<div><a href="http://denisvuyka.files.wordpress.com/2011/11/image05_contentpreview_png.png"><img class="alignnone size-full wp-image-330" title="Image05_ContentPreview_png" src="http://denisvuyka.files.wordpress.com/2011/11/image05_contentpreview_png.png?w=645" alt="Content preview for image files"   /></a></div>
<div></div>
<h2>Browsing embedded resource assemblies</h2>
<p>October version of IL.View brings out support for embedded resource assemblies navigation. This feature is however limited to only Silverlight assemblies. A new node called &#8220;Resources&#8221; will appear next to every main module of the assembly. Resource assemblies can be expanded like regular assemblies and their xml/image-based content can be previewed by pressing a Space bar on the selected item.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image06_embeddedresources.png"><img class="size-full wp-image-331 alignnone" title="Image06_EmbeddedResources" src="http://denisvuyka.files.wordpress.com/2011/11/image06_embeddedresources.png?w=645" alt="Browsing embedded resources"   /></a></p>
<h2> Reference Paths</h2>
<p>Application now provides a way to define common reference paths that should be used for assembly lookup during decompilation and reference resolution. There will be a new options panel called &#8220;Reference Paths&#8221; within the &#8220;Settings&#8221; page. The user is able to add or remove a path to any directory containing .NET or Silverlight assemblies that needs to be checked during decompilation process. Every single reference path can be configured to use recursive search, meaning that the entire folder tree (including all sub-folders) is going to be inspected. However recursive search is a time consuming event and users discouraged to use it against deep nested folders.</p>
<p>Every time an external assembly is found the path to the file is cached. This gives much better performance during next sessions.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image07_referencepaths.png"><img class="alignnone size-full wp-image-336" title="Image07_ReferencePaths" src="http://denisvuyka.files.wordpress.com/2011/11/image07_referencepaths.png?w=645" alt="Reference Paths"   /></a></p>
<p>This feature is however limited to full-trust mode running on Windows machines. &#8220;Reference Paths&#8221; section won&#8217;t be displayed when running IL.View on non-Windows computers (i.e. MacOs).</p>
<h2>New Versioning Schema</h2>
<p>New assembly versioning schema was applied based on &#8220;YYYY.MM.DD.{Build}&#8221; format. The version number can now be checked at the &#8220;About&#8221; page:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/11/image08_versioningschema.png"><img class="alignnone size-full wp-image-337" title="Image08_VersioningSchema" src="http://denisvuyka.files.wordpress.com/2011/11/image08_versioningschema.png?w=645" alt="Versioning Schema"   /></a></p>
<p>Besides new features there was a lot of stabilization work performed.</p>
<p>More and more features are being registered within the <a href="https://github.com/DenisVuyka/IL.View/issues?sort=created&amp;direction=desc&amp;state=open" target="_blank">issue tracking system</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=324&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/eY9uR6AwGuk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2011/11/01/il-view-october-2011-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image01_xapbrowsing.png" medium="image">
			<media:title type="html">Image01_XapBrowsing</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image02_platformidentifiers.png" medium="image">
			<media:title type="html">Image02_PlatformIdentifiers</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image03_referenceversionnumbers.png" medium="image">
			<media:title type="html">Image03_ReferenceVersionNumbers</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image04_contentpreview_xaml.png" medium="image">
			<media:title type="html">Image04_ContentPreview_xaml</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image05_contentpreview_png.png" medium="image">
			<media:title type="html">Image05_ContentPreview_png</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image06_embeddedresources.png" medium="image">
			<media:title type="html">Image06_EmbeddedResources</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image07_referencepaths.png" medium="image">
			<media:title type="html">Image07_ReferencePaths</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/11/image08_versioningschema.png" medium="image">
			<media:title type="html">Image08_VersioningSchema</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2011/11/01/il-view-october-2011-features/</feedburner:origLink></item>
		<item>
		<title>IL.View beta builds are now available online</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/O3tqY7Kat00/</link>
		<comments>http://denisvuyka.wordpress.com/2011/10/27/il-view-beta-builds-are-now-available-online/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 16:36:54 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Cecil]]></category>
		<category><![CDATA[Reflector]]></category>

		<guid isPermaLink="false">http://denisvuyka.wordpress.com/?p=319</guid>
		<description><![CDATA[Today I&#8217;m glad to announce that thanks to Github &#8220;project pages&#8221; feature I am able to host beta builds of &#8220;IL.View&#8221; that can be consumed both in browswer and out of browser. You can browse and/or install IL.View by navigating this link: http://denisvuyka.github.com/IL.View &#160; What&#8217;s new in the deployed build: I have added an experimental support [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=319&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I&#8217;m glad to announce that thanks to Github &#8220;project pages&#8221; feature I am able to host beta builds of &#8220;IL.View&#8221; that can be consumed both in browswer and out of browser.</p>
<p>You can browse and/or install IL.View by navigating this link: <a href="http://denisvuyka.github.com/IL.View" target="_blank">http://denisvuyka.github.com/IL.View</a></p>
<p>&nbsp;</p>
<p><strong>What&#8217;s new in the deployed build:</strong></p>
<p>I have added an experimental support for Silverlight &#8220;.xap&#8221; packages. It will be possible to drop a &#8220;.xap&#8221; file onto IL.View surface and navigate it&#8217;s content within assembly browser like shown below:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/10/ilviewxapsupport.png"><img class="alignnone size-full wp-image-320" title="ILViewXapSupport" src="http://denisvuyka.files.wordpress.com/2011/10/ilviewxapsupport.png?w=645" alt=""   /></a></p>
<p>Just have to note that the implementation of &#8220;.xap&#8221; browsing is in its early stage and is not feature complete.</p>
<p><strong>What&#8217;s on the way:</strong></p>
<p>Many features related to MEF framework. I&#8217;m a greatest fan of MEF and use it every day in the production. There&#8217;s some tooling that I would like to integrate into IL.View like displaying all the MEF imports/exports for the particular assembly, etc. More content viewers are pending (xaml/xml, images, etc.)</p>
<p><strong>Suggestions, issues and feedbacks?</strong></p>
<p>I would really appreciate to get them registered here: <a href="https://github.com/DenisVuyka/IL.View/issues?sort=created&amp;direction=desc&amp;state=open" target="_blank">IL.View Issues</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=319&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/O3tqY7Kat00" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2011/10/27/il-view-beta-builds-are-now-available-online/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/10/ilviewxapsupport.png" medium="image">
			<media:title type="html">ILViewXapSupport</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2011/10/27/il-view-beta-builds-are-now-available-online/</feedburner:origLink></item>
		<item>
		<title>IL.View: .NET Reflector OSS Alternative. In Silverlight!</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/jLSraYSy168/</link>
		<comments>http://denisvuyka.wordpress.com/2011/04/27/il-view-net-reflector-oss-alternative-in-silverlight/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 09:59:00 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Cecil]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Reflector]]></category>

		<guid isPermaLink="false">https://denisvuyka.wordpress.com/2011/04/27/il-view-net-reflector-oss-alternative-in-silverlight/</guid>
		<description><![CDATA[Today I would like to announce a new project I’ve been working on to contribute to the .NET community. The project is called “IL.View” and it is a .NET Reflector alternative made in Silverlight 4 as an Out-of-Browser Silverlight Application. “IL.View” sources will be published under the MIT (X11) license to the following GitHub repository [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=310&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I would like to announce a new project I’ve been working on to contribute to the .NET community.</p>
<p>The project is called “<strong>IL.View</strong>” and it is a .NET Reflector alternative made in <strong>Silverlight 4</strong> as an Out-of-Browser Silverlight Application. “IL.View” sources will be published under the MIT (X11) license to the following <strong><a href="https://github.com/DenisVuyka/IL.View" target="_blank">GitHub</a></strong> repository in the next couple of hours. As soon as Google fixes <a href="http://code.google.com/p/googleappengine/issues/detail?id=4838" target="_blank">“If-Modified-Since” bug</a> the online version of “IL.View” will hopefully become immediately available with “Google App Engine”.</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/04/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-color:initial;border-style:initial;border-width:0;" title="image" src="http://denisvuyka.files.wordpress.com/2011/04/image_thumb.png?w=649&#038;h=447" alt="image" width="649" height="447" border="0" /></a></p>
<h3></h3>
<h3>Background</h3>
<p>I’ve started planning this project approximately 2 weeks before infamous Red Gate <a href="http://www.red-gate.com/products/dotnet-development/reflector/announcement" target="_blank">announcement</a> that “.NET Reflector” goes commercial way and so approximately 2 weeks before an awesome OSS alternative appeared: <a href="http://wiki.sharpdevelop.net/ilspy.ashx" target="_blank"><strong>ILSpy</strong></a><strong>. </strong>So “IL.View” background is not an emotional move and is not going to be abandoned with the ILSpy arrival (like <a href="https://github.com/jcdickinson/Monoflector" target="_blank">Monoflector</a> for instance).</p>
<p>I am a Silverlight developer and my team does a lot of really crazy stuff related to Silverlight, Azure, REST and OData. During the “demo” and “testing” periods we have to deal with publishing a lot – different versions of Windows Servers, various IIS versions, different .NET frameworks at server sides, multiple remote desktops and issue addressing, etc.</p>
<p>One of the issues I’ve experienced in the past (and according to Google I’m not alone with that) is the process of brining .NET Reflector to server side in order to have a quick look at my assemblies. You should be able to download it from somewhere for every server (of course if you have rights to download and install anything), you need to have a proper .NET Framework installed on server side (Reflector itself requires .NET 3.5 or later to be present), etc.</p>
<p>Actually the very same problem may be valid for <strong>ILSpy</strong> as well. If it is compiled for .NET 4.0 framework you cannot use it at server having .NET 3.x only. So the idea of having a Silverlight version hosted in the company intranet (or in the cloud) was very appealing as it could save time and reduce efforts.</p>
<p>Another feature I was dreaming of is “Remote Assembly Cache” or the possibility to decompile .NET assembly without binding to local machine – even without having any .NET framework installed at all. For example having a remote web service (pure REST, OData, whatever) to resolve .NET dependencies upon being needed. This could open a brand new set of scenarios for me. Having no bindings to local machine could for example allow Mac users to disassemble .NET assemblies easily and drilling down to “mscorlib” or any other part of .NET framework without difficulties (this feature is in progress for “IL.VIew” and will be available later on).</p>
<p>Third major feature I was trying to address is extensibility. NET Reflector always deserved better extensibility support and more complex addins from both code and presentation points of view.</p>
<h3></h3>
<h3>Overview</h3>
<p>As I’ve mentioned above “IL.View” is an OOB (Out-of-browser) Silverlight 4 application (Full Trust). It supports drag and drop for .NET assemblies from the desktop or Windows Explorer and provides a local cache of assemblies that were loaded (with the possibility extending the cache manually). “Assembly Browser” control supports “lazy loading” so you get disassembling process on demand. There’s a native “IL” formatting and “C#” one (in progress).</p>
<p>There are several ways “IL.View” can be deployed and used:</p>
<ul>
<li>Online (cloud, web site)</li>
<li>On-premise (intranet)</li>
<li>Local installation</li>
</ul>
<ul>Some features that are in progress will allow “IL.View” users to get maximum benefit of both cloud and on-premise deployments.</ul>
<h4>Mono.Cecil</h4>
<p>“IL.View” is not using .NET Reflection. It is being build on the top of Silverlight port of “<strong><a href="https://github.com/jbevain/cecil" target="_blank">Mono.Cecil</a></strong>”. This is a tremendous project and I would like to thank <a href="https://github.com/jbevain" target="_blank"><strong>Jb Evain</strong></a><strong> </strong>for his work. Thanks to Cecil I got an opportunity dealing with both .NET and Silverlight assembly inspection within Silverlight runtime.</p>
<p>Despite the asynchronous nature of Silverlight the Cecil integration went well. “IL.View” provides its own dependency resolution facility that is capable of properly locking the UI and waiting for the user to perform actions:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/04/snaghtml103147e.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-color:initial;border-style:initial;border-width:0;margin:0;" title="SNAGHTML103147e" src="http://denisvuyka.files.wordpress.com/2011/04/snaghtml103147e_thumb.png?w=638&#038;h=463" alt="SNAGHTML103147e" width="638" height="463" border="0" /></a></p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/04/snaghtml14fc8c1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-color:initial;border-style:initial;border-width:0;margin:0;" title="SNAGHTML14fc8c1" src="http://denisvuyka.files.wordpress.com/2011/04/snaghtml14fc8c1_thumb.png?w=638&#038;h=463" alt="SNAGHTML14fc8c1" width="638" height="463" border="0" /></a></p>
<h4></h4>
<h4></h4>
<h4>ICSharpCode Decompiler and NRefactory for Silverlight</h4>
<p>The biggest challenge for me was “<strong>C#</strong>” output support. Not to reinvent a wheel I’ve decided to stick to <strong>ICSharpCode.Decompiler</strong> and <strong>ICSharpCode.NRefactory</strong> projects that are the part of <strong>ILSpy</strong>.  The only problem I came across is the absence of Silverlight ports for the mentioned projects. So I’ve took the challenge to port them to Silverlight myself. You can find the sources at my <a href="https://github.com/DenisVuyka/ILSpy" target="_blank">GitHub repository</a>. First attempts were quite tricky, but thanks to the ILSpy team the original codebase becomes more and more “portable-friendly”.</p>
<p>As a result I have managed to provide C# output based on ILSpy libraries:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2011/04/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-color:initial;border-style:initial;border-width:0;margin:0;" title="image" src="http://denisvuyka.files.wordpress.com/2011/04/image_thumb1.png?w=733&#038;h=432" alt="image" width="733" height="432" border="0" /></a></p>
<h4></h4>
<h4>JetPack Theme</h4>
<p>“IL.View” UI is based on the great “<strong><a href="http://timheuer.com/blog/archive/2010/09/09/silverlight-jetpack-theme-released.aspx" target="_blank">JetPack Theme</a></strong>”. However I had to provide a set of bugfixes for templates and styles in order to make some of the components look properly and behave as expected.</p>
<h3></h3>
<h3>Notes</h3>
<p>The project is still in its early stage but is going to evolve rapidly. There’s a huge backlog of features and roadmap will be announced later on. “IL.View” does not compete with <strong>ILSpy</strong> and I would love to contribute eventually to both .NET Reflector alternatives in the nearest future.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=310&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/jLSraYSy168" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2011/04/27/il-view-net-reflector-oss-alternative-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/04/snaghtml103147e_thumb.png" medium="image">
			<media:title type="html">SNAGHTML103147e</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/04/snaghtml14fc8c1_thumb.png" medium="image">
			<media:title type="html">SNAGHTML14fc8c1</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2011/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2011/04/27/il-view-net-reflector-oss-alternative-in-silverlight/</feedburner:origLink></item>
		<item>
		<title>VS 2010 bug related to Silverlight 4.0 compilation</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/LNZWGE_QUoY/</link>
		<comments>http://denisvuyka.wordpress.com/2010/10/08/vs-2010-bug-related-to-silverlight-4-0-compilation/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 07:52:00 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Silverlight 4]]></category>
		<category><![CDATA[VS 2010]]></category>
		<category><![CDATA[XmlnsDefinitionAttribute]]></category>

		<guid isPermaLink="false">https://denisvuyka.wordpress.com/2010/10/08/vs-2010-bug-related-to-silverlight-4-0-compilation/</guid>
		<description><![CDATA[Some time ago I came across the problem of compiling Silverlight 4.0 with Visual Studio 2010 when using XmlnsDefinitionAttribute attribute. I have reported the problem to Microsoft but for the time of writing this post I haven’t yet received confirmation of the bug. However more and more people around me start to experience the very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=284&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p align="justify">Some time ago I came across the problem of compiling Silverlight 4.0 with Visual Studio 2010 when using <a href="http://msdn.microsoft.com/en-us/library/system.windows.markup.xmlnsdefinitionattribute%28VS.95%29.aspx" target="_blank">XmlnsDefinitionAttribute</a> attribute. I have reported the problem to Microsoft but for the time of writing this post I haven’t yet received confirmation of the bug. However more and more people around me start to experience the very same problem with VS 2010 so I’ve decided to publish some details towards the problem as well as possible workarounds that can be used until the bug is confirmed and some sort of hotfix is available.</p>
<p align="justify">The problem is that under some specific circumstances Visual Studio 2010 will fail compiling Silverlight 4 assembly if it refers to any other assembly via xmlns mapping in the root of the XAML.</p>
<p>Here you can find a sample solution that addresses this problem: <a href="http://dl.dropbox.com/u/5260674/Wordpress/VS2010/VSBuildBug.zip" target="_blank">VSBuildBug</a>.</p>
<p>Here’s the brief overview of the sample code:</p>
<p>1. Silverlight 4.0 assembly “<strong>SharedComponents</strong>” contains a User Control called “SharedControl”</p>
<p>2. The assembly “<strong>SharedComponents</strong>” maps one of its namespaces to an Uri (in my case it is “<strong><a href="http://denisvuyka.wordpress.com/vsbugs" rel="nofollow">http://denisvuyka.wordpress.com/vsbugs</a></strong>”)</p>
<p>3. Silverlight application “<strong>VSBuildBug</strong>” references “<strong>SharedComponents</strong>” assembly</p>
<p>4. Application contains a “<strong>MainForm</strong>” that is declared my means of the namespace mapping: <strong>&lt;shared:UserControl xmlns:shared=”http://denisvuyka.wordpress.com/vsbugs”…</strong></p>
<p>When you open the solution attached with VS 2010 and try compiling it you will receive the following error:</p>
<p>“<strong><em>The type or namespace ‘SharedControl’ could not be found (are you missing a using directive or an assembly reference?</em></strong>” (see the screenshot below)</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/12/clip_image002.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="clip_image002" border="0" alt="clip_image002" src="http://denisvuyka.files.wordpress.com/2010/12/clip_image002_thumb.jpg?w=640&#038;h=62" width="640" height="62" /></a></p>
<p align="justify">However theoretically everything should compile without any problem. Some of the guys I’ve contacted towards this problem just gave up using xml namespace mappings thinking that the problem is in Silverlight itself but it’s wrong. This use case is absolutely correct and can be compiled.</p>
<p align="justify">The first workaround is calling “Build – Rebuild solution” several times in a row. At some stage you will receive “successful compilation” result and after that you will stop getting errors both for “Build” and “Rebuild”. However everything will be ok until the “Build – Clean solution” call or until you get a brand new version of the solution from the source control for example. Also different versions of Windows require different number of rebuild cycles. I didn’t bother figuring out the correct numbers, I can only confirm that on Windows 7 you may need about 3-4 “rebuild” calls while Windows XP may require 5+ “rebuild” calls.</p>
<p align="justify">After you made it compile you can reproduce the problem any time again. Just call “Build – Clean” solution and try “building” or “rebuilding” it again. The compilation problem will come back and you may need repeating the “rebuild” cycle one more time.</p>
<p align="justify">I’ve decided to go further with my investigation as I was wondering why TFS builds do not fail under the same conditions. I’ve ended up with a more reliable solution that I am using nowadays – <strong>msbuild</strong> tool.</p>
<p align="justify">If you unpack my solution once again and compile it from the VS command prompt using msbuild (just “<strong>msbuild VSBuildBug.sln</strong>”) you will never get an error. You won’t get errors calling “Build – Clean” solution and then using msbuild to build it as well.</p>
<p align="justify">So the second and most reliable solution is using msbuild tool to produce a solution. In case of avoiding full cleanups with “Build – Clean” solution developer may need calling msbuild only once getting a brand new version of codebase from TFS.</p>
<p align="justify">After finding a reliable workaround I’ve decided to go deeper into the details and see why auto-generated code is not compiling. </p>
<p align="justify">I’ve opened “<strong>MainPage.g.i.cs</strong>” with Visual Studio to get notifications when it is changed and to have an opportunity to see how it was changed. After a couple of experiments I’ve noticed that first two compilations (and code generations) does not produce the very same code behind actually.</p>
<p align="justify">Steps to reproduce:</p>
<p align="justify"><strong>Step 1. Open demo solution and call “Build – Clean solution”</strong></p>
<p align="justify"><strong>Step 2. Call “Build – Rebuild”</strong></p>
<p align="justify">You should see the same error I’ve described earlier:</p>
<p align="justify"><a href="http://denisvuyka.files.wordpress.com/2010/12/clip_image0024.jpg"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="clip_image002[4]" border="0" alt="clip_image002[4]" src="http://denisvuyka.files.wordpress.com/2010/12/clip_image0024_thumb.jpg?w=640&#038;h=23" width="640" height="23" /></a></p>
<p>If you open the auto-generated “MainPage.g.i.cs” you should notice that “MainPage” inherits “SharedControl” but no references to external component library are present (neither within “using” clause nor type declaration). See the screenshot below:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/10/clip_image0026.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="clip_image002[6]" border="0" alt="clip_image002[6]" src="http://denisvuyka.files.wordpress.com/2010/10/clip_image0026_thumb.jpg?w=307&#038;h=320" width="307" height="320" /></a></p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/10/clip_image0028.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="clip_image002[8]" border="0" alt="clip_image002[8]" src="http://denisvuyka.files.wordpress.com/2010/10/clip_image0028_thumb.jpg?w=471&#038;h=144" width="471" height="144" /></a></p>
<p>I completely agree that this code should not compile even theoretically and Visual Studio gives me the correct output stating about missing references.</p>
<p><strong>Step 3. Call “Build – Rebuild” for the second time.</strong></p>
<p>You should get the very same compilation error again:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/12/clip_image00210.jpg"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="clip_image002[10]" border="0" alt="clip_image002[10]" src="http://denisvuyka.files.wordpress.com/2010/12/clip_image00210_thumb.jpg?w=640&#038;h=23" width="640" height="23" /></a></p>
<p align="justify">However if you have “MainPage.g.i.cs” file opened in VS 2010 you will get a notification that its content was changed. Alternatively you can locate this file and open it manually.</p>
<p>After the second rebuild the type definition looks like the following:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/10/clip_image00212.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="clip_image002[12]" border="0" alt="clip_image002[12]" src="http://denisvuyka.files.wordpress.com/2010/10/clip_image00212_thumb.jpg?w=515&#038;h=184" width="515" height="184" /></a></p>
<p align="justify">As you can see now VS generated another version of code behind that correctly references the “SharedControl” type. The namespace is provided and code should theoretically compile fine. But it does not.</p>
<p><strong>Step 4. Call “Build – Rebuild” 3rd time </strong></p>
<p align="justify">You should receive notification that compilation was successful (<em>please don’t forget about my notes at the beginning that I am using Windows 7, it was noticed that Windows XP environments sometimes require more “rebuild” calls</em>). </p>
<p>Third compilation does not produce a new code behind file and its content is equal to those produced during the Step 3.</p>
<p>I’m pretty sure VS is doing something wrong between steps 2–4. Two different code generation outputs for the same action that was just called twice seems to be very suspicious. </p>
<p align="justify">The only idea I have for the moment is that “MainPage.g.i.cs” was generated AFTER the rebuild procedure has finished. And the 3rd rebuild is just using the file generated during the 2nd pass. If that is true then it makes a perfect sense why 3rd pass was successful. And if I’m right then developers may potentially encounter even more serious problems in the future because there will be always a possibility testing the code that was built without exception but does not contain changes or bug fixes that needs to be verified by developer if you see what I mean. </p>
<p align="justify">The only thing I don’t understand for the moment is why VS 2010 produces compilation errors while msbuild works fine. I expected VS 2010 is using msbuild under the hood for building Silverlight but my investigation results make me think that there are two ways of building (please correct me if I’m wrong, I didn’t try reflecting VS to find an answer for this question) and the build procedure embedded into VS is definitely having issues.</p>
<p align="justify">&#160;</p>
<p align="justify"><strong>Conslusion</strong></p>
<p align="justify">I still think that xml namespace binding is a very important feature that needs to be reused as much as possible (see more details here: “<a href="http://msdn.microsoft.com/en-us/library/dd728664%28VS.95%29.aspx" target="_blank">Prefixes and Mappings for Silverlight Libraries</a>”) at least because of the following benefits:</p>
<ul>
<li>
<div align="justify">helps a lot with xaml/code generation scenarios;</div>
</li>
<li>
<div align="justify">helps a lot with component discovery (we all love intellisense);</div>
</li>
<li>
<div align="left">reduces a variety of problems related to code refactorings and type namespace changes;</div>
</li>
</ul>
<p align="left">I’m pretty sure Microsoft will provide a hotfix as soon as this issue is confirmed but meanwhile you can use “msbuild” or “continuous rebuild” workarounds to keep using xml namespace mappings within your projects.</p>
<p align="left">Any feedback is appreciated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=284&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/LNZWGE_QUoY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2010/10/08/vs-2010-bug-related-to-silverlight-4-0-compilation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/12/clip_image002_thumb.jpg" medium="image">
			<media:title type="html">clip_image002</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/12/clip_image0024_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[4]</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/10/clip_image0026_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[6]</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/10/clip_image0028_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[8]</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/12/clip_image00210_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[10]</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/10/clip_image00212_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[12]</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2010/10/08/vs-2010-bug-related-to-silverlight-4-0-compilation/</feedburner:origLink></item>
		<item>
		<title>Dynamic Silverlight Forms. Embedding S# Scripts into Xaml.</title>
		<link>http://feedproxy.google.com/~r/DenisVuyka/~3/jJf89z_L7R4/</link>
		<comments>http://denisvuyka.wordpress.com/2010/05/19/dynamic-silverlight-forms-embedding-s-scripts-into-xaml/#comments</comments>
		<pubDate>Wed, 19 May 2010 08:05:00 +0000</pubDate>
		<dc:creator>Denis Vuyka</dc:creator>
				<category><![CDATA[S#]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">https://denisvuyka.wordpress.com/2010/05/19/dynamic-silverlight-forms-embedding-s-scripts-into-xaml/</guid>
		<description><![CDATA[I’ve been receiving a lot of questions regarding the possibility of usage S# in a declarative way directly from xaml rather than from code behind. Such approach is extremely valuable when dealing with BPM-like usages and dynamic forms that are presented by raw Xaml stored in database and instantiated via XamlReader. In this article I’m [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=244&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p align="justify">I’ve been receiving a lot of questions regarding the possibility of usage S# in a declarative way directly from xaml rather than from code behind. Such approach is extremely valuable when dealing with BPM-like usages and dynamic forms that are presented by raw Xaml stored in database and instantiated via XamlReader. </p>
<p align="justify">In this article I’m going to show you how easy it can be to embed a S# script into Xaml and execute it dynamically. For this purpose I will be using some blocks of the new upcoming “<strong>S# Silverlight Toolkit</strong>” that will be available soon as a part of the S# package. The toolkit will be distributed as a free addition with source code provided.</p>
<p align="justify">For the sake of simplicity I&#8217;m going to show the very basic injection of S# scripts into Xaml markup. I will be using Silverlight 3 for this purpose. The sample code will be updated to Silverlight 4 as soon as S# 2.0 reaches RTM.</p>
<h2>1. Required Assembly References</h2>
<p align="justify">You will need adding references to the following assemblies:</p>
<ul>
<li>
<div align="justify"><strong>Orbifold.SSharp.dll</strong></div>
</li>
<li>
<div align="justify"><strong>Orbifold.SSharp.Silverlight.Toolkit.dll</strong> (you can find it in the form of source code within the sample solution attached at the end of the article)</div>
</li>
</ul>
<h2>2. Required Namespace Declaration</h2>
<p align="justify">You will need to declare 3 additional namespaces</p>
<ul>
<li>
<div align="justify">“<strong>sys</strong>” pointing to the “System” namespace in “mscorlib” to be able using basic .NET types from within Xaml;</div>
</li>
<li>
<div align="justify">“<strong>scriptingRuntime</strong>” pointing to the “<strong>Orbifold.SSharp.Runtime</strong>” namespace to be able using “ScriptContext” from within Xaml;</div>
</li>
<li>
<div align="justify">“<strong>scriptingToolkit”</strong> pointing to the “<strong>Orbifold.SSharp.Silverlight</strong>” namespace to be able using Silverlight facilities like “<strong>CodeBlock</strong>” and “<strong>ScriptManager</strong>” from within Xaml;</div>
</li>
</ul>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb.png?w=826&#038;h=120" width="826" height="120" /></a> </p>
<h2>3. Introducing Script Execution Context for the Form</h2>
<p align="justify">Obviously you will want providing some context variables or custom functions for the scripts executed by the form. For this purpose I’m declaring a ScriptContext instance in the resources section of the form:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb1.png?w=424&#038;h=55" width="424" height="55" /></a></p>
<p>Here’s the code behind I’ve used to initialize default script context for the form:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb2.png?w=517&#038;h=260" width="517" height="260" /></a> </p>
<p align="justify">First of all you will need initializing Runtime Host. I’ve promoted the entire “System.Windows” assembly (via MessageBox type) to be able calling Message Boxes from within scripts.</p>
<p align="justify">Next I’ve got access to “defaultContext” declared in the markup and created a script variable “Form” pointing to the instance of this very Silverlight form. Additionally you may need assigning “ExecutionContext” attached property for the form if you want embedding scripts for the form-level events like “Loaded”.</p>
<h2>4. Attaching S# Scripts to the UI elements</h2>
<p align="justify">S# Silverlight Toolkit provides a set of facilities regarding script injection. You will need 2 of them for now: <strong>Code Block</strong> and <strong>Script Manager</strong>. <strong>CodeBlock</strong> class serves as a wrapper around plain S# script while <strong>Script Manager</strong> provides a set of attached properties (see <strong>Ramora Pattern</strong>) to wire UI elements with the S# runtime engine.</p>
<p><strong>OnLoaded Attached Property</strong></p>
<p>Allows you to associate a S# script with a FrameworkElement and execute it each time “FrameworkElement.Loaded” event is fired. Here’s a basic example:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb3.png?w=600&#038;h=327" width="600" height="327" /></a> </p>
<p><strong>ScriptManager.OnLoaded</strong> attached property setter accepts “CodeBlock” instance as a valid value. Every Code Block can contain a body of the S# script and can be optionally bound to the execution context. </p>
<p>The script above uses common Silverlight FrameworkElement.FindName method to find an element called “TextBox” and assigns its Text property to “<em>Dynamically populated text!!!</em>”.</p>
<p><strong>ScriptManager.OnButtonClick</strong> attached property setter accepts “CodeBlock” instance as a value and wires a S# script with a “<strong>Button.Click</strong>” event:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb4.png?w=618&#038;h=227" width="618" height="227" /></a> </p>
<p>Sample above shows a simple scenario of finding a TextBox element on the form and modifying its “Text” property.</p>
<p><strong>ScriptManager.OnGotFocus</strong> attached property setter accepts “CodeBlock” instance as a value and wires a S# script with “<strong>UIElement.GotFocus</strong>” event:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb5.png?w=591&#038;h=163" width="591" height="163" /></a> </p>
<h2>5. Running Sample</h2>
</p>
</p>
<p>After launching the sample you will see the following UI elements:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb6.png?w=491&#038;h=131" width="491" height="131" /></a> </p>
<p>There is a Button and a TextBox controls. The text box will contain some text assigned by the Form-level script (<em><strong>ScriptManager.OnLoaded</strong></em>)</p>
<p>When clicking (and so focusing) the TextBox the “OnGotFocus” script will be executed:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb7.png?w=404&#038;h=90" width="404" height="90" /></a> </p>
</p>
<p>When clicking a Button element the message box will appear and the TextBox.Text will be changed according to the “OnButtonClick” script:</p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb8.png?w=381&#038;h=310" width="381" height="310" /></a> </p>
<p><a href="http://denisvuyka.files.wordpress.com/2010/05/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://denisvuyka.files.wordpress.com/2010/05/image_thumb9.png?w=393&#038;h=118" width="393" height="118" /></a> </p>
<h2>Conclusion</h2>
<p align="justify">The S# Silverlight Toolkit opens the door for more efficient and rich scripting for your applications. Being similar to ASP.NET development it provides facilities for dynamic invocation of your scripts during the UI life cycle, allows you storing the xaml in databases and instantiate the entire UI with corresponding scripts during runtime by means of XamlReader (note that all attached properties will be restored during form instantiation, and all event handlers will be re-assigned during XamlReader.Load process).</p>
<p align="justify">You can get the source code for this article here:</p>
<ul>
<li>
<div align="justify"><a href="http://dl.dropbox.com/u/5260674/Wordpress/Samples/SLForms.zip">Silverlight 3 sample</a></div>
</li>
<li>
<div align="justify">Silverlight 4 sample (coming soon)</div>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denisvuyka.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denisvuyka.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denisvuyka.wordpress.com&#038;blog=4724773&#038;post=244&#038;subd=denisvuyka&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/DenisVuyka/~4/jJf89z_L7R4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://denisvuyka.wordpress.com/2010/05/19/dynamic-silverlight-forms-embedding-s-scripts-into-xaml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/032cdef00bc6c528b24517b137c97660?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">Denis</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://denisvuyka.files.wordpress.com/2010/05/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://denisvuyka.wordpress.com/2010/05/19/dynamic-silverlight-forms-embedding-s-scripts-into-xaml/</feedburner:origLink></item>
	</channel>
</rss>
