How can we help you today? How can we help you today?

Output Assembly File Version

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
lmc
0

Comments

1 comment

  • lmc
    Here's a simple project that demonstrates the issue:
    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
    lmc
    0

Add comment

Please sign in to leave a comment.