0

So I flew the task of changing the web part. A task. Fix a few lines so that the web part works as we need. What do we have.

  1. The web part that is installed on Sharepoint 2016.
  2. Web part installer in .webpart format
  3. VisualStudio

What is done. I read the literature. From various sources I learned that you need

  1. decompile this file to get the contents (in my case) of 6 files. Among which was a .DLL file. And as they told me somewhere, it is necessary to work with .DLL exactly.
  2. Found a decompiler this. Which did its job and gave me a list of 6 files. (.cs .pdb .sln .csproj)
  3. Opened in Visual Studio 2017 a folder with files that I received from the previous step. Found the desired problem. Changed what I needed.

And now how to collect everything? I can not do it. Visual Studio swears during assembly. Error CS0246 Could not find the type or namespace name "....." (perhaps there is no using directive or assembly reference) can anyone come across this. how to get out of the situation? my knowledge of this topic is minimal. in my humble opinion, I stuck half way. Sorry if I duplicate the question)

4
  • Decompiling .NET assemblies does not provide you with the original source code. Instead, it provides you a reference guide to the code, which you can then re-implement in your own project.
    – user6024
    Commented Jun 24, 2020 at 14:36
  • @Trevor Seward Thanks for the feedback. Do I understand correctly. The DLL file that I need to edit after any of my manipulations will not work at all ??
    – AlexGR
    Commented Jun 25, 2020 at 5:15
  • I'm not saying it won't work, but it will almost certainly require cleanup/fixes in order to compile.
    – user6024
    Commented Jun 25, 2020 at 14:24
  • in fact, I unpacked the dll file. Found and changed the right one. And stuck at the stage of compiling VisualBasic2017 code back to .dll about 7 errors that I can’t know how to fix
    – AlexGR
    Commented Jul 3, 2020 at 12:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.