Red Gate forums :: View topic - Output Assembly File Version
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Output Assembly File Version

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
lmc



Joined: 20 Sep 2013
Posts: 4

PostPosted: Fri Sep 20, 2013 12:22 pm    Post subject: Output Assembly File Version Reply with quote

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/l320i9ikvtyvvlu/SmartAssemblyAssemblyFileVersion.png

Is there any way to get SA to copy the AssemblyVersion to the AssemblyFileVersion instead?
Cheers,
Luke
Back to top
View user's profile Send private message
lmc



Joined: 20 Sep 2013
Posts: 4

PostPosted: Mon Sep 23, 2013 4:58 pm    Post subject: Reply with quote

Here's a simple project that demonstrates the issue:
https://www.dropbox.com/s/ci8ltu0vv8uc5ac/ForObfuscation.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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group