Skip to content

Updating .NET item templates to use primary constructors#1716

Draft
mattchenderson wants to merge 1 commit intodevfrom
mattchenderson/primary-constructor
Draft

Updating .NET item templates to use primary constructors#1716
mattchenderson wants to merge 1 commit intodevfrom
mattchenderson/primary-constructor

Conversation

@mattchenderson
Copy link
Contributor

Updating the .NET templates to use primary constructors to reduce verbosity a little. The changes here require C#12, which means the .NET 8 SDK or later. If we accept these changes, we must ensure that they don't get added to older versions in the tooling feed, for example. We also need to look at some separation in the Core Tools.

This PR is being open as a draft until those enforcement mechanisms can be properly in place. At time of opening, the tooling feed generator has been updated to skip out-of-support versions. However, there are enough manual changes in that repo that we might need to add extra enforcement - I'm currently thinking of auto-review from Copilot, with an appropriate copilot-instructions.md to frame this new requirement and help avoid mistakes. I do not yet have a plan for the Core Tools.

@manvkaur
Copy link
Contributor

manvkaur commented Feb 3, 2026

Hi @mattchenderson , Is this PR ready for review and merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants