Add code generator for win form projects #7

Closed
opened 2022-06-06 12:52:36 +00:00 by thorsten · 11 comments
thorsten commented 2022-06-06 12:52:36 +00:00 (Migrated from devops.tsommer.org)
  • Before generating, scans all *.cs files for used codes (using the complete path prepend with I18N- e.g. I18N-PATH.PATH.PATH.ELEMENT, etc.)
    • When a line contains such a code, copy the entire line of code for generation
    • Copy the namespace and class name
  • When generating, create a new partial class for each found class
    • Replicate the copied lines, but set the actual content instead of the code
    • Provide a method (not async!) which gets called at the end of the constructor
    • Same method can be called, when the user switch the culture

This method is convenient. The developer pastes the codes in Visual Studio. The generator automatically handles e.g. renames of variables in Visual Studio.

Issues:

  • We must ensure, that deletes classes get recognized. Might we add a code to any generated class. When the generator is done, he can detect files which were not touched. These files can be deleted.

Settings to add:

  • Generator: Enable .NET WinForms
  • Generator: .NET WinForms Root
- Before generating, scans all `*.cs` files for used codes (using the complete path prepend with `I18N-` e.g. `I18N-PATH.PATH.PATH.ELEMENT`, etc.) - When a line contains such a code, copy the entire line of code for generation - Copy the namespace and class name - When generating, create a new partial class for each found class - Replicate the copied lines, but set the actual content instead of the code - Provide a method (not `async`!) which gets called at the end of the constructor - Same method can be called, when the user switch the culture This method is convenient. The developer pastes the codes in Visual Studio. The generator automatically handles e.g. renames of variables in Visual Studio. **Issues:** - We must ensure, that deletes classes get recognized. Might we add a code to any generated class. When the generator is done, he can detect files which were not touched. These files can be deleted. **Settings to add:** - Generator: Enable .NET WinForms - Generator: .NET WinForms Root
thorsten commented 2022-06-06 12:52:56 +00:00 (Migrated from devops.tsommer.org)

marked this issue as related to #6

marked this issue as related to #6
thorsten commented 2022-06-06 13:35:48 +00:00 (Migrated from devops.tsommer.org)

marked this issue as related to #8

marked this issue as related to #8
thorsten commented 2022-11-01 20:03:22 +00:00 (Migrated from devops.tsommer.org)

changed the description

changed the description
thorsten commented 2022-11-01 20:04:13 +00:00 (Migrated from devops.tsommer.org)

changed the description

changed the description
thorsten commented 2022-11-01 20:08:08 +00:00 (Migrated from devops.tsommer.org)

changed the description

changed the description
thorsten commented 2022-11-01 20:08:18 +00:00 (Migrated from devops.tsommer.org)

changed the description

changed the description
thorsten commented 2023-02-13 19:53:27 +00:00 (Migrated from devops.tsommer.org)

marked this issue as related to #56

marked this issue as related to #56
thorsten commented 2023-02-16 19:46:52 +00:00 (Migrated from devops.tsommer.org)

changed the description

changed the description
thorsten commented 2023-02-16 19:47:06 +00:00 (Migrated from devops.tsommer.org)

created branch 7-add-code-generator-for-win-form-projects to address this issue

created branch [`7-add-code-generator-for-win-form-projects`](/open-source/dotnet/i18n-commander/-/compare/main...7-add-code-generator-for-win-form-projects) to address this issue
thorsten commented 2023-02-16 19:47:09 +00:00 (Migrated from devops.tsommer.org)

mentioned in merge request !34

mentioned in merge request !34
thorsten commented 2023-12-08 17:08:17 +00:00 (Migrated from devops.tsommer.org)

Decided not to support WinForms. Closed!

Decided not to support WinForms. Closed!
thorsten (Migrated from devops.tsommer.org) closed this issue 2023-12-08 17:08:17 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dotnet/I18NCommander#7
No description provided.