Output Assembly File Version
lmc
Posts: 9
Hi there,
We're grappling with the more-complicated-than-expected .Net assembly versioning scheme.
We use the X.Y.* notation for the AssemblyVersion attribute in the AssemblyInfo.cs, and leave out the AssemblyFileVersion attribute (which doesn't accept * notation) , and that normally means the AssemblyFileVersion takes the value of AssemblyVersion.
However, running the assembly through SA creates an assembly with an AssemblyFileVersion of SmartAssembly.exe
E.g. (image) https://www.dropbox.com/s/l320i9ikvtyvv ... ersion.png
Is there any way to get SA to copy the AssemblyVersion to the AssemblyFileVersion instead?
Cheers,
Luke
We're grappling with the more-complicated-than-expected .Net assembly versioning scheme.
We use the X.Y.* notation for the AssemblyVersion attribute in the AssemblyInfo.cs, and leave out the AssemblyFileVersion attribute (which doesn't accept * notation) , and that normally means the AssemblyFileVersion takes the value of AssemblyVersion.
However, running the assembly through SA creates an assembly with an AssemblyFileVersion of SmartAssembly.exe
E.g. (image) https://www.dropbox.com/s/l320i9ikvtyvv ... ersion.png
Is there any way to get SA to copy the AssemblyVersion to the AssemblyFileVersion instead?
Cheers,
Luke
Comments
https://www.dropbox.com/s/ci8ltu0vv8uc5 ... cation.zip
You can see the 'File version' property in the DLLs properties from the right-click menu in Explorer, or from a .Net decompiler. You can also toggle the effect by uncommenting the AssemblyFileVersion attribute in the AssemblyInfo.cs file.
Cheers,
Luke