<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Get AssemblyInfo.cs version info from an Assembly using NAnt</title>
	<atom:link href="http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/</link>
	<description>It&#039;s all about delivering</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:42:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-543</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 26 Dec 2005 04:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-543</guid>
		<description>Hi cory ,&lt;br /&gt;&lt;br /&gt;    Tell me how i can use nant to get the version no. of a dll including major.minor.build.revision and then increment the required field of my choice, say minor alone and update it back to the assemblyinfo.cs file.&lt;br /&gt;&lt;br /&gt;Thanks ,&lt;br /&gt;Ranjith</description>
		<content:encoded><![CDATA[<p>Hi cory ,</p>
<p>    Tell me how i can use nant to get the version no. of a dll including major.minor.build.revision and then increment the required field of my choice, say minor alone and update it back to the assemblyinfo.cs file.</p>
<p>Thanks ,<br />Ranjith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-544</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 26 Dec 2005 04:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-544</guid>
		<description>Hi cory, &lt;br /&gt;&lt;br /&gt;  What i</description>
		<content:encoded><![CDATA[<p>Hi cory, </p>
<p>  What i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Melia</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-545</link>
		<dc:creator>Luke Melia</dc:creator>
		<pubDate>Sun, 20 Nov 2005 10:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-545</guid>
		<description>Cool. We also do autoincrementing builds, but use the nant (or is it nantcontrib?) version task to do it. At the root of our project, we have a VersionInfo.txt project. It contains the last build number. Before compiling the app, our nant script reads this file and increments according to our rules, then writes a VersionInfo.cs file to disk. Think of it like an AssemblyInfo.cs file but with only the version attribute. That VersionInfo.cs file is included in each of the solution&#039;s projects as a linked file, so when the nant script  builds the solution, they all have the updated version number.&lt;br /&gt;&lt;br /&gt;With this approach, there&#039;s no need to reflect the assembly because you&#039;ve defined the version number up front and the script has access to it for the entire run.&lt;br /&gt;&lt;br /&gt;Not that there&#039;s anything wrong with your approach, just figured I&#039;d share an alternative path.&lt;br /&gt;&lt;br /&gt;Luke</description>
		<content:encoded><![CDATA[<p>Cool. We also do autoincrementing builds, but use the nant (or is it nantcontrib?) version task to do it. At the root of our project, we have a VersionInfo.txt project. It contains the last build number. Before compiling the app, our nant script reads this file and increments according to our rules, then writes a VersionInfo.cs file to disk. Think of it like an AssemblyInfo.cs file but with only the version attribute. That VersionInfo.cs file is included in each of the solution&#8217;s projects as a linked file, so when the nant script  builds the solution, they all have the updated version number.</p>
<p>With this approach, there&#8217;s no need to reflect the assembly because you&#8217;ve defined the version number up front and the script has access to it for the entire run.</p>
<p>Not that there&#8217;s anything wrong with your approach, just figured I&#8217;d share an alternative path.</p>
<p>Luke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-546</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Fri, 18 Nov 2005 21:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-546</guid>
		<description>I should say that the way to get the autogenerated numbers is by defining the build number portion of the versionumber in AssemblyInfo.cs with a *. So, for example, we&#039;d set our next release of one of our products to be 1.43.0.* in AssemblyInfo.cs, which then sets the * to an autogenerated number every build.</description>
		<content:encoded><![CDATA[<p>I should say that the way to get the autogenerated numbers is by defining the build number portion of the versionumber in AssemblyInfo.cs with a *. So, for example, we&#8217;d set our next release of one of our products to be 1.43.0.* in AssemblyInfo.cs, which then sets the * to an autogenerated number every build.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-547</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Fri, 18 Nov 2005 08:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-547</guid>
		<description>I should follow up that the product we&#039;re working on has major/minor revisions, like 1.42. In creating the build to ship for a minor revision, we might send it to QA two or three times. &lt;br /&gt;&lt;br /&gt;What was happening was that it was getting confusing saying that a bug was fixed in the &quot;latest&quot; 42 build. As soon as I started running into that, I wanted to have autoincrementing numbers so we could identify that.&lt;br /&gt;&lt;br /&gt;Since we&#039;re doing autoincrementing, it made sense to notify us which builds were available and to tag them so we had a history. Right now when a build is succesful NAnt zips it up and drops it on an FTP server. With this, we can tag it in Subversion and drop it on the FTP server with the build number attached.</description>
		<content:encoded><![CDATA[<p>I should follow up that the product we&#8217;re working on has major/minor revisions, like 1.42. In creating the build to ship for a minor revision, we might send it to QA two or three times. </p>
<p>What was happening was that it was getting confusing saying that a bug was fixed in the &#8220;latest&#8221; 42 build. As soon as I started running into that, I wanted to have autoincrementing numbers so we could identify that.</p>
<p>Since we&#8217;re doing autoincrementing, it made sense to notify us which builds were available and to tag them so we had a history. Right now when a build is succesful NAnt zips it up and drops it on an FTP server. With this, we can tag it in Subversion and drop it on the FTP server with the build number attached.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-548</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Fri, 18 Nov 2005 08:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-548</guid>
		<description>Hi Luke,&lt;br /&gt;&lt;br /&gt;We use it to then report to our QA team that a new build is available, and we also tag it in Subversion so that we have a revision history of what was built. I just didn&#039;t want to bore you with those details. ;)&lt;br /&gt;&lt;br /&gt;Thanks for the compliment!&lt;br /&gt;&lt;br /&gt;Cory</description>
		<content:encoded><![CDATA[<p>Hi Luke,</p>
<p>We use it to then report to our QA team that a new build is available, and we also tag it in Subversion so that we have a revision history of what was built. I just didn&#8217;t want to bore you with those details. ;)</p>
<p>Thanks for the compliment!</p>
<p>Cory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Melia</title>
		<link>http://blog.coryfoy.com/2005/11/get-assemblyinfo-cs-version-info-from-an-assembly-using-nant/comment-page-1/#comment-549</link>
		<dc:creator>Luke Melia</dc:creator>
		<pubDate>Thu, 17 Nov 2005 23:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=322#comment-549</guid>
		<description>Hey Cory,&lt;br /&gt;&lt;br /&gt;Just out of curiosity, why do you need the version of the built assemblies? What do you do with it after you grab it?&lt;br /&gt;&lt;br /&gt;I&#039;m enjoying your blog. Keep up the great work!&lt;br /&gt;&lt;br /&gt;Luke</description>
		<content:encoded><![CDATA[<p>Hey Cory,</p>
<p>Just out of curiosity, why do you need the version of the built assemblies? What do you do with it after you grab it?</p>
<p>I&#8217;m enjoying your blog. Keep up the great work!</p>
<p>Luke</p>
]]></content:encoded>
	</item>
</channel>
</rss>

