-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CultureNotFoundException when decompiling a satellite assembly #2691
Comments
The error message hints at the following change: db6b085 However, this has been present in ilspycmd ever since version 7.1. Would you be able to provide an example for us to try to reproduce this error? Thanks! |
I crafted a simple example. The zip file contains the solution to create the contained satellite assemblies. The satellite assemblies can be found in Ilspy2691\ClasslibExample\bin\Debug\net6.0\nl or Ilspy2691\ClasslibExample\bin\Debug\net6.0\de |
The fix for #2417 indeed caused the issue. Another workaround is to change %userprofile%.dotnet\tools.store\ilspycmd\7.2.1.6856\ilspycmd\7.2.1.6856\tools\net6.0\any\ilspycmd.runtimeconfig.json: {
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Globalization.Invariant": false, // was true
"System.Globalization.PredefinedCulturesOnly": true,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
} |
This fails in culture-invariant mode (ilspycmd) when trying to work with satellite assemblies, because System.Reflection.AssemblyName tries to retrieve CultureInfo of the assembly culture.
Thank you for reporting this. |
Since version 7.2.0.6791-preview3, trying to extract the resources from a satellite assembly often results in the following stack trace:
In the previous version, 7.2.0.6702-preview2, the issue was not present yet.
To reproduce the issue, I used the following commands:
A workaround is to use an older version of ilspycmd.
The text was updated successfully, but these errors were encountered: