<?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>Corey Schuman &#187; assembly</title>
	<atom:link href="http://www.85turns.com/tag/assembly/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.85turns.com</link>
	<description>Silverlight Consultant</description>
	<lastBuildDate>Tue, 26 Apr 2011 20:57:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Versioning your Silverlight application</title>
		<link>http://www.85turns.com/2009/06/11/versioning-your-silverlight-application/</link>
		<comments>http://www.85turns.com/2009/06/11/versioning-your-silverlight-application/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 03:34:27 +0000</pubDate>
		<dc:creator>Corey</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.85turns.com/2009/06/11/versioning-your-silverlight-application/</guid>
		<description><![CDATA[When writing an enterprise level application it’s critical to have a version number.&#160; Whether it’s located on the help screen or in debug mode, this will save you so much heartache during QA.&#160; The larger the project, the more dependent your team is on the version. Now that I’m all done ranting to the converted, [...]]]></description>
			<content:encoded><![CDATA[<p>When writing an enterprise level application it’s critical to have a version number.&#160; Whether it’s located on the help screen or in debug mode, this will save you so much heartache during QA.&#160; The larger the project, the more dependent your team is on the version.</p>
<p>Now that I’m all done ranting to the converted, let’s talk about Silverlight.&#160; From my past experience there are two ways to handle versioning:</p>
<ol>
<li>Create an abstracted file that contains your version number, or </li>
<li>Use the Assembly version.</li>
</ol>
<p>Both have their pros and cons.&#160; Option 1 gives you greater control of the version number, however the manual process is tedious.&#160; Option 2 enables you to use the Assemblies version, however it provides less control over the version number.&#160; Lately I’ve been going with option 2 because it takes one more step out of my deployment process.</p>
<h3>To get the version from the Assembly</h3>
<p>Doing this is fairly easy once you have the correct block of code.&#160; The below block of code shows how to get the version from the Assembly in the <strong>MainPage_Loaded</strong> method.&#160; Do not forget to include the <strong>System.Reflection</strong> reference.</p>
<p><a href="http://www.85turns.com/blog/wp-content/uploads/2009/06/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.85turns.com/blog/wp-content/uploads/2009/06/image-thumb.png" width="600" height="455" /></a> </p>
<p>Given the above block of code, the next question is, where is this assembly version defined?&#160; In short, the AssemblyInfo.cs file, which is located in the Properties folder.</p>
<p><a href="http://www.85turns.com/blog/wp-content/uploads/2009/06/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.85turns.com/blog/wp-content/uploads/2009/06/image-thumb1.png" width="200" height="204" /></a> </p>
<p>At the bottom of the AssemblyInfo.cs file, you’ll see the version info.&#160; The directions are in the comments on how to change this.&#160; I’ve customized my version to be 0.611.*. </p>
<p><a href="http://www.85turns.com/blog/wp-content/uploads/2009/06/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.85turns.com/blog/wp-content/uploads/2009/06/image-thumb2.png" width="600" height="185" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.85turns.com/2009/06/11/versioning-your-silverlight-application/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

