Questions tagged [dotpeek]

dotPeek is a .NET decompiler from JetBrains, the makers of a wide array of developer productivity tools: ReSharper, dotTrace, and dotCover for .NET developers. Also A renowned a family of IDEs for Java, Ruby, Python, PHP, and other languages and Team development tools: TeamCity for continuous integration and build management and YouTrack for issue tracking.

72 questions
1
vote
1 answer

Debugging an obfuscated .NET core application with DotPeek

I am hunting for a possible logic bomb in the code deployed to production by our vendor software factory. For sake of curiosity of the readers, here is a brief recap. The application stopped working with an infinite wait at some point. Decompiling…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
1
vote
3 answers

Decompiled DLL - CS1660 Cannot convert to 'Delegate' because type is not of delegate type

I decompiled a .net 4.6.1 project dll with dotpeek. After decompiling I have the following error: CS1660 Cannot convert to 'Delegate' because type is not of delegate type private void MainLogAdd(string s, System.Drawing.Color color) { …
eray erkol
  • 15
  • 5
1
vote
2 answers

DotPeek: cannot see compiler-generated code

I have my library with one file that contains: public class SomeClassWithAwait { public async Task MethodAsync() { return await Task.Run(() => 1 + 1); } } I turn on the feature "Show compiler-generated Code". I see…
Sergey
  • 166
  • 5
1
vote
0 answers

JetBrains dotPeek IDE unable to decompile code for Entity Framework select statement

I have a dll having code of .NET Entity Framework. I am trying to generate source code from given dll. I am using JetBrains dotPeek to do so. But some portion of code is invalid and I am unable to guess what actually may be its correct source…
1
vote
3 answers

How to reverse engineer an .exe that uses a .resource file to store an assembly?

Context I work as a game developer at a studio that develops an MMO. We built an authoritative server but still run into issues with exploits and automation. I downloaded the main bot used to hack our game in an effort to determine how it exploits…
sk84z
  • 193
  • 1
  • 3
  • 10
1
vote
2 answers

Decompile VB.NET exe to C# (dotPeek & JustDecompile)

So I have a program which is built from VB.NET but don't have the source code and it's impossible to get the source code, I need to modify the program so I decompile it using dotPeek & JustDecompile to C# because I can code in C# but I never really…
julius daniel
  • 21
  • 1
  • 6
1
vote
1 answer

remove unused preprocessor symbols in c# binary

I have a project with a few conditional builds. I compiled it. And then used dotpeek to look at it. I noticed ALL conditional statements and the code that it wraps even when not defined. Since this app is modified in some key ways for different…
Joe
  • 721
  • 9
  • 22
1
vote
0 answers

How to Debug DLLs with breakpoints and watches in Visual Studio using dotPeek

I have a DLL (the Sitecore Kernel) that I decompile using DotPeek. I am setting the Environment Variable COMPLUS_ZapDisable to 1 before launching Visual Studio, and added the following .ini file: [.NET Framework Debugging Control]…
Emanuele Ciriachi
  • 2,216
  • 2
  • 26
  • 39
1
vote
0 answers

Encrypted names in decompiled C#

After I decompiled a C# DLL, I got obfuscated names. How do I make them friendlier? internal class #=q_koQQBVg_L17jD21WqVoWTKogS6iAxIVV4z7fVJYFPbQHpq5RL4asPxgytMqVUV9{ private string #=qtiNXLJTkmAsXt34BDA7ADjLv0A20d865ejHCoExwakY=; private int…
1
vote
1 answer

Automatically generate PDBs with dotPeek

I just discovered dotPeek and its symbol server greatness. The only drawback for me currently is that I need to manually add each DLL I want to debug and manually generate the PDB for it. It would be excellent if I could either do this in batch and…
Josh
  • 6,944
  • 8
  • 41
  • 64
1
vote
2 answers

dotPeek not showing all references

I'm looking at the System.Web.Http assembly in dotPeek and I can't see a reference to Newtonsoft.Json even though I know that System.Web.Http.Results.JsonResult uses Newtonsoft.Json as it's serializer unlike it's System.Web.Mvc cousin. using…
rism
  • 11,932
  • 16
  • 76
  • 116
1
vote
2 answers

Finding the source DLL name from Interop assembly via reflection

I have an Interop DLL RCW.Xyz.dll but I can't find the corresponding DLL. Because the name doesn't follow the default naming scheme Interop.Xyz.dll my guess is that the interop assembly was simply renamed. (Even if the DLL is generated by Visual…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
1
vote
1 answer

What does it mean in terms of C#?

I found the following compiler-generated code using DotPeek analyzing one of .NET assemblies: [UnsafeValueType, NativeCppClass] [StructLayout(LayoutKind.Sequential, Size = 16)] internal struct…
Qué Padre
  • 2,005
  • 3
  • 24
  • 39
1
vote
1 answer

Documenting public interface of assemblies

The rules of software versioning recommend incrementing the MAJOR VERSION when there are breaking changes to the public API. I have tried using Class View in Visual Studio and applications like dotPeek, but I have so far been unable to find a way to…
devlord
  • 4,054
  • 4
  • 37
  • 55
1
vote
1 answer

What do angled brackets mean when used in member name in C#?

I was browsing through sources of PresentationCore.dll using DotPeek when I found this: // Type: MS.Internal.TtfDelta.CMAP_HEADER // Assembly: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 // Assembly location:…
Matěj Zábský
  • 16,909
  • 15
  • 69
  • 114