- Регистрация
- 08.10.2023
- Сообщения
- 136
- Благодарностей
- 35
- Баллы
- 28
Hi everyone!
I'm facing a bit of a challenge and could really use your help.
I'm trying to extract all the content from the C# code blocks ("Sharp" blocks) in my ZennoPoster project.
Essentially, I want to collect all my C# code and output it into a text file or a variable—any method that lets me quickly and efficiently retrieve all this code would be amazing.I've tried several methods, but none have worked so far:
I'm facing a bit of a challenge and could really use your help.
I'm trying to extract all the content from the C# code blocks ("Sharp" blocks) in my ZennoPoster project.
Essentially, I want to collect all my C# code and output it into a text file or a variable—any method that lets me quickly and efficiently retrieve all this code would be amazing.I've tried several methods, but none have worked so far:
- Accessing project.TaskTemplate.Actions: I attempted to loop through project.TaskTemplate.Actions to find all actions of type ActionType.CSharp. However, I encountered errors stating that TaskTemplate doesn't exist in IZennoPosterProjectModel, and ActionType isn't found in the specified namespace.
- Export options: I looked for an option to export the project as XML or any format that would allow me to extract the code blocks, but couldn't find such a feature in the software.