0 / 0 / 0 Регистрация: 07.07.2017 Сообщений: 16 |
|
1 |
|
.NET 3.x 29.04.2018, 11:02. Показов 5171. Ответов 3
Декомпилировал Assembly-CSharp с помощью DnSpy, и когда я хочу скомпилировать мне выдаёт кучу ошибок что требуется идентификатор. Миниатюры
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
29.04.2018, 11:02 |
3 |
6433 / 3965 / 1583 Регистрация: 09.05.2015 Сообщений: 9,271 |
|
29.04.2018, 11:05 |
2 |
Исправляйте ошибки компиляции. Например у вас на скрине это бывший switch превращенный компилятором в Dictionary<string, int>. Можно либо переделать обратно в switch, либо оставить как есть переименовав имя словаря…
0 |
0 / 0 / 0 Регистрация: 07.07.2017 Сообщений: 16 |
|
29.04.2018, 11:40 [ТС] |
3 |
Исправляйте ошибки компиляции. Например у вас на скрине это бывший switch превращенный компилятором в Dictionary<string, int>. Можно либо переделать обратно в switch, либо оставить как есть переименовав имя словаря… Я сейчас не понял не слова из твоего текста, можно по подробнее пожалуйста.
0 |
6433 / 3965 / 1583 Регистрация: 09.05.2015 Сообщений: 9,271 |
|
29.04.2018, 14:07 |
4 |
Я сейчас не понял не слова из твоего текста, можно по подробнее пожалуйста. Подробнее в любом учебнике по C#.
1 |
AndnixSH
PMT Elite Modder
Original poster
Staff member
Modding-Team
-
#1
Are you getting errors like this when trying to compile?
Try edit only Method instead whole Class
Still getting error? follow the simple steps to fix it.
Double click on errors, It will point you to the method. Remove all method that caused error then compile
Common error is generated code <>f__mg$cache0, remove it
[global::System.Runtime.CompilerServices.CompilerGenerated]
private static global::System.Action<string> <>f__mg$cache0;
Done!
Last edited:
Asked
Viewed
326 times
I have deobfuscated an executable file with de4dot and Dnspy. I can change and compile most of the classes but, I can’t change and compile the ones that has MySql methods in it. It gives me an error: type or namespace name 'MySql' could not be found
.When I click on the using MySql.Data.MySqlClient;
line, Dnspy leads me to an empty page. Mysql.Data
is shown in the references folder but there is nothing inside it.
asked Oct 6, 2019 at 16:10
2
That is an external reference, not in the .exe itself but looks like MySql connector classes.
I have downloaded MySql.Data.dll from nuget and put it into the same folder and restarted the Dnspy. It worked.
Cleptus
3,4564 gold badges28 silver badges35 bronze badges
answered Oct 6, 2019 at 16:37
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
- Pick a username
- Email Address
- Password
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
dnSpy — How to fix compiler error on main.g.cs
How to fix compiler error in maingcs from Andnix on Vimeo.
Are you getting errors like this when
trying to compile?
Try edit only Method instead whole Class
Still getting error? follow the
simple steps to fix it.
Double click on errors, It will
point you to the method. Remove all method that caused error then compile
Common error is
generated code <>f__mg$cache0, remove it
[global::System.Runtime.CompilerServices.CompilerGenerated]
private static global::System.Action<string> <>f__mg$cache0;
Done!
Popular Posts
VMOS Pro Global CN FREE Custom ROMs | Gapps, ROOT, Xposed | Android 4.4.4, 5.1.1, 7.1.2, 9.0 ROMs | NO VIP
VMOS Pro was protected so I wasn’t able to modify/crack APK. Instead, I made a custom ROM as a zip file for VMOS Pro that includes permanent root and Xposed, all done on my Android phone because zipping on Windows or Linux caused corruption on the ROM file. You don’t need to use modded APK at all YOU CANNOT INSTALL ANY OTHER ROMS SUCH AS SAMSUNG, HUAWEI, ETC THAT ARE NOT MADE FOR VMOS. VMOS ROM IMPORTING IS FOR VMOS ROM ONLY. PLEASE DO NOT BE DUMB! FOR EMULATOR USERS: DO NOT TRY TO RUN VMOS IN EMULATORS, ALL VM APPS ARE NEVER SUPPORTED AND WILL SUBJECT TO CRASH. THIS IS ABSOLUTELY DUMB WAY TO DO IT. INSTEAD, INSTALL OTHER EMULATORS LISTED HERE: https://www.andnixsh.com/2018/10/free-android-emulator-collections.html Tested on VMOS Pro 2.9.7 on Android 11 Download VMOS Pro app English and Chinese version has been combined into one APK, so you will get same version if you downloaded from EN or CN website Global (EN) website: https://www.vmos.com/ Chinese website: http://www.vmos.c
[TOOL] Unity Assets Bundle Extractor
Unity .assets and AssetBundle editor UABE is an editor for Unity 3.4+/4/5/2017/2018 .assets and AssetBundle files. It can create standalone mod installers from changes to .assets and/or bundles. Type information extracted from Unity is used in order to generate text representations of various asset types. Custom MonoBehaviour types also are supported. There are multiple plugins to convert Unity assets from/to common file formats : The Texture plugin can export and import .png and .tga files and decode&encode most texture formats used by Unity. The TextAsset plugin can export and import .txt files. The AudioClip plugin can export uncompressed .wav files from U5’s AudioClip assets using FMOD, .m4a files from WebGL builds and Unity 4 sound files. The Mesh plugin can export .obj and .dae (Collada) files, also supporting rigged SkinnedMeshRenderers. The MovieTexture plugin can export and import .ogv (Ogg Theora) files.