[wix-users] C# dll not updating unless assembly version changes
Neil Hayes
Neil.Hayes at syspro.com
Fri Feb 17 04:56:21 PST 2017
If the C# dll has changed in any way you should up the version.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa368599(v=vs.85).aspx
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Stewart Lynch
Sent: Friday, 17 February 2017 2:36 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] C# dll not updating unless assembly version changes
Hi,
I have a C# dll which is included in my installer which isn't getting updated when installing over a pre-existing install. If I then do a repair install the file does get updated.
The other dlls in my package update fine, the only difference with this one is that I was not updating the C# AssemblyVersion and AssemblyFileVersion numbers. If I change the assembly version each time I build a new version it updates fine.
So, two questions:
1. Is this a bug in Wix where the dll won't update if the assembly
version doesn't change?
2. Should I be updating the assembly version number for my dlls each
time I build a new installer?
I have always updated the assembly version for each install (except for this dll which I missed) but I've never been sure if this is actually necessary.
This is what my assembly version looks like:
AssemblyInfo.cs
// Version information for an assembly consists of the following four
values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.58.0.0")]
[assembly: AssemblyFileVersion("1.58.0.0")]
This is my installer xml:
.
<Fragment>
<ComponentGroup Id="FrameProExe_Components"
Directory="INSTALLLOCATION">
<Component Id='FrameProExe_HDataGrid_dll' Guid='8b81fa3a-e74b-4e7f-93e4-360ca8ac88e6'
Win64='yes' >
<File Id='FrameProExe_HDataGrid_dll_file' Name='HDataGrid.dll'
Source='..\..\..\Build\FramePro\bin\x64\release\HDataGrid.dll' KeyPath='yes'
/>
</Component>
.
I'm using Wix Toolset v3.10.
Thanks for any help.
Stewart.
PureDev Software
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list