I have an assembly installed to the GAC. We will always only have one version of this assembly. I have created a setup project to install this assembly to the gac. What I want to happen is for the old version to be removed from the gac before installing the new one. I have done the following:
Set the RemovePreviousVersion property of the Setup project to true Each time rebuild the setup project I increment the Version property of the Setup project
Here's what I'm noticing when I want to perform an update:
- If I open Programs and Features I can see the old Version number set on the project property 1.0.3
- If I open windows\assembly I can see the version is 1.0.0.0
- If I right click the assembly and view properties I can see it was last updated @ 9:30 AM
- I make my changes and then rebuild the install and run it on the server
- If I open Programs and Features I can see the Version number is now set to 1.0.4
- If I open windows\assembly I can see the version is still 1.0.0.0 (expected)
- If I right click the assembly and view properties I can see last updated is still @ 9:30 AM (huh?)
- I uninstall the version through Programs and Features and rerun the same install
- Now if I right click the assembly and view properties I can see last updated is set to the last time the file was updated and the updated assembly is getting referenced
Why isn't the gac getting updated with the lastest assembly when the install has RemovePreviousVersion set to true?
Thanks in advance!