I have a program which no longer has support and does not have source code available. So I decompiled it in order to make fixes, because the fixes required are substantial I decided to use dnSpy to export the decompiled code as a project, however there are some errors. in particular I see variable names that look like <>f__switch$map1 where the can be any number in place of 1. I tried replacing them all with a more reasonable name and removing the <> but it doesn't appear to actually be declared anywhere? how can I fix these compiler errors in the output of dnSpy.
DnSpy decompiled output has syntax errors and can not be recompiled, in particular "<>f__switch$map1"
2.7k Views Asked by david warford At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in DECOMPILER
- how can i turn an goto label loop into for or while loop
- decompile the jar, some source code are marked as red(which means mistake)
- Difference between Turbo C++ and Borland C++ compiler
- How can I batch decompile multiple .NET assemblies?
- Java Decompiler for Eclipse kepler
- Is it possible to decompile Java bytecode back to original generic type parameters
- How to decompile jhipster based war file
- How prevent apktool sort global variables?
- gcc to tell a register compiled from which variable
- About compiler and decompilation
- Decompile Class that have resource file
- I need a Java decompiler
- Compiler C to Brainfuck (for harassing a professor)?
- cli decompiler for java .class file
- Is there a replacement decompile tool for jad & jadclipse on eclipse(running an 64 bit jdk)?
Related Questions in DNSPY
- Getting "fieldof" function when decompiling NET code with dnspy
- Changes in dnspy not showing up when I run it
- Creating Semantic Slice from C# Program using AST and PDG
- What should I do with this information about dnspy not saving?
- dnSpy showing strange disassembly code for async methods
- rename assembly uncode hex encoded names using dnspy like \uE000
- Start DnSpy and immediately attach to process
- How to Suppress JIT optimization in .NET Core
- Program crash after dnSpy compilation
- How to add comments in dnSpy?
- Full of hex codes in ILSpy, dNSpy, dotPeek
- C# Decompiling: Some of methods are empty
- says dnspython isn't installed with mongodb but it is
- Dnspy: Debug Error when trying to attach to Process - Debugging is not possible due to an incompatibility within the CLR implementation
- Why checking MX using dnspython giving timeout error?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
So, in my case I was simply able to rename everything and then define it elsewhere, this worked and the program was able to compile.