Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
setting product version
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon  
View profile  
 More options Oct 13 2012, 8:48 pm
From: Simon <simon.cr...@gmail.com>
Date: Sat, 13 Oct 2012 17:48:20 -0700 (PDT)
Local: Sat, Oct 13 2012 8:48 pm
Subject: setting product version

So when I set AssemblyInformationalVersionAttribute in code (as part of a
compile) it appears in the files "Product version" when viewing properties
in windows explorer.

However when set this attribute post compile with Cecil it does not show up
in "Product version"

code is basically this

        var customAttributes = ModuleDefinition.Assembly.CustomAttributes;
        var versionAttribute = GetVersionAttribute();
        var constructor =
ModuleDefinition.Import(versionAttribute.Methods.First(x =>
x.IsConstructor));
        var customAttribute = new CustomAttribute(constructor);
        customAttribute.ConstructorArguments.Add(new
CustomAttributeArgument(ModuleDefinition.TypeSystem.String, "Foo"));
        customAttributes.Add(customAttribute);

Obviously I am doing something wrong... any ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jb Evain  
View profile  
 More options Oct 14 2012, 4:50 am
From: Jb Evain <jbev...@gmail.com>
Date: Sun, 14 Oct 2012 10:50:25 +0200
Local: Sun, Oct 14 2012 4:50 am
Subject: Re: [mono-cecil] setting product version
Hey Simon,

Those attributes are compiled as part of the .rsrc section.
They're basically special Win32 resources.

This is bug https://github.com/jbevain/cecil/issues/3

Jb

On Oct 14, 2012, at 2:48 AM, Simon wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 14 2012, 6:29 am
From: Simon <simon.cr...@gmail.com>
Date: Sun, 14 Oct 2012 03:29:16 -0700 (PDT)
Local: Sun, Oct 14 2012 6:29 am
Subject: Re: setting product version

looks like someone else has worked on it as well

https://github.com/gluck/cecil/commit/7a4cdab9f94f7065ec741e230d7a82c...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 14 2012, 6:34 am
From: Simon <simon.cr...@gmail.com>
Date: Sun, 14 Oct 2012 03:34:25 -0700 (PDT)
Local: Sun, Oct 14 2012 6:34 am
Subject: Re: setting product version

any chance of pulling resource support from one of those forks?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jb Evain  
View profile  
 More options Oct 14 2012, 6:53 am
From: Jb Evain <jbev...@gmail.com>
Date: Sun, 14 Oct 2012 12:53:19 +0200
Local: Sun, Oct 14 2012 6:53 am
Subject: Re: [mono-cecil] setting product version
I have this as well from Cecil 0.6.

The issue is providing a good API on top of resource parsing.

On Oct 14, 2012, at 12:34 PM, Simon wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon  
View profile  
 More options Oct 14 2012, 6:58 am
From: Simon <simon.cr...@gmail.com>
Date: Sun, 14 Oct 2012 03:58:41 -0700 (PDT)
Local: Sun, Oct 14 2012 6:58 am
Subject: Re: [mono-cecil] setting product version

since it is an edge use I would think any API would do. perhaps dont worry
about making it "good"?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »