Lost the source code to a DLL!

lkubler 41 Reputation points
2021-05-05T13:10:50.78+00:00

Hi,

Years ago I developed a label printing program for my company and now they've decided to change the company name and logo. I build the label with an image of the company logo in a separate class file. First time I've looked at this code since, well, I developed it using VS 2012.

But now I find I don't seem to have the original code for that separate class file and management really wants the logo changed. I'm guessing it was on the local hard drive of a workstation I disposed of, probably, 5 or 6 years ago.

Any thoughts on how to reverse engineer this DLL or am I doomed to try and re-invent the wheel? Programming isn't my primary function so it will be a challenge to recreate this. I have no idea what I originally did or where I got my inspiration.

Thanks in advance!

Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Timon Yang-MSFT 9,606 Reputation points
    2021-05-07T06:06:02.787+00:00

    Visual studio 2019 has provided such functions since version 16.5, please check:

    Decompilation of C# code made easy with Visual Studio

    Generate source code from .NET assemblies while debugging


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-05-05T15:36:40.337+00:00

    Look at the free tool from JetBrains, DotPeek (free)

    Example, selecting a random .DLL I wrote

    94063-figure1.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.