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
Mono Linker - Plugin step to allow UsedImplicitly attributes
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
  2 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
 
Chris Chambers  
View profile  
 More options Aug 15 2012, 11:39 pm
From: Chris Chambers <chrischambers1...@gmail.com>
Date: Wed, 15 Aug 2012 20:39:40 -0700 (PDT)
Local: Wed, Aug 15 2012 11:39 pm
Subject: Mono Linker - Plugin step to allow UsedImplicitly attributes

My work is currently using the mono linker to strip unused things from some
executables we produce. Several methods/classes are only used through
Reflection, and so get stripped when we don't want them to. I've produced
an additional step that prevents anything with a '[UsedImplicitly]'
attribute on it from getting removed (we already use this attribute to
prevent ReSharper from complaining about unused things, so this solution
for us is far easier than using the XML option to prevent the strip)

I doubt that this is generic enough to go into the mono linker (it uses
JetBrains.Annotations.UsedImplicitly as the only attribute it is looking
for at the moment) but it might be useful for some other people using the
linker. The GitHub repo with instructions is here:

https://github.com/krijesta/mono-linker-UsedImplicitly

Cheers,

Chris


 
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   Translate to Translated (View Original)
 More options Aug 16 2012, 10:00 am
From: Jb Evain <jbev...@gmail.com>
Date: Thu, 16 Aug 2012 16:00:37 +0200
Local: Thurs, Aug 16 2012 10:00 am
Subject: Re: [mono-cecil] Mono Linker - Plugin step to allow UsedImplicitly attributes
Hey Chris,

That's pretty neat.

Last time I heard, MonoTouch and Mono for Android were still using the steps in:

https://github.com/mono/mono/tree/master/mcs/tools/tuner/Mono.Tuner

Including the ApplyPreserveAttribute that does something similar.

Jb

On Thu, Aug 16, 2012 at 5:39 AM, Chris Chambers


 
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 »