-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPF project templates use latest C# language idioms #4774
Comments
@ryalanms @SamBent https://github.com/dotnet/wpf/tree/main/packaging/Microsoft.Dotnet.Wpf.ProjectTemplates sought to unify/accommodate several nearly-identical templates across multiple TFM's - it wasn't designed to handle unification of disparate templates. This change will create a new template that will be a large departure from existing templates, I think. I would highly recommend forking the template package at this time and starting a new line for .NET 6+ (and retain the .NET 5, .NET Core 3.x, .NET Framework support in the older package as-is). |
You want to be aware of dotnet/sdk#18459 and implement global usings support once it is merged. I have dotnet/winforms#5183 waiting for it as well. |
@OliaG @vatsan-madhavan the SDK feature for global usings has now been merged. The epic has been updated with details of which namespaces are imported by which SDKs. Would appreciate you adding details for WPF at your convenience. |
@OliaG @ryalanms @SamBent @RussKie @vatsan-madhavan is there an update on the status of this for WPF? |
@DamianEdwards I’m just offering pointers from experience - it’s up to the team (@SamBent @ryalanms) to commit to specific timelines/plans. |
Just a hint since this repo is also using |
@ryalanms you can use dotnet/winforms#5609 as a guide. |
WPF included implicit namespace support and added nullable to the templates. Other updates will need to go in servicing. |
@DamianEdwards @OliaG @vlada-shubina Are we good to close this issue? We have enabled implit usings and file-scoped namespaces by deault in our templates, here is the corresponding PR #6973 |
In .NET 6, the included C# project templates will use the latest language idioms.
See the parent Epic for details.
@OliaG
The text was updated successfully, but these errors were encountered: