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.
- The web part that is installed on Sharepoint 2016.
- Web part installer in .webpart format
- VisualStudio
What is done. I read the literature. From various sources I learned that you need
- 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.
- Found a decompiler this. Which did its job and gave me a list of 6 files. (.cs .pdb .sln .csproj)
- 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)