-4

Hello i deleted my old project from repos but i want to edit it again but i don't know how to do.

I want to edit form and my codes please help.

My project:

enter image description here

wegreye
  • 1
  • 1
  • 1
  • 2
  • 1
    You don´t open an **assembly**, but a **project** in Visual Studio. The project is **compiled into** an assembly. Btw.: your image is completely useless. – MakePeaceGreatAgain May 06 '20 at 17:04
  • You can't. The source files are gone. However, you can use DotPeek to decompile an exe. It might be janky though. – Peri May 06 '20 at 23:20

2 Answers2

1

You can try what is suggested here : How do I decompile a .NET EXE into readable C# source code?

The purpose is to deassemble the code to be able to edit it again. But you will have some work to do cause the code will probably be quite different from the one you wrote.

Kirjava
  • 226
  • 1
  • 11
0

Do you have you .soln file anywhere with the source code? You can use visual studio to open that. Did you delete the repo or did you just delete all your code and push that change up to your repo? if its the latter, i would look into how to revert your codebase to a previous revision

Otherwise, the only thing i can think of doing is running your exe and dlls through a de-compiler but the code will not be the same as when you wrote it.

Cory Melendez
  • 224
  • 1
  • 8