Is it possible to hide the DotPeek-created comments when exporting projects?
I dropped a backup of an assembly into DotPeek and exported it to a VS project. I then did the same for a new version of the same dll. I use my diff'ing tool, BeyondCompare, to compare the exported directories. I can see my code differences but I also get these comments inserted by DotPeek. These are kind of raising false-positives. BeyondCompare lets me turn off minor differences but I'd rather not. See below for a sample comment block at the top of a file that DotPeek creates during the export process:
// Decompiled with JetBrains decompiler
// Type: planBL.planClaim
// Assembly: planBL, Version=1.0.6537.27148, Culture=neutral, PublicKeyToken=null
// MVID: AF7ACC60-EF0B-4F42-BBE2-256E6668C8D8
// Assembly location: C:\Temp\Bin1\planBL.dll
Naturally, every file has a different GUID for example. Is it it possible to configure DotPeek so that it doesn't generate these comment blocks? I can't find anything but it would be useful. I can find the files I made code changes to but the inserted comment block are getting in the way so to speak. Short of writing a small app to strip them out I'd like to know if they can be optionally removed when DotPeek exports projects. Is it possible?
Please sign in to leave a comment.
i have exactly the same problem!
possible or not ?
Hello there!
It is not possible to hide dotPeek created comments for export.
However, I'm happy to announce that comparing assemblies feature s available in dotPeek and R# from the version 2023.2. It is also possible to compare NuGet packages, folders, and
.zip
files starting the version 2023.3.Feel free to try it out!
That's not sufficient. Please let us remove at least the GUID from the comments. Keep the dotpeek advertisement, if you must.
Hi Malshoff5!
Could you please describe a case when you need that? Thanks!
Alexandra Guk sure. My use case is the exact same as the OP. I need to compare two versions of the same dll to determine what changed between versions. Thanks to the non-deterministic comments added to every file by dotpeek, my diff checker thinks that every single file has changed, even though the only thing actually changes in many cases is the GUID.
Malshoff5 Have you tried a built-in diff checker for comparing assemblies? Isn't it useful in your case?
No, because I'm using git. And also, I'd rather do the comparing in Visual Studio rather than resharper due to the fact that dotpeek is not an IDE.
Malshoff5 thank you for the details!
If you have Visual Studio with ReSharper, you can also compare Assemblies there, without dotPeek.
Anyway, we have a feature request for this: DOTP-7878 Allow to hide MVID and Assembly location in decompiled sources. Feel free to upvote!