Activity overview
Latest activity by smuda
Windows Phone 8
Hi!
Any plans on supporting WP8 :?:
Best regards,
John
Hi!
The vote from the John'ian jury is: [image]
When the heuristics says it's not to be obfuscated (i.e. ToString is used) the flags attribute is to be kept.
Haven't tried HasFlag on an enum that isn't flag, but that obviously has to work regardless.
Best Regards,
John / comments
Hi!
The vote from the John'ian jury is:
When the heuristics says it's not to be obfuscated (i.e. ToString is used) the flags attribute is to be kept.
Haven't tried HasFlag on an enum that isn't fl...
Good thing it worked for you! It always feels good helping someone else in the community... [image]
My experience is that Red-Gate has been really responsive so far, so I'd expect they'll respond in the morning.
John
Just another user... [image] / comments
Good thing it worked for you! It always feels good helping someone else in the community...
My experience is that Red-Gate has been really responsive so far, so I'd expect they'll respond in the ...
Jasonauk,
I also noticed that the latest version (6.6.2.35) seems to have re-introduced it so my latest release of my software was, well, not as good as it was meant to be. I actually trusted SmartAssembly and didn't test my obfuscated release thoroughly. My bad. :oops:
I found out that you now at least could get it to work by adding the DoNotPrune attribute, that didn't work before. I've added that to all my flags-enums (which I use ToString() on) and is as happy as a bird.
Best Regards,
John / comments
Jasonauk,
I also noticed that the latest version (6.6.2.35) seems to have re-introduced it so my latest release of my software was, well, not as good as it was meant to be. I actually trusted Smart...
I have to admit that was really fast of you to deliver a fix within one working day, well done! [image]
Patch works nicely, thanks for your help!:D
Best Regards,
John / comments
I have to admit that was really fast of you to deliver a fix within one working day, well done!
Patch works nicely, thanks for your help!:D
Best Regards,
John
I'm using version 6.6.0.144, which I don't think qualify for "older version". :-)
You did however put me on the right track, it's the pruning the creates the issue. Enabling pruning creates the issue, disabling it removes the issue.
In SA I can add pruning exception on the "Flags" attribute which makes me able to enable pruning without creating the issue. However, programmaticly adding DoNotPrune or DoNotPruneType doesn't remove the issue.
I think that removing the Flags attribute when both DoNotPruneAttribute and DoNotPruneTypeAttribute are set is an error. What do you think?
SA automaticly detect the ToString() being used on the enum and do not obfuscate the names but still prune the FlagsAttribute. I think that is an error. What do you think?
Best Regards,
John / comments
I'm using version 6.6.0.144, which I don't think qualify for "older version". :-)
You did however put me on the right track, it's the pruning the creates the issue. Enabling pruning creates the iss...
FlagsAttribute is removed on Enums
Hi!
I use a lot of enums with FlagsAttribute which is displayed to the user.
It seems however that SA removes the FlagsAttribute when processing the assembly. I created a short console app:static v...
I added more logging and realized the exception occurs during deserialization of an object. I have (with your help) solved the issue: http://www.red-gate.com/messageboard/vi ... hp?t=14511
which means I can now merge the deseralization issue into the main assembly and this problem goes away.
Thanks for your help!
Best Regards,
John / comments
I added more logging and realized the exception occurs during deserialization of an object. I have (with your help) solved the issue:http://www.red-gate.com/messageboard/vi ... hp?t=14511
which mea...
Hi!
Just wanted to say that using a SerializationBinder worked perfectly. class LicenseInfoDeserializationBinder : SerializationBinder
{
public override Type BindToType(string assemblyName, string typeName)
{
if (assemblyName.StartsWith("OriginalFilenameWithoutExtension"))
{
// When the type being deserialized originates from original assembly
// redirect do current assembly, since it is the same
// but obfuscated
assemblyName = Assembly.GetExecutingAssembly().FullName;
}
// For each assemblyName/typeName that you want to deserialize to
// a different type, set typeToDeserialize to the desired type.
var typeToDeserialize = Type.GetType(String.Format("{0}, {1}",
typeName, assemblyName));
return typeToDeserialize;
}
}
Thank you for your help!
Best Regards,
John / comments
Hi!
Just wanted to say that using a SerializationBinder worked perfectly.class LicenseInfoDeserializationBinder : SerializationBinder
{
public override Type BindToType(string assemblyName...
Yes, removing the SmartAssemblyReportUsage registry entry on the other two assemblies makes the dialog re-appear, but not this one.
Is there any logging that can be enabled for the feature usage within the merged assembly?
I suppose the default template is the one included in SA. If you look on line 21 it sets the registry value to false and AskUserForReportUsageConfirm(). If something happens there it will have the exact same behavior that I'm experiencing. I think I'll try with a custom template (based on this) with more error handling.
Best Regards,
John / comments
Yes, removing the SmartAssemblyReportUsage registry entry on the other two assemblies makes the dialog re-appear, but not this one.
Is there any logging that can be enabled for the feature usage wi...