<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Harsh Baid</title>
	<atom:link href="http://www.harshbaid.in/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.harshbaid.in</link>
	<description>Sitecore &#38; Microsoft Certified Software Engineer</description>
	<lastBuildDate>Thu, 25 Feb 2021 21:45:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.harshbaid.in/wp-content/uploads/2024/09/HarshBaid-003-150x150.jpg</url>
	<title>Harsh Baid</title>
	<link>https://www.harshbaid.in</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Docker: Fixing Sitecore docker-compose error</title>
		<link>https://www.harshbaid.in/2020/01/17/docker-fixing-sitecore-docker-compose-error/</link>
					<comments>https://www.harshbaid.in/2020/01/17/docker-fixing-sitecore-docker-compose-error/#respond</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Thu, 16 Jan 2020 23:04:14 +0000</pubDate>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[slack]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=1006</guid>

					<description><![CDATA[First thanks to Sitecore Slack Chat #docker channel in helping to find solution to issues that I faced in my very first days of learning and playing with Docker and Sitecore with Docker. Here I&#8217;m trying to document the solution that might help others who face the same issue as me. To begin with, first [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>First thanks to <a href="https://sitecore.chat">Sitecore Slack Chat</a> <strong>#docker</strong> channel in helping to find solution to issues that I faced in my very first days of learning and playing with Docker and Sitecore with Docker.</p>



<p>Here I&#8217;m trying to document the solution that might help others who face the same issue as me.</p>



<p> To begin with, first I started to learn about Docker and then about Sitecore with Docker. I had watched <a href="https://www.youtube.com/watch?v=SRsCgyPeCTg">some videos</a> on YouTube and <a href="https://app.pluralsight.com/library/courses/play-by-play-docker-web-developers-john-papa-dan-wahlin">Pluralsight course on Docker</a> and read <a href="https://gist.github.com/sitecoremaster/ba06e4761644726b9242e2796ea77960">GitHub Gists</a> from fellow Sitecore community Devs before starting with anything and then started with installing and playing with Docker shortly and followed this course as per my understanding of everything so far.</p>



<h2 class="wp-block-heading">Getting Started with Docker with Sitecore</h2>



<p>Steps:</p>



<ol class="wp-block-list"><li>Install <a href="https://www.docker.com/products/docker-desktop">Docker for Windows</a></li><li>Clone <a href="https://github.com/Sitecore/docker-images">Docker for Sitecore</a> repository</li><li>Executed below commands, trying to get the vanilla Sitecore up and running in docker.</li></ol>



<pre class="wp-block-preformatted">&gt; Open powershell window in administrator mode

&gt; CD into directory where you cloned the repository in my case it was &#039;C:\Projects\docker-images\&#039;

&gt; .\Build.ps1 -SitecoreUsername SITECORE_DEV_EMAIL -SitecorePassword SITECORE_DEV_PASSWORD -SitecoreVersion 9.3.0 -Topology xp -WindowsVersion 1803 -IncludeSpe

# I had edited Build.ps1 to allow &#039;1803&#039; windows version here because it matched with my windows OS version at that point

&gt; .\Set-LicenseEnvironmentVariable.ps1 -Path C:\license\license.xml

&gt; docker image ls

&gt; cd .\windows\tests\9.3.x

&gt; docker-compose -f .\docker-compose.xp.yml up</pre>



<h3 class="wp-block-heading">Got stuck on this Docker error</h3>



<p>At this point, I got stuck with error message as below: </p>



<pre class="wp-block-preformatted">Pulling sql (sitecore-xp-sqldev:9.3.0-windowsservercore-ltsc2019)…
 ERROR: The image for the service you&#039;re trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
 Continue with the new image? [yN]&lt;strong&gt;y&lt;/strong&gt;
 Pulling sql (sitecore-xp-sqldev:9.3.0-windowsservercore-ltsc2019)…
 ERROR: pull access denied for sitecore-xp-sqldev, repository does not exist or may require &#039;docker login&#039;: denied: requested access to the resource is denied</pre>



<h2 class="wp-block-heading">First Fix: Windows Update</h2>



<p>As I checked in the #docker channel in the Sitecore Slack and learned that I had to update my Windows OS to at-least <code>1903</code> version so I spent next day or two waiting for system updates to complete. Please note: The time taken depends on your machine and internet speed.</p>



<h3 class="wp-block-heading">If you are thinking how to check Windows OS version?</h3>



<p>Check this out. Press <code>Windows Key + I</code> and then click on <strong>System</strong> tile then click on <strong>About</strong> from left navigation and it should show your system version as below &#8211; </p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1194" height="925" src="https://i1.wp.com/www.harshbaid.in/wp-content/uploads/2020/01/image.png?fit=600%2C465" alt="Windows OS version." class="wp-image-1007" srcset="https://www.harshbaid.in/wp-content/uploads/2020/01/image.png 1194w, https://www.harshbaid.in/wp-content/uploads/2020/01/image-300x232.png 300w, https://www.harshbaid.in/wp-content/uploads/2020/01/image-1024x793.png 1024w, https://www.harshbaid.in/wp-content/uploads/2020/01/image-768x595.png 768w" sizes="(max-width: 1194px) 100vw, 1194px" /></figure>



<p>This is  noteworthy &#8211; After system update I tried <code>Build.ps1</code> with new version i.e. <code>1903</code> (earlier it was <code>1803</code>) as below, it started doing more than what was done in last time so that was good sign: </p>



<pre class="wp-block-preformatted">.\Build.ps1 -SitecoreUsername SITECORE_DEV_EMAIL -SitecorePassword SITECORE_DEV_PASSWORD -SitecoreVersion 9.3.0 -Topology xp -WindowsVersion 1903 -IncludeSpe</pre>



<p>This time <code>Build.ps1</code> took around 2-3 hours to complete and once it completed I tried <code>docker-compose -f .\docker-compose.xp.yml up</code> command again and still had the same error at this point.</p>



<h2 class="wp-block-heading">Final Fix: Update environment file</h2>



<p>Another quick chat in slack and I found the final fix. Update <code>.env</code> file under <code>/windows/tests/9.3.x/</code> folder as below:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="809" height="697" src="http://www.harshbaid.in/wp-content/uploads/2020/01/image-2.png" alt="Updated Docker .env file." class="wp-image-1009" srcset="https://www.harshbaid.in/wp-content/uploads/2020/01/image-2.png 809w, https://www.harshbaid.in/wp-content/uploads/2020/01/image-2-300x258.png 300w, https://www.harshbaid.in/wp-content/uploads/2020/01/image-2-768x662.png 768w" sizes="(max-width: 809px) 100vw, 809px" /></figure>



<p>I had to update <code>WINDOWSSERVERCORE_VERSION</code> from <code>ltsc2019</code> to <code>1909</code> and <code>NANOSERVER_VERSION</code> from <code>1803</code> to <code>1909</code>. I think these values got messed up when I was first trying to get it to work.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p> Quick note: Here I&#8217;m trying to setup Sitecore XP0 (XP standalone) for version 9.3.0 that is why I&#8217;m using &#8216;9.3.x&#8217; folder so this folder can be different for you based what version you are targeting. </p></blockquote>



<p>Finally, I re-ran the <code>docker-compose -f .\docker-compose.xp.yml up</code> command again and there it started composing without the error.</p>



<p>That is all to resolve the said error with <code>docker-compose</code>.</p>



<p> Finally, I was able to see my vanilla Sitecore instance from browser at  http://localhost:44001/  locally. Please note that the port number here depends on the configuration as I kept the default values that came from <a href="https://github.com/Sitecore/docker-images">https://github.com/Sitecore/docker-images</a> it is port 44001 here. </p>



<p>Also, It is advised to use <code>docker-compose</code>  with flag <code>-d</code> which will cut down the verbose logging seen in console and from what I&#8217;m hearing it&#8217;s called <strong>Detached mode</strong>.</p>



<p>Start following <strong>#docker </strong>channel in <a href="https://sitecore.chat">Sitecore Slack</a> for more fun stuff.</p>



<p>Thanks to <a href="https://twitter.com/MichaelWest101">Michael West</a>, <a href="https://www.linkedin.com/in/aaron-bickle-a67ab012/">Aaron Bickle</a>, and <a href="https://www.youtube.com/watch?v=SRsCgyPeCTg">Dylan Young</a> for all the help&#8230;</p>



<p>Happy Sitecoring!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2020/01/17/docker-fixing-sitecore-docker-compose-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sitecore SXA &#8211; &#8216;Open in Overlay&#8217; checkbox missing?</title>
		<link>https://www.harshbaid.in/2019/07/17/sitecore-sxa-open-in-overlay-checkbox-missing/</link>
					<comments>https://www.harshbaid.in/2019/07/17/sitecore-sxa-open-in-overlay-checkbox-missing/#comments</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Wed, 17 Jul 2019 14:10:45 +0000</pubDate>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[sitecore-support]]></category>
		<category><![CDATA[sxa]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=953</guid>

					<description><![CDATA[If any of you have faced this issue that Sitecore SXA&#8217;s feature Open in Overlay is missing then this might help you. Fix: The root cause of the issue was that the rich text editor was not using the customized HyperlinkManager and was using the default Telerik HyperlinkManager, to fix this please do the following: [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If any of you have faced this issue that Sitecore SXA&#8217;s feature <a href="https://doc.sitecore.com/users/sxa/17/sitecore-experience-accelerator/en/create-an-overlay-link.html" target="_blank" rel="noopener">Open in Overlay</a> is missing then this might help you.</p>
<p>Fix:</p>
<div id="aui-3-18-0-4_1617">The root cause of the issue was that the rich text editor was not using the customized HyperlinkManager and was using the default Telerik HyperlinkManager, to fix this please do the following:</div>
<ul id="aui-3-18-0-4_1619">
<li id="aui-3-18-0-4_1638">Open the <code>\**Website Root**\sitecore\shell\Controls\Rich Text Editor\EditorPage.aspx</code> file</li>
<li id="aui-3-18-0-4_1618">Add the following attribute to the <code>&lt;telerik:radeditor ID="Editor"</code> inside of the <strong>EditorPage.aspx</strong> file
<ul id="aui-3-18-0-4_1621">
<li id="aui-3-18-0-4_1620"><code>ExternalDialogsPath="~/sitecore/shell/controls/rich text editor/Dialogs/"</code></li>
</ul>
</li>
<li id="aui-3-18-0-4_1641">Clear browser cache</li>
</ul>
<p>Sitecore Support reference for this fix is # 228508</p>
<p>Note that I was using Sitecore SXA version 1.8.1 when I got this issue.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2019/07/17/sitecore-sxa-open-in-overlay-checkbox-missing/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Sitecore SXA &#8211; Fix for missing items in VariantSection template</title>
		<link>https://www.harshbaid.in/2019/06/07/sitecore-sxa-fix-for-missing-items-in-variantsection-template/</link>
					<comments>https://www.harshbaid.in/2019/06/07/sitecore-sxa-fix-for-missing-items-in-variantsection-template/#respond</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Fri, 07 Jun 2019 15:55:09 +0000</pubDate>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[sitecore-support]]></category>
		<category><![CDATA[sxa]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=937</guid>

					<description><![CDATA[Here is a quick post about a known issue in Sitecore SXA version 1.8.1 with Sitecore 9.0 Issue is the VariantSection template in Rendering Variant is missing some items on the IsLink field that is Droplink just on VariantSection template. Sitecore Support has provided the package that installs the missing items. If anyone needs, I have shared [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Here is a quick post about a known issue in Sitecore SXA version 1.8.1 with Sitecore 9.0</p>
<p>Issue is the <code>VariantSection</code> template in <code><a href="https://doc.sitecore.com/developers/sxa/18/sitecore-experience-accelerator/en/create-a-rendering-variant.html">Rendering Variant</a></code> is missing some items on the <code>IsLink</code> field that is <code>Droplink</code> just on <code>VariantSection</code> template.</p>
<p><a href="https://support.sitecore.net/">Sitecore Support</a> has provided the package that installs the missing items. If anyone needs, I have shared the link at the end of this post.</p>
<p>Screenshot showing the issue is as below:<img decoding="async" class="wp-image-938 size-full alignnone" src="http://www.harshbaid.in/wp-content/uploads/2019/06/VariantSection-IsLink-Field.png" alt="Sitecore SXA - VariantSection IsLink Field" width="1123" height="733" srcset="https://www.harshbaid.in/wp-content/uploads/2019/06/VariantSection-IsLink-Field.png 1123w, https://www.harshbaid.in/wp-content/uploads/2019/06/VariantSection-IsLink-Field-300x196.png 300w, https://www.harshbaid.in/wp-content/uploads/2019/06/VariantSection-IsLink-Field-768x501.png 768w, https://www.harshbaid.in/wp-content/uploads/2019/06/VariantSection-IsLink-Field-1024x668.png 1024w" sizes="(max-width: 1123px) 100vw, 1123px" /></p>
<p>After applying the fix it should look as below:<img loading="lazy" decoding="async" class="size-full wp-image-943 alignnone" src="http://www.harshbaid.in/wp-content/uploads/2019/06/Fixed-VariantSection-IsLink-Field.png" alt="Fixed VariantSection template IsLink Field" width="1188" height="809" srcset="https://www.harshbaid.in/wp-content/uploads/2019/06/Fixed-VariantSection-IsLink-Field.png 1188w, https://www.harshbaid.in/wp-content/uploads/2019/06/Fixed-VariantSection-IsLink-Field-300x204.png 300w, https://www.harshbaid.in/wp-content/uploads/2019/06/Fixed-VariantSection-IsLink-Field-768x523.png 768w, https://www.harshbaid.in/wp-content/uploads/2019/06/Fixed-VariantSection-IsLink-Field-1024x697.png 1024w" sizes="auto, (max-width: 1188px) 100vw, 1188px" /></p>
<p>Just in case if you need Sitecore public reference number for this issue is <strong>326111</strong></p>
<p>Download <a href="https://www.harshbaid.in/wp-content/uploads/2019/06/326111-items.zip">Sitecore Support Package (326111-items.zip)</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2019/06/07/sitecore-sxa-fix-for-missing-items-in-variantsection-template/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Umbraco CMS with ASP.NET MVC – Part 4 The MVC Recipe</title>
		<link>https://www.harshbaid.in/2015/09/06/umbraco-cms-asp-net-mvc-part-4-mvc-recipe/</link>
					<comments>https://www.harshbaid.in/2015/09/06/umbraco-cms-asp-net-mvc-part-4-mvc-recipe/#respond</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Sat, 05 Sep 2015 20:31:40 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[ASP.NET MVC Framework]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Microsoft Visual Studio]]></category>
		<category><![CDATA[Umbraco CMS]]></category>
		<category><![CDATA[Visual Studio 2015]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=872</guid>

					<description><![CDATA[Dear readers, Its been very long time that I have written any blog posts and in meantime there has been significant changes in Umbraco and its documentation on ASP.NET MVC. Few updates on this topic before I start, ASP.NET MVC is now enabled out of the box rather than WebForms in Umbraco. This blog series was first started with Umbraco version 7.1.1 but concept is same [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Dear readers,</p>
<p>Its been very long time that I have written any blog posts and in meantime there has been significant changes in <a class="zem_slink" title="Umbraco" href="http://umbraco.com" target="_blank" rel="homepage noopener noreferrer">Umbraco</a> and its <a title="Working with MVC in Umbraco" href="https://our.umbraco.org/documentation/reference/Templating/Mvc/" target="_blank" rel="noopener noreferrer">documentation</a> on ASP.NET MVC.</p>
<p>Few updates on this topic before I start,</p>
<ol>
<li>ASP.NET MVC is now enabled out of the box rather than WebForms in Umbraco.</li>
<li>This blog series was first started with Umbraco <a title="Umbraco v7.1.1" href="http://our.umbraco.org/contribute/releases/711" target="_blank" rel="noopener noreferrer">version 7.1.1</a> but concept is same in latest <a title="Umbraco v7.2.1" href="https://our.umbraco.org/contribute/releases/728" target="_blank" rel="noopener noreferrer">version 7.2.8</a> also.</li>
<li>Documentation on ASP.NET MVC support for Umbraco has improved a lot.</li>
</ol>
<hr />
<p>In this post we will see how to develop website using Umbraco CMS and ASP.NET MVC.</p>
<p>In the <a title="This post describes about agenda and upcoming articles regarding building a simple website using Umbraco CMS with ASP.NET MVC framework." href="https://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank" rel="noopener noreferrer">Introduction</a> post you can read the brief on this blog series.</p>
<p>Before starting please note that this may take a while to understand the concept wholly but let us try &amp; understand, also you can refer Umbraco documentation such as Implementing <a title="Umbraco - Custom controllers" href="https://our.umbraco.org/documentation/reference/routing/custom-controllers" target="_blank" rel="noopener noreferrer">Custom controller</a>.</p>
<p>There are two parts of this story ASP.NET MVC side and Umbraco side.</p>
<h2>First Part of this story &#8211; ASP.NET MVC</h2>
<p>First let us see what we have in ASP.NET MVC part of the story. So we have three basic things to know. It is possible that you know these things already so you may skip to next section &#8211;</p>
<ol>
<li>Model</li>
<li>View</li>
<li>Controller</li>
</ol>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe.png"><img loading="lazy" decoding="async" class="wp-image-806 aligncenter" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe.png" alt="Concept MVC Recipe in Umbraco CMS" width="280" height="217" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe.png 551w, https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe-300x231.png 300w" sizes="auto, (max-width: 280px) 100vw, 280px" /></a>Brief for each of these is &#8211;</p>
<h3>Model</h3>
<p>Model is <a title="Plain Old CLR Object" href="http://en.wikipedia.org/wiki/Plain_Old_CLR_Object" target="_blank" rel="noopener noreferrer">POCO</a> which contains getter and setter properties and sometimes we have <a title="Using a ViewModel Pattern" href="http://nerddinnerbook.s3.amazonaws.com/Part6.htm" target="_blank" rel="noopener noreferrer">ViewModel</a> for certain complex scenarios.</p>
<h3>View</h3>
<p>View is just outputting html. View is written in Razor sharp syntax in .cshml or ASP.NET syntax in .aspx</p>
<h3>Controller</h3>
<p>Controller is C# class. It is the main class which controls how the request would be served. It knows what Model and View will go together, How to validate incoming request and application data whereabouts. As you might know that there are many ways controller works; it all depends on requirements and skill-set of the developers working on the solution.</p>
<h2>Second PART OF THIS STORY &#8211; Umbraco Page</h2>
<p>Now second part of the story &#8211; Creating a page in Umbraco. So we have three basic things here to know,</p>
<ol>
<li>Document Type</li>
<li>Template</li>
<li>Content Item</li>
</ol>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2015/01/Building-Blocks-of-an-Umbraco-Page.png"><img loading="lazy" decoding="async" class="wp-image-877 aligncenter" src="http://www.harshbaid.in/wp-content/uploads/2015/01/Building-Blocks-of-an-Umbraco-Page.png" alt="Building Blocks of an Umbraco Page" width="319" height="194" /></a>Brief for each of these is &#8211;</p>
<h3>Document Type</h3>
<p>Document Type is the definition content item. Like we define database table and columns in SQL, here we define the properties that we require in a Page. Each Document Type has Standard Values associated with it. Standard Values are to define default property values that gets initialized as a new Content is created. We can image this like constructor of a Class. For sake of simplicity Standard Values are not depicted in the diagram.</p>
<p>Now to we will see how Document Type looks like as we talk about this.</p>
<p><figure id="attachment_898" aria-describedby="caption-attachment-898" style="width: 1280px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type.png"><img loading="lazy" decoding="async" class="size-full wp-image-898" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type.png" alt="Document Type" width="1280" height="760" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type.png 1280w, https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-300x178.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-1024x608.png 1024w" sizes="auto, (max-width: 1280px) 100vw, 1280px" /></a><figcaption id="caption-attachment-898" class="wp-caption-text">Document Type &#8216;HelloWorld&#8217; that has Template with same name.</figcaption></figure></p>
<p><figure id="attachment_897" aria-describedby="caption-attachment-897" style="width: 1280px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-Properties.png"><img loading="lazy" decoding="async" class="size-full wp-image-897" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-Properties.png" alt="Properties of Document Type" width="1280" height="760" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-Properties.png 1280w, https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-Properties-300x178.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/Document-Type-Properties-1024x608.png 1024w" sizes="auto, (max-width: 1280px) 100vw, 1280px" /></a><figcaption id="caption-attachment-897" class="wp-caption-text">Properties tab of Document Type</figcaption></figure></p>
<p>Above image shows the properties of Document Type. For example purpose here Document Type &#8216;HelloWorld&#8217; has one property defined as &#8216;Page Title&#8217;. To use this property in code we refer this using Alias i.e. &#8216;pageTitle&#8217;, which is also shown in the image above.</p>
<h3>Template</h3>
<p>Template is the Layout definition content item. Template file extension can be .aspx and .cshml depending on configuration. We can imagine &#8216;Template&#8217; as two-dimensional thing, one is Logical i.e. Content Item and other is Physical i.e. html file (.chtml or .aspx). As shown in diagram each Template has association with Content Item and both exists independently.</p>
<p>Here is how Template looks like.</p>
<p><figure id="attachment_899" aria-describedby="caption-attachment-899" style="width: 1246px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/View-Template-with-Visual-Studio.png"><img loading="lazy" decoding="async" class="size-full wp-image-899" src="http://www.harshbaid.in/wp-content/uploads/2015/09/View-Template-with-Visual-Studio.png" alt="Template alongwith View in Visual Studio" width="1246" height="760" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/View-Template-with-Visual-Studio.png 1246w, https://www.harshbaid.in/wp-content/uploads/2015/09/View-Template-with-Visual-Studio-300x183.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/View-Template-with-Visual-Studio-1024x625.png 1024w" sizes="auto, (max-width: 1246px) 100vw, 1246px" /></a><figcaption id="caption-attachment-899" class="wp-caption-text">Template along with View in Visual Studio</figcaption></figure></p>
<p>In the image above we can see how Template in Umbraco is directly related to View in Visual Studio. To make a clear understanding here, two different screens are stitched together in the image.</p>
<h3>Content Item</h3>
<p>To create new Page we need to create Content Item. Content Item is the central part of all three, sometimes also referred as <a class="zem_slink" title="Web page" href="http://en.wikipedia.org/wiki/Web_page" target="_blank" rel="noopener wikipedia noreferrer">Web Page</a>. Content Item is based on Document Type and presentation is controlled by Template. Also I have noticed practices to define Content Items which does not have any functional presentation, it means they are nothing but just Data Repository which can be reused anywhere in the Website such as Navigation, Contact Information, Office Address, etc.</p>
<p>So here is how Content Item looks like.</p>
<p><figure id="attachment_900" aria-describedby="caption-attachment-900" style="width: 1280px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Content-Item.png"><img loading="lazy" decoding="async" class="size-full wp-image-900" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Content-Item.png" alt="Content Item" width="1280" height="760" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Content-Item.png 1280w, https://www.harshbaid.in/wp-content/uploads/2015/09/Content-Item-300x178.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/Content-Item-1024x608.png 1024w" sizes="auto, (max-width: 1280px) 100vw, 1280px" /></a><figcaption id="caption-attachment-900" class="wp-caption-text">Content Item</figcaption></figure></p>
<h3>Reference Book</h3>
<p>Read <a href="http://www.amazon.in/gp/product/0596527349/ref=as_li_tl?ie=UTF8&amp;camp=3626&amp;creative=24822&amp;creativeASIN=0596527349&amp;linkCode=as2&amp;tag=harbai-21&amp;linkId=PPFX5BM6KAOO5J53" target="_blank" rel="noopener noreferrer">Information Architecture</a> for more regarding how to structure and re-purpose data in Content Management System.</p>
<p><iframe loading="lazy" style="width: 120px; height: 240px;" src="//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=IN&amp;source=ss&amp;ref=ss_til&amp;ad_type=product_link&amp;tracking_id=harbai-21&amp;marketplace=amazon&amp;region=IN&amp;placement=0596527349&amp;asins=0596527349&amp;linkId=Y6USYSWJZ37XETWD&amp;show_border=true&amp;link_opens_in_new_window=true" width="300" height="150" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"><br />
</iframe></p>
<p>Refer above UML diagram to understand the relationship of Document Type, Template and Content Item.</p>
<p>I hope everything is clear until this point. Now comes the Final part where we see how the ASP.NET MVC and Umbraco work together.</p>
<h2>Final Part of the Story &#8211; ASP.NET MVC + Umbraco</h2>
<p>Here we will try to relate each concept from ASP.NET MVC to Umbraco,</p>
<h3>MVC Model== C# Model</h3>
<blockquote><p>There is no special requirement for creating Model classes. However by default Umbraco layout uses RenderModel class in Controllers but no hard dependency.</p></blockquote>
<p><figure id="attachment_901" aria-describedby="caption-attachment-901" style="width: 1366px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Model-in-Visual-Studio.png"><img loading="lazy" decoding="async" class="size-full wp-image-901" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Model-in-Visual-Studio.png" alt="Model in Visual Studio" width="1366" height="628" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Model-in-Visual-Studio.png 1366w, https://www.harshbaid.in/wp-content/uploads/2015/09/Model-in-Visual-Studio-300x138.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/Model-in-Visual-Studio-1024x471.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a><figcaption id="caption-attachment-901" class="wp-caption-text">Model in Visual Studio</figcaption></figure></p>
<h3>MVC Controller== Document Type Name</h3>
<blockquote><p>Document Type name suffixed with &#8216;Controller&#8217; becomes Controller.</p>
<p>For example Document Type with name &#8216;HelloWorld&#8217; becomes &#8216;HelloWorldController&#8217; Controller.</p>
<p>By default Controller inherits from <a title="Surface Controllers" href="https://our.umbraco.org/documentation/reference/routing/surface-controllers" target="_blank" rel="noopener noreferrer">SurfaceController</a> but if we intend to write custom logic within Controller then it should inherit from <a title="Custom controllers" href="https://our.umbraco.org/documentation/reference/routing/custom-controllers" target="_blank" rel="noopener noreferrer">RenderMvcController</a></p></blockquote>
<h3>MVC Action method name== Template Name</h3>
<blockquote><p>Controller should always have default Action &#8216;Index&#8217; and otherwise we can create Action with any name e.g. &#8216;GetProducts&#8217; Action.</p>
<p>Note that if Umbraco engine is not able to map request to any defined Actions in the Controller then default action &#8216;Index&#8217; of that Controller class will get executed.</p></blockquote>
<p><figure id="attachment_902" aria-describedby="caption-attachment-902" style="width: 1366px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Controller-in-Visual-Studio.png"><img loading="lazy" decoding="async" class="size-full wp-image-902" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Controller-in-Visual-Studio.png" alt="Controller and Action in Visual Studio" width="1366" height="629" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Controller-in-Visual-Studio.png 1366w, https://www.harshbaid.in/wp-content/uploads/2015/09/Controller-in-Visual-Studio-300x138.png 300w, https://www.harshbaid.in/wp-content/uploads/2015/09/Controller-in-Visual-Studio-1024x472.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a><figcaption id="caption-attachment-902" class="wp-caption-text">Controller and Action in Visual Studio</figcaption></figure></p>
<h3></h3>
<h2>Concluding</h2>
<p>Therefore, each Content Item of Umbraco maps uniquely to one Controller and one View only. We can change which View should get executed for particular Content Item by selecting appropriate Template directly on Content Item or at the Document Type.</p>
<p>Here is the final output how this whole stuff looks like and This just starting of the entire story that we can build with Umbraco and ASP.NET MVC.</p>
<p><figure id="attachment_903" aria-describedby="caption-attachment-903" style="width: 648px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2015/09/Hello-World-Page.png"><img loading="lazy" decoding="async" class="size-full wp-image-903" src="http://www.harshbaid.in/wp-content/uploads/2015/09/Hello-World-Page.png" alt="Hello World Page" width="648" height="221" srcset="https://www.harshbaid.in/wp-content/uploads/2015/09/Hello-World-Page.png 648w, https://www.harshbaid.in/wp-content/uploads/2015/09/Hello-World-Page-300x102.png 300w" sizes="auto, (max-width: 648px) 100vw, 648px" /></a><figcaption id="caption-attachment-903" class="wp-caption-text">Hello World Page</figcaption></figure></p>
<p>I hope this helps you and do comment for any suggestions or questions.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://codecanyon.net/item/razor-template-system-templating-with-c/12496250" target="_blank" rel="noopener noreferrer"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="//i.zemanta.com/357848551_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://codecanyon.net/item/razor-template-system-templating-with-c/12496250" target="_blank" rel="noopener noreferrer">Razor Template System &#8211; Templating with C# (Content Management)</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://blog.gdssecurity.com/labs/2015/8/21/enumerating-net-mvc-application-endpoints-with-roslyn.html" target="_blank" rel="noopener noreferrer"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="//i.zemanta.com/noimg_34_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://blog.gdssecurity.com/labs/2015/8/21/enumerating-net-mvc-application-endpoints-with-roslyn.html" target="_blank" rel="noopener noreferrer">Enumerating .NET MVC Application Endpoints with Roslyn</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2015/09/06/umbraco-cms-asp-net-mvc-part-4-mvc-recipe/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Umbraco CMS with ASP.NET MVC &#8211; Part 3 Inside Visual Studio</title>
		<link>https://www.harshbaid.in/2014/04/30/umbraco-cms-asp-net-mvc-part-3-inside-visual-studio/</link>
					<comments>https://www.harshbaid.in/2014/04/30/umbraco-cms-asp-net-mvc-part-3-inside-visual-studio/#comments</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Tue, 29 Apr 2014 20:17:46 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft Visual Studio]]></category>
		<category><![CDATA[Umbraco CMS]]></category>
		<category><![CDATA[Visual Studio 2012]]></category>
		<category><![CDATA[web application]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=849</guid>

					<description><![CDATA[In this post for Umbraco CMS we will learn regarding creating Visual Studio Solution. Main motive behind creating VS Solution is to work in proper structured manner and when work in team it is helpful so that Team can Commit their file changes under Source Control when developing with Umbraco CMS. In the Introduction post you can read the brief roadmap about posts [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post for Umbraco CMS we will learn regarding creating Visual Studio Solution. Main motive behind creating VS Solution is to work in proper structured manner and when work in team it is helpful so that Team can Commit their file changes under Source Control when developing with Umbraco CMS.</p>
<p>In the <a title="This post describes about agenda and upcoming articles regarding building a simple website using Umbraco CMS with ASP.NET MVC framework." href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank">Introduction</a> post you can read the brief roadmap about posts on Umbraco CMS and MVC development. <a title="This post describes about initial installation of Umbraco CMS with ASP.NET MVC framework and configuring Website in local IIS and domain name hosts entry." href="http://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/" target="_blank">Part 2</a> of this series describes about Umbraco installation and <a class="zem_slink" title="Internet Information Services" href="http://www.iis.net/" target="_blank" rel="homepage">IIS</a> configurations.</p>
<p>For this post I have used Visual Studio 2013 but <a class="zem_slink" title="Microsoft Visual Studio" href="http://www.microsoft.com/visualstudio" target="_blank" rel="homepage">2012</a> version will also do. This version of Umbraco is using <a class="zem_slink" title=".NET Framework version history" href="http://en.wikipedia.org/wiki/.NET_Framework_version_history" target="_blank" rel="wikipedia">.NET Framework 4.5</a></p>
<h2>Step 1 &#8211; Create Blank Solution for UMBRACO CMS</h2>
<p>Start Visual Studio and use the shortcut for create new project i.e. <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd></p>
<p>Create a Blank Visual Studio Solution.</p>
<p>In Visual Studio 2013, Navigate to &#8216;<a class="zem_slink" title="Microsoft Visual C Sharp" href="http://msdn.microsoft.com/en-us/vstudio/hh388566" target="_blank" rel="homepage">Visual C#</a>&#8216; &gt; &#8216;Web&#8217; &gt; Select &#8216;ASP.NET <a class="zem_slink" title="Web application" href="http://en.wikipedia.org/wiki/Web_application" target="_blank" rel="wikipedia">Web Application</a>&#8216; as can be seen in the screen below.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Create-Empty-Web-Solution.png"><img loading="lazy" decoding="async" class="alignnone wp-image-851 size-full" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Create-Empty-Web-Solution.png" alt="Create Empty Web Solution" width="955" height="590" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Create-Empty-Web-Solution.png 955w, https://www.harshbaid.in/wp-content/uploads/2014/04/Create-Empty-Web-Solution-300x185.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/Create-Empty-Web-Solution-194x120.png 194w" sizes="auto, (max-width: 955px) 100vw, 955px" /></a></p>
<p>Note: If you are using Visual Studio 2012 or else the step to create Blank Solution may be different. For example in Visual Studio 2012 you can navigate to &#8216;Visual C#&#8217; &gt; &#8216;Web&#8217; &gt; Select &#8216;ASP.NET MVC 5 Empty Project&#8217;.</p>
<p>Considering you have followed the <a title="This post describes about initial installation of Umbraco CMS with ASP.NET MVC framework and configuring Website in local IIS and domain name hosts entry." href="http://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/" target="_blank">Part 2</a> regarding Umbraco Installation and Site root folder; keep the backup of the Umbraco site root folder specifically web.config, Global.asax and &#8216;Views&#8217; folder.</p>
<p>Then uncheck the option for &#8220;Create directory for solution&#8221;</p>
<p>Set the Location to the Umbraco site root folder.</p>
<p>Set the Solution name. Here we have created Solution with name &#8220;UmbracoMvc&#8221; and then click &#8220;OK&#8221;</p>
<p>Next in the &#8220;New ASP.NET Project&#8221; dialog, Select template &#8220;Empty&#8221; and tick the &#8220;MVC&#8221; check box option</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Select-Blank-Application-Type.png"><img loading="lazy" decoding="async" class="alignnone wp-image-852 size-full" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Select-Blank-Application-Type.png" alt="Select Blank Application Type" width="770" height="540" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Select-Blank-Application-Type.png 770w, https://www.harshbaid.in/wp-content/uploads/2014/04/Select-Blank-Application-Type-300x210.png 300w" sizes="auto, (max-width: 770px) 100vw, 770px" /></a></p>
<p>Then click &#8220;OK&#8221;.</p>
<h2>Step 2 &#8211; Verify the Solution Structure and Physical Files</h2>
<p>After this you can verify the folder structure is created as below screen. Here &#8220;Umbraco&#8221; is the Solution Folder and &#8220;UmbracoMvc&#8221; is the Project Folder.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Directory-View-1.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-853" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Directory-View-1.png" alt="Blank Solution Directory View" width="407" height="229" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Directory-View-1.png 407w, https://www.harshbaid.in/wp-content/uploads/2014/04/Directory-View-1-300x168.png 300w" sizes="auto, (max-width: 407px) 100vw, 407px" /></a></p>
<p>After we create blank solution, Visual Studio replaces the existing Umbraco web.config and other imp. files due to this behaviour of VS; we need to restore the files and folders (shown in below screen) from the original version that we have in backup, that we took in previous step, to &#8220;UmbracoMvc&#8221; project folder.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/2.-Copy-Extracted-Source-to-Web-Project-Directory.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-829" src="http://www.harshbaid.in/wp-content/uploads/2014/04/2.-Copy-Extracted-Source-to-Web-Project-Directory.png" alt="Copy extracted source code to IIS website root directory" width="181" height="477" /></a></p>
<p>Now we have successfully created blank solution and recovered the files needed. So we need to verify that the Umbraco site is still working at URL &#8216;http://UmbracoMvc/&#8217;.</p>
<h2>STEP 3 &#8211; Include NECESSARY files in the Solution</h2>
<p>Open Visual Studio&#8217;s Solution Explorer and select option &#8220;Show All Files&#8221; highlighted in screen below.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Select-Show-All-Files-in-Visual-Studio-Solution.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-854" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Select-Show-All-Files-in-Visual-Studio-Solution.png" alt="Select Show All Files in Visual Studio Solution" width="345" height="354" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Select-Show-All-Files-in-Visual-Studio-Solution.png 345w, https://www.harshbaid.in/wp-content/uploads/2014/04/Select-Show-All-Files-in-Visual-Studio-Solution-292x300.png 292w" sizes="auto, (max-width: 345px) 100vw, 345px" /></a></p>
<p>Next include the files and folder as required but do not include the folders named &#8220;Umbraco&#8221; and &#8220;Umbraco_Client&#8221; because those part we will not work. I have shown in below screen what I have included in my solution.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Files-and-Folder-Included-as-part-of-the-Umbraco-Web-Application-project.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-855" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Files-and-Folder-Included-as-part-of-the-Umbraco-Web-Application-project.png" alt="Files and Folder Included as part of the Umbraco Web Application project" width="212" height="460" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Files-and-Folder-Included-as-part-of-the-Umbraco-Web-Application-project.png 212w, https://www.harshbaid.in/wp-content/uploads/2014/04/Files-and-Folder-Included-as-part-of-the-Umbraco-Web-Application-project-138x300.png 138w" sizes="auto, (max-width: 212px) 100vw, 212px" /></a></p>
<h2>STEp 4 &#8211; Umbraco MVC Configurations</h2>
<p>In Umbraco MVC, we generally not define routes. For this reason we will clean up the routes definition from &#8220;RouteConfig.cs&#8221; as shown in screen below.</p>
<h2><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Remove-or-Empty-the-Route-Config.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-856" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Remove-or-Empty-the-Route-Config.png" alt="Remove or Empty the Route Config" width="501" height="301" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Remove-or-Empty-the-Route-Config.png 501w, https://www.harshbaid.in/wp-content/uploads/2014/04/Remove-or-Empty-the-Route-Config-300x180.png 300w" sizes="auto, (max-width: 501px) 100vw, 501px" /></a></h2>
<p>Next we will configure the Umbraco site for default rendering to MVC as shown in the screen below.</p>
<p>Open the &#8220;umbracoSettings.config&#8221; from &#8220;Config&#8221; folder and change the template&#8217;s default Rendering to &#8220;Mvc&#8221;.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/Default-Rendering-Engine-to-MVC.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-857" src="http://www.harshbaid.in/wp-content/uploads/2014/04/Default-Rendering-Engine-to-MVC.png" alt="Default Rendering Engine to MVC" width="1366" height="746" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/Default-Rendering-Engine-to-MVC.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/Default-Rendering-Engine-to-MVC-300x163.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/Default-Rendering-Engine-to-MVC-1024x559.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>Note: This will affect the creation of new Templates from Umbraco Client/Administration region. Also in new version of Umbraco default rendering is &#8216;Mvc&#8217;, so you can skip this part for Umbraco version 7.1.1</p>
<h2>Conclusion</h2>
<p>So we have completed the exercise to Create Visual Studio Solution for Umbraco Web development and we also did configurations for ASP.NET MVC 5 version. After this much you can add the source files and folders to any Source Control that works for you. Your Team will love to work in Umbraco CMS after these efforts.</p>
<p>In the next post we will see the how Umbraco CMS works with MVC or in other words how to cook the ASP.NET MVC recipe in Umbraco and also migration points for converting existing ASP.NET MVC sites to Umbraco MVC.</p>
<p>&nbsp;</p>
<p>Keep sharing your ideas and suggestions in the comments.</p>
<p>Liked this post? Then spread this post to your friends.</p>
<p>&nbsp;</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.aaron-powell.com/umbraco/using-mvc-in-umbraco-4" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/116344910_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.aaron-powell.com/umbraco/using-mvc-in-umbraco-4" target="_blank">Using ASP.NET MVC in Umbraco 4</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/260760463_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank">Umbraco CMS with ASP.NET MVC &#8211; Part 1 Introduction</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/266789146_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/" target="_blank">Umbraco CMS with ASP.NET MVC &#8211; Part 2 Installation</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://creativewebspecialist.co.uk/2014/04/17/umbraco-mvc-regionalisation-of-error-messages/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/265027583_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://creativewebspecialist.co.uk/2014/04/17/umbraco-mvc-regionalisation-of-error-messages/" target="_blank">Umbraco MVC: Regionalisation of Error Messages</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.aaron-powell.com/umbraco/using-mvc-in-umbraco-4-revisited" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/noimg_106_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.aaron-powell.com/umbraco/using-mvc-in-umbraco-4-revisited" target="_blank">Revisiting using ASP.NET MVC in Umbraco 4</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=9907fe97-1e9f-4449-8cef-45e81e5bd420" alt="" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2014/04/30/umbraco-cms-asp-net-mvc-part-3-inside-visual-studio/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Umbraco CMS with ASP.NET MVC &#8211; Part 2 Installation</title>
		<link>https://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/</link>
					<comments>https://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/#comments</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Sun, 27 Apr 2014 08:22:12 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Umbraco CMS]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=824</guid>

					<description><![CDATA[In this post we will see how to start with Umbraco CMS website development with ASP.NET MVC. In previous Introduction post here you can read the brief roadmap about posts on Umbraco MVC. Step 1 &#8211; Download Latest Umbraco release Download fresh installation of Umbraco CMS from Official Umbraco Site. For this post Umbraco version 7.1.1 is used and use [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will see how to start with Umbraco CMS website development with ASP.NET MVC.</p>
<p>In previous Introduction post <a title="Umbraco CMS with ASP.NET MVC - Part 1 Introduction" href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank">here</a> you can read the brief roadmap about posts on Umbraco MVC.</p>
<h2>Step 1 &#8211; Download Latest Umbraco release</h2>
<p>Download fresh installation of Umbraco CMS from <a title="Umbraco - The open source ASP.NET CMS" href="http://www.umbraco.com/" target="_blank">Official Umbraco Site</a>. For this post <a title="Umbraco v7.1.1" href="http://our.umbraco.org/contribute/releases/711" target="_blank">Umbraco version 7.1.1</a> is used and use full source code release package highlighted in bold &#8220;UmbracoCms.7.1.1.zip&#8221; in screen below.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/1.0-Download-Umbraco-Source-release.png"><img loading="lazy" decoding="async" class="alignnone wp-image-827 size-full" src="http://www.harshbaid.in/wp-content/uploads/2014/04/1.0-Download-Umbraco-Source-release.png" alt="Download Umbraco full source code release package" width="1021" height="502" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/1.0-Download-Umbraco-Source-release.png 1021w, https://www.harshbaid.in/wp-content/uploads/2014/04/1.0-Download-Umbraco-Source-release-300x147.png 300w" sizes="auto, (max-width: 1021px) 100vw, 1021px" /></a></p>
<h2>Step 2 &#8211; Extract the package</h2>
<p>After downloading release package in &#8216;.zip&#8217; format extract the package to temporary location.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/1.1-Extract-Umbraco-Source-to-temporary-directory.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-828" src="http://www.harshbaid.in/wp-content/uploads/2014/04/1.1-Extract-Umbraco-Source-to-temporary-directory.png" alt="Extract Umbraco source code to temporary location" width="426" height="121" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/1.1-Extract-Umbraco-Source-to-temporary-directory.png 426w, https://www.harshbaid.in/wp-content/uploads/2014/04/1.1-Extract-Umbraco-Source-to-temporary-directory-300x85.png 300w" sizes="auto, (max-width: 426px) 100vw, 426px" /></a></p>
<p>&nbsp;</p>
<h2>Step 3 &#8211; Setup the website in IIS</h2>
<p>After extracting the release package, the next step is to copy the extracted content to IIS web root directory by creating new folder for the Umbraco MVC website or configure the extracted folder in IIS directly in next steps.</p>
<p>The extracted content will look something as shown below screenshot</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/2.-Copy-Extracted-Source-to-Web-Project-Directory.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-829" src="http://www.harshbaid.in/wp-content/uploads/2014/04/2.-Copy-Extracted-Source-to-Web-Project-Directory.png" alt="Copy extracted source code to IIS web root directory" width="181" height="477" /></a></p>
<p>Now Add a new Website in IIS. To open IIS manager you may use the cmd command &#8216;inetmgr.exe&#8217;.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/3.-Add-a-Website-in-IIS.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-830" src="http://www.harshbaid.in/wp-content/uploads/2014/04/3.-Add-a-Website-in-IIS.png" alt="Add a Website in IIS" width="354" height="320" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/3.-Add-a-Website-in-IIS.png 354w, https://www.harshbaid.in/wp-content/uploads/2014/04/3.-Add-a-Website-in-IIS-300x271.png 300w" sizes="auto, (max-width: 354px) 100vw, 354px" /></a></p>
<p>Now the Add Website configuration dialog will show up. Configure the Website as below with local domain binding &#8216;umbracomvc&#8217; on port &#8217;80&#8217;</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/4.-Add-a-Website-Configuration-Dialog-in-IIS.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-831" src="http://www.harshbaid.in/wp-content/uploads/2014/04/4.-Add-a-Website-Configuration-Dialog-in-IIS.png" alt="Add a Website - Configuration Dialog in IIS" width="599" height="576" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/4.-Add-a-Website-Configuration-Dialog-in-IIS.png 599w, https://www.harshbaid.in/wp-content/uploads/2014/04/4.-Add-a-Website-Configuration-Dialog-in-IIS-300x288.png 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></a></p>
<p>Now the IIS Website is configured.</p>
<h2>Step 4 &#8211; Create Local-only domain binding</h2>
<p>We have configured the IIS Website with local binding definition in above steps but to correctly resolve and browse host name &#8216;http://umbracomvc/&#8217; we need to configure the hosts entry in the local system with local IP address. Hosts file configuration and file path is shown in screenshot below.</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/5.-Edit-hosts-file-to-local-only-domain.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-832" src="http://www.harshbaid.in/wp-content/uploads/2014/04/5.-Edit-hosts-file-to-local-only-domain.png" alt="Edit hosts file to point to local only domain" width="1366" height="738" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/5.-Edit-hosts-file-to-local-only-domain.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/5.-Edit-hosts-file-to-local-only-domain-300x162.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/5.-Edit-hosts-file-to-local-only-domain-1024x553.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>Note: Open the notepad or notepad++ in Administrator mode. Additionally after this configuration use the cmd command &#8216;ipconfig /flushdns&#8217;</p>
<h2>Step 5 &#8211; Start Umbraco Installation</h2>
<p>After above steps browse the website in browser at URL &#8216;http://umbracomvc/&#8217; (refer &#8216;Host Name&#8217; configured in IIS Website Configuration Dialog for the URL if changed in your case). When browsing for first time Umbraco will automatically initiate the Installation wizard and ask for following &#8211; Configure the licence (if any), Database connection, User credentials for Umbraco Admin, Starter Kit theme.</p>
<p>Few excerpts from the installation wizard are shown below:</p>
<p>1. Installation Welcome screen</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/6.-Open-browser-and-start-installation.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-833" src="http://www.harshbaid.in/wp-content/uploads/2014/04/6.-Open-browser-and-start-installation.png" alt="Open browser and start umbraco installation" width="1366" height="738" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/6.-Open-browser-and-start-installation.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/6.-Open-browser-and-start-installation-300x162.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/6.-Open-browser-and-start-installation-1024x553.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>2. Select &#8216;No thanks, do not install a Starter Kit&#8217; in Starter Kit Selection Step</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/7.-Select-no-starterkit.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-834" src="http://www.harshbaid.in/wp-content/uploads/2014/04/7.-Select-no-starterkit.png" alt="Select No Starter Kit" width="1366" height="738" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/7.-Select-no-starterkit.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/7.-Select-no-starterkit-300x162.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/7.-Select-no-starterkit-1024x553.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>3. Final step screen</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/8.-Untitled-Installation-final-step.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-835" src="http://www.harshbaid.in/wp-content/uploads/2014/04/8.-Untitled-Installation-final-step.png" alt="Umbraco Installation final step" width="1366" height="738" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/8.-Untitled-Installation-final-step.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/8.-Untitled-Installation-final-step-300x162.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/8.-Untitled-Installation-final-step-1024x553.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>4. Verify the Umbraco Admin panel access at http://UmbracoMvc/Umbraco/ with configured user credentials in Installation wizard</p>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/04/9.-Umbraco-Administration.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-836" src="http://www.harshbaid.in/wp-content/uploads/2014/04/9.-Umbraco-Administration.png" alt="Umbraco Administration" width="1366" height="630" srcset="https://www.harshbaid.in/wp-content/uploads/2014/04/9.-Umbraco-Administration.png 1366w, https://www.harshbaid.in/wp-content/uploads/2014/04/9.-Umbraco-Administration-300x138.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/04/9.-Umbraco-Administration-1024x472.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>Note: Above Installation wizard screenshot were captured using Umbraco CMS version 7.0.4 but later upgraded to Umbraco CMS version 7.1.1</p>
<h2>Conclusion</h2>
<p>In this post we went thru steps to download &amp; install Umbraco CMS on local system. In the next post we will see how to create Visual Studio Solution for this website.</p>
<p>&nbsp;</p>
<p>I hope this post was easy to understand and screenshot images helped you to visually connect with the minimum required steps.</p>
<p>If you liked this kindly like or subscribe. Keep comments flowing if you have any ideas or suggestions.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/260760463_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/" target="_blank">Umbraco CMS with ASP.NET MVC &#8211; Part 1 Introduction</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.flightpath.com/insights/index.php/2014/04/5-reasons-you-should-consider-umbraco-for-next-cms/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/265567104_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.flightpath.com/insights/index.php/2014/04/5-reasons-you-should-consider-umbraco-for-next-cms/" target="_blank">5 Reasons You Should Consider Umbraco For Your Next CMS</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://creativewebspecialist.co.uk/2014/04/17/umbraco-mvc-regionalisation-of-error-messages/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/265027583_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://creativewebspecialist.co.uk/2014/04/17/umbraco-mvc-regionalisation-of-error-messages/" target="_blank">Umbraco MVC: Regionalisation of Error Messages</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=4b265a00-a1e4-4ba8-9500-fc513a71e502" alt="" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Umbraco CMS with ASP.NET MVC &#8211; Part 1 Introduction</title>
		<link>https://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/</link>
					<comments>https://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Sat, 29 Mar 2014 20:41:26 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Information Architecture]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Presentation Architecture]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Umbraco CMS]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=801</guid>

					<description><![CDATA[Brief about this post This post describes about agenda and upcoming articles regarding building a simple website using Umbraco CMS with ASP.NET MVC framework. In this Series of Posts on Umbraco we will be learning about&#8230; Installation of Umbraco CMS Setup Visual Studio Solution Concept of MVC Recipe in Umbraco Information Architecture in Umbraco Presentation [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>Brief about this post</h2>
<p><figure id="attachment_803" aria-describedby="caption-attachment-803" style="width: 300px" class="wp-caption alignnone"><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Introduction1.png"><img loading="lazy" decoding="async" class="size-medium wp-image-803 " title="Getting Started with Umbraco MVC" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Introduction1-300x154.png" alt="Getting Started with Umbraco MVC" width="300" height="154" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Introduction1-300x154.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Introduction1.png 599w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-803" class="wp-caption-text">Getting Started with <a class="zem_slink" title="Umbraco" href="http://umbraco.org" target="_blank" rel="homepage noopener">Umbraco</a> MVC</figcaption></figure></p>
<p>This post describes about agenda and upcoming articles regarding building a simple website using Umbraco CMS with <a title="ASP.NET MVC Framework" href="http://www.asp.net/mvc/" target="_blank" rel="homepage noopener">ASP.NET MVC framework</a>.</p>
<h2>In this Series of Posts on Umbraco we will be learning about&#8230;</h2>
<ol>
<li>Installation of Umbraco CMS</li>
<li>Setup <a class="zem_slink" title="Microsoft Visual Studio" href="http://www.microsoft.com/visualstudio" target="_blank" rel="homepage noopener">Visual Studio</a> Solution</li>
<li>Concept of MVC Recipe in Umbraco</li>
<li><a class="zem_slink" title="Information architecture" href="http://en.wikipedia.org/wiki/Information_architecture" target="_blank" rel="noopener wikipedia">Information Architecture</a> in Umbraco</li>
<li>Presentation Architecture in Umbraco</li>
</ol>
<h2>Precap on Article Series</h2>
<h3><a title="This post describes about initial installation of Umbraco CMS with ASP.NET MVC framework and configuring Website in local IIS and domain name hosts entry." href="http://www.harshbaid.in/2014/04/27/umbraco-cms-asp-net-mvc-part-2-installation/" target="_blank" rel="noopener">Installation of Umbraco CMS</a></h3>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Installation-Banner.png"><img loading="lazy" decoding="async" class="size-medium wp-image-804 alignnone" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Installation-Banner-300x95.png" alt="Introduction &amp; Installation of Umbraco CMS" width="300" height="95" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Installation-Banner-300x95.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Installation-Banner.png 616w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>In this post, we will see how to set up Umbraco CMS using Siteroot zip package, required configuration in <a class="zem_slink" title="Internet Information Services" href="http://www.iis.net/" target="_blank" rel="homepage noopener">IIS</a>, and creating local-only domain name in ‘hosts’ file.</p>
<h3><a title="In this post for Umbraco CMS we will learn creating Visual Studio Solution for adding our code files in Source Control and few ASP.NET MVC configurations" href="http://www.harshbaid.in/2014/04/30/umbraco-cms-asp-net-mvc-part-3-inside-visual-studio/" target="_blank" rel="noopener">SETUP Visual Studio Solution with Umbraco CMS</a></h3>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Visual-Studio-Solution.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-805" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Visual-Studio-Solution-300x85.png" alt="Create Visual Studio Solution with Umbraco CMS" width="300" height="85" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Visual-Studio-Solution-300x85.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Visual-Studio-Solution.png 770w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>In this post, we will to see creating Visual Studio solution for Umbraco CMS. This step will help us in understanding how to version control source files of the CMS then we will be moving slowly in <a class="zem_slink" title=".NET Framework" href="http://www.microsoft.com/net" target="_blank" rel="homepage noopener">.NET</a> Developer’s comfort zone which is &#8216;Visual Studio&#8217;.</p>
<h3>Concept MVC Recipe in Umbraco CMS</h3>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-806" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe-300x231.png" alt="Concept MVC Recipe in Umbraco CMS" width="300" height="231" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe-300x231.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-MVC-Recipe.png 551w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>In this post you will get the concept of how ASP.NET MVC works in Umbraco CMS. And put all Umbraco things together for better utilizing the CMS abilities in ASP.NET MVC framework. Thus this post will be more on theoretical part with some appealing pictures.</p>
<h3>Information Architecture in Umbraco CMS</h3>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Information-Architecture.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-807" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Information-Architecture-300x94.png" alt="Information Architecture in Umbraco CMS" width="300" height="94" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Information-Architecture-300x94.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Information-Architecture.png 532w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>In this article we will get to know about importance of Information Architecture, also known as &#8216;IA&#8217; in CMS world. We will see how to define Information Architecture based on sample HTML5 site that I have randomly picked from the Internet for simplicity.</p>
<h3>Presentation Architecture in Umbraco CMS</h3>
<p><a href="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Presentation-Architecture.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-808" src="http://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Presentation-Architecture-300x71.png" alt="Completed Website in Umbraco CMS" width="300" height="71" srcset="https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Presentation-Architecture-300x71.png 300w, https://www.harshbaid.in/wp-content/uploads/2014/03/Banner-Presentation-Architecture.png 773w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>This article will dive into technical details of coding the website. Through this post we will complete the website building with Umbraco and MVC. And learn little something about debugging Umbraco sites in Visual Studio.</p>
<h2>Concluding</h2>
<p>So guys this was all about a precap on the upcoming articles on building a very simple website using Umbraco CMS with ASP.NET MVC framework.</p>
<p>Later on I will link all the respective articles in the series to make it easy to navigate on this topic.</p>
<p>Till then keep reading and if you like this post please like, comment and share.</p>
<p>Cheers <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://katpro.wordpress.com/2014/03/04/umbraco-cms-development-services/" target="_blank" rel="noopener"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/253269382_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://katpro.wordpress.com/2014/03/04/umbraco-cms-development-services/" target="_blank" rel="noopener">Umbraco CMS Development Services!!!!!!!!!</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://tek-works.com/learning-umbraco/" target="_blank" rel="noopener"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/noimg_86_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://tek-works.com/learning-umbraco/" target="_blank" rel="noopener">Learning Umbraco</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.dotnetrocks.com/default.aspx?ShowNum=952" target="_blank" rel="noopener"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/249727431_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://www.dotnetrocks.com/default.aspx?ShowNum=952" target="_blank" rel="noopener">Building Umbraco with Benjamin Howarth</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://hirecmsdevelopers.wordpress.com/2013/04/11/dotnetnuke-vs-umbraco-fight-the-more-popular-asp-net-cms-war/" target="_blank" rel="noopener"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/noimg_108_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://hirecmsdevelopers.wordpress.com/2013/04/11/dotnetnuke-vs-umbraco-fight-the-more-popular-asp-net-cms-war/" target="_blank" rel="noopener">DotNetNuke vs Umbraco Fight the more popular ASP.NET CMS war</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://stackoverflow.com/questions/17332373/umbraco-6-deployed-to-production-pages-render-blank" target="_blank" rel="noopener"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" src="http://i.zemanta.com/noimg_105_80_80.jpg" alt="" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 83px; padding: 5px 2px 0 2px; background-image: none;" href="http://stackoverflow.com/questions/17332373/umbraco-6-deployed-to-production-pages-render-blank" target="_blank" rel="noopener">Umbraco 6 deployed to production, pages render blank</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=9bb86446-ed0e-43c2-a719-9d82bf5c98c0" alt="" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2014/03/30/umbraco-cms-asp-net-mvc-part-1/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Serialize and Deserialize POCO classes in XML</title>
		<link>https://www.harshbaid.in/2013/12/23/serialize-deserialize-poco-classes-xml/</link>
					<comments>https://www.harshbaid.in/2013/12/23/serialize-deserialize-poco-classes-xml/#respond</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Sun, 22 Dec 2013 19:34:47 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Deserialization]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[RESTful API]]></category>
		<category><![CDATA[Serialization]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=732</guid>

					<description><![CDATA[Serialize and Deserialize the Plain Old CLR Object (POCO) class is the theme of this post and I will be discussing regarding XML-based Serialization and Deserialization. Note: This post is purely about Serialization and not regarding how to write Serializable POCO classes. Image Illustration POST Index Serialization Definition Conversion Steps Involved Source Code Deserialization Definition Conversion Steps Involved Source [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span style="line-height: 1.5;">Serialize and Deserialize the Plain Old CLR Object (POCO) class is the theme of this post and I will be discussing regarding <a class="zem_slink" title="XML" href="http://en.wikipedia.org/wiki/XML" target="_blank" rel="wikipedia">XML-based</a> Serialization and Deserialization.</span></p>
<p><em>Note: This post is purely about Serialization and not regarding how to write <em>Serializable </em>POCO classes.</em></p>
<h2>Image Illustration</h2>
<p><figure id="attachment_748" aria-describedby="caption-attachment-748" style="width: 868px" class="wp-caption aligncenter"><a href="http://www.harshbaid.in/wp-content/uploads/2013/12/Serialization-Mechanism.png"><img loading="lazy" decoding="async" class=" wp-image-748 " title="Serialization Mechanism" alt="Serialization Mechanism" src="http://www.harshbaid.in/wp-content/uploads/2013/12/Serialization-Mechanism.png" width="868" height="248" srcset="https://www.harshbaid.in/wp-content/uploads/2013/12/Serialization-Mechanism.png 868w, https://www.harshbaid.in/wp-content/uploads/2013/12/Serialization-Mechanism-300x85.png 300w" sizes="auto, (max-width: 868px) 100vw, 868px" /></a><figcaption id="caption-attachment-748" class="wp-caption-text">Shows overall process of Serialization</figcaption></figure></p>
<h2>POST Index</h2>
<ol>
<li><a href="#Serialization">Serialization</a>
<ul>
<li><a href="#SerializationDefinition">Definition</a></li>
<li><a href="#SerializationConversion">Conversion</a></li>
<li><a href="#SerializationSteps">Steps Involved</a></li>
<li><a href="#SerializationSourceCode">Source Code</a></li>
</ul>
</li>
<li><a href="#Deserialization">Deserialization</a>
<ul>
<li><a href="#DeserializationDefinition">Definition</a></li>
<li><a href="#DeserializationConversion">Conversion</a></li>
<li><a href="#DeserializationSteps">Steps Involved</a></li>
<li><a href="#DeserializationSourceCode">Source Code</a></li>
</ul>
</li>
<li><a href="#Uses">Uses</a></li>
<li><a title="Sample Application - Xml Serialization" href="https://www.dropbox.com/s/whrasv68w5ts49v/XmlSerialization.Sample.zip" target="_blank">Download Source code</a></li>
</ol>
<p>&nbsp;</p>
<h2 id="Serialization">For Serialization</h2>
<h3 id="SerializationDefinition">DEFINITION</h3>
<blockquote><p>Serialization is the process of translating data structures or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and reconstructed later in the same or another computer environment. Also known as deflating or marshalling.</p>
<p>Source: <a title="Serialization" href="http://en.wikipedia.org/wiki/Serialization" target="_blank">Wikipedia</a></p></blockquote>
<h3 id="SerializationConversion">Conversion</h3>
<p><em>POCO class</em> to<em> String</em></p>
<h3 id="SerializationSteps">Steps</h3>
<ol>
<li>Input POCO class instance</li>
<li>Declare Encoding s<span style="line-height: 1.5;">uch as ASCII, <a class="zem_slink" title="UTF-8" href="http://en.wikipedia.org/wiki/UTF-8" target="_blank" rel="wikipedia">UTF-8</a>, and BigEndianUnicode, or else</span></li>
<li>Declare Stream for In-Memory Serialization</li>
<li>Declare Serializer</li>
<li>Execute Serialization method</li>
<li>Fetch the serialized XML</li>
<li>Output is String value ( XML value )</li>
</ol>
<h3 id="SerializationSourceCode">Source Code</h3>
<pre class="brush: csharp; gutter: true">public static string XmlSerialize(T sourceValue) where T : class
{
	// If source is empty, throw Exception
	if (sourceValue == null)
		throw new NullReferenceException(&quot;sourceValue is required&quot;);

	// Define encoding
	var encoding = Encoding.ASCII;

	// Declare the resultant variable
	string targetValue;

	// Using MemoryStream for In-Process conversion
	using (var memoryStream = new MemoryStream())
	{
		// Declare Stream with required Encoding
		using (var streamWriter = new StreamWriter(memoryStream, encoding))
		{
			// Declare Xml Serializer with source value Type (serializing type)
			var xmlSerializer = new XmlSerializer(sourceValue.GetType());

			// Perform Serialization of the source value and write to Stream
			xmlSerializer.Serialize(streamWriter, sourceValue);

			// Grab the serialized string
			targetValue = encoding.GetString(memoryStream.ToArray());
		}
	}

	// Return the resultant value;
	return targetValue;
}</pre>
<p>&nbsp;</p>
<h2 id="Deserialization">FOR DESERIALIZATION</h2>
<h3 id="DeserializationDefinition">DEFINITION</h3>
<blockquote><p>The opposite operation of Serialization, i.e. extracting a data structure from a series of bytes, is deserialization. Also known as inflating or unmarshalling.</p>
<p>Source: <a title="Serialization" href="http://en.wikipedia.org/wiki/Serialization" target="_blank">Wikipedia</a></p></blockquote>
<h3 id="DeserializationConversion">CONVERSION</h3>
<p><em>String</em> to <em>POCO Class</em></p>
<h3 id="DeserializationSteps">STEPS</h3>
<ol>
<li>Input String value ( XML value )</li>
<li>Declare Encoding</li>
<li>Declare Serializer
<ul>
<li>Same Serializer class is used for Serializing and Deserializing</li>
</ul>
</li>
<li>Declare Stream for In-Memory Deserialization</li>
<li>Execute Deserialization method</li>
<li>Type cast the return Object to POCO type</li>
<li>Output is POCO class instance</li>
</ol>
<h3 id="DeserializationSourceCode">Source CODE</h3>
<pre class="brush: csharp; gutter: true">public static T XmlDeserialize(string sourceValue) where T : class
{
	// If source is empty, throw Exception
	if (string.IsNullOrWhiteSpace(sourceValue))
		throw new NullReferenceException(&quot;sourceValue is required&quot;);

	// Define encoding
	var encoding = Encoding.ASCII;

	// Declare the resultant variable
	T targetValue;

	// Declare Xml Serializer with target value Type (serialized type)
	var xmlSerializer = new XmlSerializer(typeof(T));

	// Get the source value to bytes with required Encoding
	byte[] sourceBytes = encoding.GetBytes(sourceValue);

	// Using MemoryStream for In-Process conversion
	using (var memoryStream = new MemoryStream(sourceBytes))
	{
		// Read stream into XML-based reader
		using (var xmlTextReader = new XmlTextReader(memoryStream))
		{
			// Perform Deserialization from the stream and Convert to target type
			targetValue = xmlSerializer.Deserialize(xmlTextReader) as T;
		}
	}

	// Return the resultant value;
	return targetValue;
}</pre>
<p>&nbsp;</p>
<h2 id="Uses">Uses</h2>
<ol>
<li>For Deep Cloning the objects</li>
<li>For integrating with <a class="zem_slink" title="Representational state transfer" href="http://en.wikipedia.org/wiki/Representational_state_transfer" target="_blank" rel="wikipedia">RESTful API</a> and Remoting Services</li>
<li>For persisting the User Data for Offline apps which later uses various Synchronization methods</li>
<li>In .NET apps, Serialization is used for saving and accessing settings from web.config or app.config</li>
<li><a class="zem_slink" title="Remote procedure call" href="http://en.wikipedia.org/wiki/Remote_procedure_call" target="_blank" rel="wikipedia">Remote procedure calls</a> ( RPC )</li>
<li>In <a title="Distributed memory - Wikipedia" href="http://en.wikipedia.org/wiki/Distributed_memory" target="_blank">Distributed Memory</a> Applications, such <a title="AppFabric for Windows Server - MSDN" href="http://msdn.microsoft.com/en-IN/windowsserver/ee695849.aspx" target="_blank">AppFabric for Windows Server</a> which is used for Middle tier caching in Load balancing situation</li>
<li>For Data Exchange in cross-platform applications such as .NET apps integration with Android apps or Windows Phone apps.</li>
</ol>
<p>&nbsp;</p>
<h2><a title="Sample Application - Xml Serialization" href="https://www.dropbox.com/s/whrasv68w5ts49v/XmlSerialization.Sample.zip" target="_blank">Download Source Code</a></h2>
<p>&nbsp;</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://web.archive.org/web/20140409134403/http://dominguezkonda.wordpress.com/2013/12/11/xml-serialization/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/229279660_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://web.archive.org/web/20140409134403/http://dominguezkonda.wordpress.com/2013/12/11/xml-serialization/" target="_blank">Xml Serialization</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://mikesdotnet.wordpress.com/?p=216" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/179449932_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://mikesdotnet.wordpress.com/?p=216" target="_blank">Serializing an object into XML, Soap and Binary</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://codebuildplay.wordpress.com/2013/11/29/how-to-serialize-objects-to-xml-without-namespace-and-declaration/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/225568597_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://codebuildplay.wordpress.com/2013/11/29/how-to-serialize-objects-to-xml-without-namespace-and-declaration/" target="_blank">How to Serialize objects to XML without namespace and declaration</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/noimg_115_80_80.jpg" />Generic Xml Serializer</li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://balajidotnet.wordpress.com/2013/11/27/xml-deserialization-with-invalid-character/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/224908788_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://balajidotnet.wordpress.com/2013/11/27/xml-deserialization-with-invalid-character/" target="_blank">XML Deserialization with invalid character</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/noimg_65_80_80.jpg" />A StreamExtension class good to have when working with XML de/serializing</li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://technic8x.wordpress.com/2013/06/18/serialization-c-and-visual-basic/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/178270856_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://technic8x.wordpress.com/2013/06/18/serialization-c-and-visual-basic/" target="_blank">Serialization (C# and Visual Basic)</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" alt="" src="http://img.zemanta.com/pixy.gif?x-id=09b2e793-724a-4308-8d41-6fc937a52111" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2013/12/23/serialize-deserialize-poco-classes-xml/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to be a Good Team Manager</title>
		<link>https://www.harshbaid.in/2013/12/07/good-team-manager/</link>
					<comments>https://www.harshbaid.in/2013/12/07/good-team-manager/#respond</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Fri, 06 Dec 2013 21:19:16 +0000</pubDate>
				<category><![CDATA[Personal Productivity]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Manager]]></category>
		<category><![CDATA[Project manager]]></category>
		<category><![CDATA[Team management]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=676</guid>

					<description><![CDATA[Introduction Everyone want to be a Good Person, and Team Manager. Building healthy culture, promoting innovation and bringing team together are key indicators of a successful manager. This post talks about five recurring misconceptions related to team management that team manager make which produce opposite results and overcoming those such as: unhealthy workplaces, unmotivated employees and frustrated [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>
<a href='https://www.harshbaid.in/2013/12/07/good-team-manager/project-manager-feel-good/'><img loading="lazy" decoding="async" width="150" height="150" src="https://www.harshbaid.in/wp-content/uploads/2013/12/project-manager-feel-good-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="Feel good as Team Manager" /></a>
<a href='https://www.harshbaid.in/2013/12/07/good-team-manager/5-responsibilities-of-a-great-sales-manager/'><img loading="lazy" decoding="async" width="150" height="150" src="https://www.harshbaid.in/wp-content/uploads/2013/12/5-Responsibilities-of-a-Great-Sales-Manager-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="Written communication for Team Manager" /></a>
<a href='https://www.harshbaid.in/2013/12/07/good-team-manager/project-manager-meeting-organization1/'><img loading="lazy" decoding="async" width="150" height="150" src="https://www.harshbaid.in/wp-content/uploads/2013/12/project-manager-meeting-organization1-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="Team Manager meeting organization" /></a>
</p>
<h2>Introduction</h2>
<p>Everyone want to be a Good Person, and Team Manager. Building healthy culture, promoting innovation and bringing team together are key indicators of a successful manager.</p>
<p>This post talks about five recurring misconceptions related to team management that team manager make which produce opposite results and overcoming those such as: unhealthy workplaces, unmotivated employees and frustrated teams.</p>
<p>Here are those points of managing team that will help you turn around the way that you supervise and manage team.</p>
<h3>Myth #1</h3>
<blockquote><p>The paycheck is the reward. That should be enough.</p></blockquote>
<p>A paycheck will not motivate your team members to move mountains and people do need good paycheck to eat, but an &#8220;A&#8221; performance generally requires more than just that. A team member vested in the relationship with his team and team manager will be happier and as a result more productive, more innovative and stay loyal as the company grows and changes. Usually appreciating their work efforts from members will motivate them and increase efficiency and work satisfaction within teams.</p>
<p>&nbsp;</p>
<h3>Myth #2</h3>
<blockquote><p>They work for me.</p></blockquote>
<p>It is your job to make your team members successful. A good team manager strives to eliminate obstacles for the team members. Try spending a day figuring out what you can do to make your team&#8217;s life easier. What obstacles can you remove to help your team meet their goals and achieve their deliverable? Yes, they are working for company as employee, but a good manager is also a servant of his team members.</p>
<p>&nbsp;</p>
<h3>Myth #3</h3>
<blockquote><p>I&#8217;ve told them this multiple times, they should be doing it already.</p></blockquote>
<p>Many people have a difficult time keeping track of verbal suggestions and To-dos. Verbal feedback is much more effective when paired with written feedback. Try adding a followup email to your verbal suggestions. A quick email can serve as a good reference point if the problem persists, can create a paper trail of known issues to use for more formal feedback. This allows the team members to go back and see a history of their progress. Yes, sometimes person may forget, but accountability is essential to good management and it is your job to hold yourself and other accountable so as to get final things done on time.</p>
<p>&nbsp;</p>
<h3>Myth #4</h3>
<blockquote><p>My team&#8217;s mistakes cost me money.</p></blockquote>
<p>Mistakes teams make are typically unintentional and are an opportunity to improve existing systems. While some large mistakes can be very costly. The small day-to-day mistakes you deal with as a team manager are perfect opportunities to understand flaws in your system. This upfront cost of identifying a hole in your system will save you money long-term if instead of blaming someone, you use it as a way to give them feedback and improve the team efficiency and accuracy.</p>
<p>&nbsp;</p>
<h3>Myth #5</h3>
<blockquote><p>It&#8217;s faster for me to do it myself, than to train someone else to do it.</p></blockquote>
<p>Training takes time, but the time saved after your team knows the ropes can give you more time to focus on more complicated tasks. Once the team knows that how to drive certain things it can enable you to work on new things and creating new opportunities for you and your team. Moreover you will be always operating at maximum capacity.</p>
<p>&nbsp;</p>
<h2>Concluding to be Good TEAM Manager</h2>
<p>When faced with challenges, a team manager should identify how these challenges fit within the context of growing their projects, business and creating a stronger organizational structure. By trying these strategies, each obstacle sheds light on a learning opportunity to improve your managing skills, and learn about yourself and your team. Adopting these alternative views of the five common myths of team management is a great place to start your journey to becoming a great team manager.</p>
<p>&nbsp;</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.inc.com/dino-signore/building-a-management-team.html" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="The Right Management Team Transforms Chaos Into Calm" src="http://i.zemanta.com/222179709_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://www.inc.com/dino-signore/building-a-management-team.html" target="_blank">The Right Management Team Transforms Chaos Into Calm</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://bionicsisters.wordpress.com/2013/11/04/the-art-of-managing-teams-well/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="Learning How To Manage Teams Effectively" src="http://i.zemanta.com/217647141_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://bionicsisters.wordpress.com/2013/11/04/the-art-of-managing-teams-well/" target="_blank">Learning How To Manage Teams Effectively</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.javacodegeeks.com/2013/11/how-many-people-can-you-manage-as-a-manager.html" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="How Many People Can You Manage as a Manager?" src="http://i.zemanta.com/225605573_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://www.javacodegeeks.com/2013/11/how-many-people-can-you-manage-as-a-manager.html" target="_blank">How Many People Can You Manage as a Manager?</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.lottspace.com/manage-your-management-team.html" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="Manage Your Management Team" src="http://i.zemanta.com/222030719_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://www.lottspace.com/manage-your-management-team.html" target="_blank">Manage Your Management Team</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://blog.loopup.com/communicating-effectively/managing-remote-teams-top-4-tips/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="Managing Remote Teams: Top 4 Tips for Success" src="http://i.zemanta.com/218520448_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://blog.loopup.com/communicating-effectively/managing-remote-teams-top-4-tips/" target="_blank">Managing Remote Teams: Top 4 Tips for Success</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://www.workzone.com/6-signs-great-manager/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="6 Signs of a Great Manager" src="http://i.zemanta.com/noimg_39_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://www.workzone.com/6-signs-great-manager/" target="_blank">6 Signs of a Great Manager</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" alt="Zemanta" src="http://img.zemanta.com/pixy.gif?x-id=410d72d5-edca-48ee-9c68-1e15e1f2efba" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2013/12/07/good-team-manager/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Code Generation using Sitecore Rocks and Visual Studio</title>
		<link>https://www.harshbaid.in/2013/09/23/code-generation-using-sitecore-rocks-and-visual-studio/</link>
					<comments>https://www.harshbaid.in/2013/09/23/code-generation-using-sitecore-rocks-and-visual-studio/#comments</comments>
		
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Mon, 23 Sep 2013 09:15:57 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[code generation]]></category>
		<category><![CDATA[CodeGen]]></category>
		<category><![CDATA[Microsoft Visual Studio]]></category>
		<category><![CDATA[Sitecore Rocks]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">http://www.harshbaid.in/?p=655</guid>

					<description><![CDATA[Index Points Introduction Assumptions Code Generation Steps using Sitecore Rocks Image Guided Steps for Code Generation using Sitecore Rocks Conclusion Reference Links &#160; Introduction This post will guide you on how to work with code generation using Sitecore Rocks. Assumptions You have already setup Sitecore site visual studio solution. If not then you may follow the steps [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>Index Points</h2>
<ol>
<li>Introduction</li>
<li>Assumptions</li>
<li>Code Generation Steps using Sitecore Rocks</li>
<li>Image Guided Steps for Code Generation using Sitecore Rocks</li>
<li>Conclusion</li>
<li>Reference Links</li>
</ol>
<p>&nbsp;</p>
<h2>Introduction</h2>
<p>This post will guide you on how to work with code generation using Sitecore Rocks.</p>
<h2>Assumptions</h2>
<ul>
<li>You have already setup Sitecore site visual studio solution.
<ul>
<li>If not then you may follow the steps mentioned <a title="Visual Studio 2010 - Sitecore Project Creation" href="http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2010/10/Simplify-Visual-Studio-Project-Creation.aspx" target="_blank">here</a> on John West&#8217;s Blog or Check out Sitecore training series on YouTube &#8211; <a style="line-height: 1.5;" href="http://www.youtube.com/watch?v=UHyDQ1lx9S0">Sitecore Training : Developer Fundamental Series &#8211; Creating Visual Studio Project For Sitecore</a>.</li>
</ul>
</li>
<li>Installed and Configured Sitecore Rocks with Visual Studio solution for Sitecore site.
<ul>
<li>If not then check the Sitecore training series on YouTube &#8211;
<ul>
<li><a href="http://www.youtube.com/watch?v=o0vh51tzVCM">Sitecore Rocks Training: Installation Series &#8211; Sitecore Rocks Visual Studio Plug-in Installation</a></li>
<li><a href="http://www.youtube.com/watch?v=Vu0dtMRfAv8">Sitecore Rocks Training : Installation Series &#8211; Creating a Sitecore Rocks Connection</a></li>
<li><a href="http://www.youtube.com/watch?v=BbTguDprxCE">Sitecore Rocks Training : Installation Series &#8211; Installing Sitecore Rocks from VSIX</a></li>
<li><a href="http://www.youtube.com/watch?v=z0LOXyamkjk">Sitecore Rocks Training : Installation Series &#8211; Sitecore Rocks Windows Desktop Installer</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2>Code Generation Steps using Sitecore Rocks</h2>
<p>For Code generation using Sitecore Rocks the steps are:</p>
<ol>
<li>Setup the Sitecore site using .exe installer or Siteroot zip &#8211; available from <a title="Sitecore Developer Network" href="http://sdn.sitecore.net" target="_blank">Sitecore SDN</a>.</li>
<li>Setup Sitecore site in Visual studio solution &#8211; Creating .sln file.</li>
<li><span style="line-height: 1.5;">Install Sitecore Rocks (if not already installed).</span></li>
<li>Connect the Visual studio solution with Sitecore site using Hard Rock web service exposed by Sitecore.</li>
<li><span style="line-height: 1.5;">Create new StronglyTypedItems file in Sitecore visual studio solution, extension will be .scx, with appropriate name &#8211; for example &#8220;CodeGenerationFile.scx&#8221;.</span></li>
<li>Right-click on created file &#8220;CodeGenerationFile.scx&#8221; and execute the command &#8216;Run Custom Tool&#8217; for code generation.</li>
</ol>
<blockquote><p>Note: Check YouTube video series linked in assumption section for information on how to install and setup Sitecore Rocks and Sitecore Visual studio solution.</p></blockquote>
<h2>Image Guided Steps for Code Generation using Sitecore Rocks</h2>
<p><span style="line-height: 1.5;">The visual steps for Sitecore Rocks code generation are as below:</span></p>
<p><figure id="attachment_657" aria-describedby="caption-attachment-657" style="width: 300px" class="wp-caption aligncenter"><a href="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-create-strongly-typed-items-file.png"><img loading="lazy" decoding="async" class=" wp-image-657   " alt="sitecore codegen - create strongly typed items file" src="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-create-strongly-typed-items-file-300x158.png" width="300" height="158" srcset="https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-create-strongly-typed-items-file-300x158.png 300w, https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-create-strongly-typed-items-file-1024x541.png 1024w, https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-create-strongly-typed-items-file.png 1305w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-657" class="wp-caption-text">Create new file for Code generation<br />Right click on project &gt; Add &gt; New Item &gt; Visual C# &gt; Sitecore &gt; Code Generation &gt; select Strongly Typed Items &gt; click Add</figcaption></figure></p>
<p><figure id="attachment_658" aria-describedby="caption-attachment-658" style="width: 300px" class="wp-caption aligncenter"><a href="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-run-custom-tool.png"><img loading="lazy" decoding="async" class=" wp-image-658" alt="sitecore codegen - run custom tool" src="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-run-custom-tool-300x248.png" width="300" height="248" srcset="https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-run-custom-tool-300x248.png 300w, https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-run-custom-tool.png 557w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-658" class="wp-caption-text">Run custom tool command to execute and generate code files</figcaption></figure></p>
<p><figure id="attachment_659" aria-describedby="caption-attachment-659" style="width: 300px" class="wp-caption aligncenter"><a href="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-code-generated-in-designer-file.png"><img loading="lazy" decoding="async" class=" wp-image-659" alt="sitecore codegen - code generated in designer file" src="http://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-code-generated-in-designer-file-300x161.png" width="300" height="161" srcset="https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-code-generated-in-designer-file-300x161.png 300w, https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-code-generated-in-designer-file-1024x551.png 1024w, https://www.harshbaid.in/wp-content/uploads/2013/09/sitecore-codegen-code-generated-in-designer-file.png 1286w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-659" class="wp-caption-text">Verify the Code generated in CodeGenerationFile.Designer.cs file (File name may differ as per added file)</figcaption></figure></p>
<h2>Conclusion</h2>
<p>Code generation with Sitecore Rocks is very easy to follow. After generating code using Sitecore Rocks, developers may move the classes to relatively named class files by themselves or using command &#8216;Move class to file&#8217; using ReSharper tool.</p>
<h2>Reference Links</h2>
<ul>
<li><a title="Sitecore Training Videos" href="http://www.youtube.com/user/sitecoreceptraining" target="_blank">Sitecore Training YouTube channel</a></li>
<li><a title="How to invoke 'Sitecore Rocks' code generation?" href="http://stackoverflow.com/q/6962920/468718" target="_blank">Question on Stackoverflow for how to use Sitecore Rocks for Code Generation</a></li>
<li><a title="Sitecore Rocks Visual Studio Add Item Templates" href="http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2011/07/Sitecore-Rocks-Visual-Studio-Add-Item-Templates.aspx" target="_blank">Blog post &#8211; Sitecore Rocks Visual Studio Add Item Templates<br />
</a></li>
<li><a title="Simplify Visual Studio Project Creation" href="http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2010/10/Simplify-Visual-Studio-Project-Creation.aspx" target="_blank">Blog post &#8211; Creating Sitecore Visual Studio Solution</a></li>
</ul>
<p><em>Do comment if you like this post or have any opinions.</em></p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; padding: 0; overflow: hidden;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://mikerobbins.co.uk/2013/09/06/how-to-use-sitecore-nuget/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/199679745_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://mikerobbins.co.uk/2013/09/06/how-to-use-sitecore-nuget/" target="_blank">How to use Sitecore Nuget</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://sitecore360.wordpress.com/2013/08/24/sitecore-mvc-and-ninject-part-one-2/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/noimg_41_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://sitecore360.wordpress.com/2013/08/24/sitecore-mvc-and-ninject-part-one-2/" target="_blank">Sitecore MVC and Ninject Part One</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://kevinobee.wordpress.com/2013/08/04/fixing-up-sitecore-nuget-connections/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/190794900_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://kevinobee.wordpress.com/2013/08/04/fixing-up-sitecore-nuget-connections/" target="_blank">Fixing up Sitecore.Nuget connections</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://sitecore360.wordpress.com/2013/08/24/reusability-of-code-in-sitecore-6-67/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/noimg_40_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://sitecore360.wordpress.com/2013/08/24/reusability-of-code-in-sitecore-6-67/" target="_blank">Reusability of Code in Sitecore 6.6/7</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;"><a style="box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;" href="http://kevinobee.wordpress.com/2013/08/25/glimpse-for-sitecore/" target="_blank"><img decoding="async" style="padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;" alt="" src="http://i.zemanta.com/196728856_80_80.jpg" /></a><a style="display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;" href="http://kevinobee.wordpress.com/2013/08/25/glimpse-for-sitecore/" target="_blank">Glimpse for Sitecore</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img decoding="async" class="zemanta-pixie-img" style="border: none; float: right;" alt="" src="http://img.zemanta.com/pixy.gif?x-id=36499ba6-3b11-4272-8dcb-7775d4039c55" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.harshbaid.in/2013/09/23/code-generation-using-sitecore-rocks-and-visual-studio/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
