Use the prompt
Share the source code, current versions, and target framework documentation. Existing behavior tests give you something concrete to compare as the implementation changes.
Migrate code between frameworks while preserving functionality and adopting modern patterns.
For GitLab Duo
Migrate this code from [OLD FRAMEWORK] to [NEW FRAMEWORK]:
[PASTE CODE]
Ensure:
1. Functionality is preserved
2. Modern patterns are used
3. Deprecated APIs are updated
4. Tests are updated
5. Performance is maintainedShare the source code, current versions, and target framework documentation. Existing behavior tests give you something concrete to compare as the implementation changes.