What can I do when I get this message: "This project uses legacy Windows support which is being phased out and will no longer be available for new projects in the next Enterprise version"

If you will generate the policy in Studio, you will see that in the UiPath.modern.policies\UiPath.policy.Development.json file

“display-legacy-framework-deprecation”: true or “display-legacy-framework-deprecation”: false