Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I use MSBuild to update version information only when an assembly has changed?
    text
    copied!<p>I have a requirement to install multiple web setup projects (using VS2005 and ASP.Net/C#) into the same virtual folder. The projects share some assembly references (the file systems are all structured to use the same 'bin' folder), making deployment of changes to those assemblies problematic since the MS installer will only overwrite assemblies if the currently installed version is older than the one in the MSI.</p> <p>I'm not suggesting that the pessimistic installation scheme is wrong - only that it creates a problem in the environment I've been given to work with. Since there are a sizable number of common assemblies and a significant number of developers who might change a common assembly but forget to update its version number, trying to manage versioning manually will eventually lead to massive confusion at install time.</p> <p>On the flip side of this issue, it's also important not to spontaneously update version numbers and replace <em>all</em> common assemblies with <em>every</em> install, since that could (temporarily at least) obscure cases where actual changes were made.</p> <p>That said, what I'm looking for is a means to update assembly version information (preferably using MSBuild) only in cases where the assembly constituents (code modules, resources etc) has/have actually changed.</p> <p>I've found a few references that are at least partially pertinent <a href="http://code.msdn.microsoft.com/AssemblyInfoTaskvers/Release/ProjectReleases.aspx?ReleaseId=232" rel="noreferrer" title="here">here </a> (AssemblyInfo task on MSDN) and <a href="http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/94054d89-ba19-4658-9e4e-ce7d8ff4dea3/" rel="noreferrer" title="here">here</a> (looks similar to what I need, but more than two years old and without a clear solution).</p> <p>My team also uses TFS version control, so an automated solution should probably include a means by which the AssebmlyInfo can be checked out/in during the build.</p> <p>Any help would be much appreciated.</p> <p>Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload