-
Notifications
You must be signed in to change notification settings - Fork 35
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
Maybye an error with costura fody? #102
Comments
Umm i tested without costura and same error |
net framework 4.8 errors aswell so i am thinktink its my problem :c |
As I see you've used BitDotNet, and BitMono protections, they make invalid metadata of PE in your file, so in this case, you can use such protections only in Mono or Unity, that means you can't just protect the dotnet executable, and then run it again (you need specific Runtime, Mono, Unity or even your own which support such files with invalid metadata), so, you can use only BitTimeDateStamp, and other. About the costura fody, atm there's no support for it, but, there's a workaround in the ConfuserEx project, I'll add support for costura fody definitely |
But I cant select the protections on cli just ask me the file and the lib path |
You can edit |
when you put in the cli from user mode the path of the file if is with quotes doesn't recognize it as a path ("") |
Ah, yeah, it's kinda bug, will fix |
Ok i tried all protections except those 2 and i got this error when running app Unhandled Exception: System.TypeLoadException: The signature is not correct. |
Maybie AntiDecompiler ok ill try a bit more |
Yeah, you're right, AntiDecompiler causes the problem, AntiDecompiler won't work on non-Mono Runtime also (if you see a message that says Intended for Mono runtime then don't use it) |
I turned off anti decompiler and same error and i dont know what Dependencies (libs): path does or what to put in there |
but i have costura |
Ah, yeah, of course, btw, I already added support for the costura, but it will be available only on the new pre-release, I think this week will publish, as a temp solution you can do this, and after that specify the path to the .dlls |
How do you specify the path to the references? |
as the same as the file path |
Weird, it can't resolve references anyway, OK then, wait for the new pre-release |
The new version of BitMono pre-released, and support for costura fody has been added, let me know if the issue is solved now |
I remark that i am using net 7 not framework |
Now it gets stuck on here https://pastebin.com/w7AKEUyN |
As far as I know in the compiled folder of your .NET 7 should be .dll which contains all of your code, try to protect it. |
i need to disable auto cleanup of costura fody? |
Ok now it protected but same error https://pastebin.com/8QcecYws Unhandled exception. System.TypeLoadException: The signature is incorrect. |
Yea i know im doing thath |
but the exe tries to load the dll and throw thath exception Unhandled exception. System.TypeLoadException: The signature is incorrect. |
So weird, yeah, it's a reasonable exception, cuz it's unable to resolve the references |
I'll check now what else can be done to resolve issue |
Try to do that |
I'll also write xUnit tests on it to be sure 100% |
same error |
|
if you want I can give you the project |
I see when I try to specify the As well I made another pre-release, try it out! |
Try to disable the full renamer, cuz it will cause you a lot of problems with custom attributes atm, this will be fixed soon ™️ (#97) Or simply add [ObfuscationAttribute], but I think this won't help cuz these attributes are seems to be added after compilation :( |
In that i dint use any nuget package |
Do you have news about the issue? |
but thath error is on the exe of the net app |
Try to disable all protections and just then run the "protected" file |
ok wait if you want we can talk on discord if you prefer |
Try to use one single protection (which could cause minimum issues), and then try to run the app. Yes sure add me |
Sended |
The new version has been pre-released now, try it out, also let me know the results - it fixed the issue or not |
Does the problem with Costura is solved now? |
Yes |
BitMono Version
0.11 alpha
.NET Version
.Net 7
Description
Unhandled exception. System.BadImageFormatException: Bad IL format. The format of the file 'C:\Users\Mrgaton\Proyectee\bin\x64\Debug\net7.0-windows\Proyectee_Launcher.dll' is invalid.
Reproduction URL
No response
Reproduction steps
Screenshots
![image](https://user-images.githubusercontent.com/68958481/221433219-cea51766-a520-4090-bf44-e2b447f4d43a.png)
Logs
Applications
No response
OS
No response
The text was updated successfully, but these errors were encountered: