1

Closed

Inconsistent virtual method obfuscation state detected

description

Hi.

Thank you for Obfuscar 2.0 rc7.

Windows 7 x64 SP1

this is errors output:

An error occurred during processing:
Inconsistent virtual method obfuscation state detected. Abort. Please review
the following methods,
[Emule.GUI]Emule.GUI.Controls.MyTabControl.BaseCrudModel::EditViewModelFactor
y[2]->WillRename:A
[Emule.GUI]Emule.GUI.Features.AlertAgent.Model::EditViewModelFactory[2]->Skip
ped:HidePrivateApi option in configuration
[Emule.GUI]Emule.GUI.Features.Alerts.Model::EditViewModelFactory[2]->WillRena
me:A
[Emule.GUI]Emule.GUI.Features.Categorie.Model::EditViewModelFactory[2]->WillR
ename:A
[Emule.GUI]Emule.GUI.Features.Fornitori.Model::EditViewModelFactory[2]->WillR
ename:A
[Emule.GUI]Emule.GUI.Features.LiquidazioneFatture.Model::EditViewModelFactory
[2]->WillRename:A
[Emule.GUI]Emule.GUI.Features.MainFatture.Model::EditViewModelFactory[2]->Wil
lRename:A
[Emule.GUI]Emule.GUI.Features.TipiCategoria.Model::EditViewModelFactory[2]->W
illRename:A

thanks
Closed Jun 12 at 2:13 PM by lextm

comments

zagot wrote May 22 at 5:36 PM

I try to exlude types and also namespace but error remain...?

lextm wrote May 23 at 4:47 AM

The error message simply asks you to make a "all or nothing" choice. You either obfuscate all the virtual methods in this group, or skip any of them completely.

In your case, you should not skip this Emule.GUI.Features.AlertAgent.Model::EditViewModelFactory method, but force it to be renamed. That's the quickest fix. Otherwise, you have to skip all methods listed.

zagot wrote May 23 at 5:05 AM

I want to obfuscate all the virtual methods in that group.. sorry what I have to do? thanks

zagot wrote May 23 at 5:17 AM

oh.. sorry <Var name="KeepPublicApi" value="false" /> <Var name="HidePrivateApi" value="true" /> ok now compile but dont run executable

zagot wrote May 23 at 5:47 AM

sorry the problem now is caliburn.micro signed assembly.. i try to solve..

zagot wrote May 23 at 7:54 AM

..after give a keyfile now the error output is :

Eccezione non gestita: System.FormatException: Formato della stringa di input non corretto.
 in System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
 in System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
 in System.Byte.Parse(String s, NumberStyles style, NumberFormatInfo info)
 in Mono.Cecil.AssemblyNameReference.Parse(String fullName)
 in ILSpy.BamlDecompiler.CecilTypeResolver.GetTypeByAssemblyQualifiedName(String name)
 in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.FormatPropertyDeclaration(PropertyDeclaration propertyDeclaration, Boolean withPrefix, Boolean useReading, Boolean checkType)
 in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadPropertyWithExtension()
 in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ProcessNext()
 in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadInternal()
 in System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
 in System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
 in System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
 in Obfuscar.Obfuscator.GetXamlDocuments(AssemblyDefinition library)
 in Obfuscar.Obfuscator.RenameTypes()
 in Obfuscar.Obfuscator.RunRules()
 in Obfuscar.Program.Main(String[] args)
Renaming: fields...parameters...properties...events...methods...types...

thanks

lextm wrote Jun 12 at 2:13 PM

Close this item. The XAML issue is moved to a separate item,

https://obfuscar.codeplex.com/workitem/12