Skip to content

Replace partial variable syntax with fields in MVVM template to support all versions of .NET 8.0#6565

Open
lauren-ciha wants to merge 3 commits into
mainfrom
user/laurenciha/test-mvvm-on-main
Open

Replace partial variable syntax with fields in MVVM template to support all versions of .NET 8.0#6565
lauren-ciha wants to merge 3 commits into
mainfrom
user/laurenciha/test-mvvm-on-main

Conversation

@lauren-ciha

Copy link
Copy Markdown
Member

This PR replaces the partial variable syntax available in C# 12.0 preview and above with field syntax so that the MVVM C# template is compatible with all versions of .NET 8.0. These changes also introduce a -DotnetSdkVersion parameter to Test-DotnetNewTemplates.ps1 to make testing with multiple .NET versions easier on a local machine. The winui tabview and winui mvvm templates are also added to the test list in Test-DotnetNewTemplates.ps1.

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

@lauren-ciha lauren-ciha force-pushed the user/laurenciha/test-mvvm-on-main branch from 49b4f4f to 9d440f5 Compare June 12, 2026 21:16
@lauren-ciha lauren-ciha requested a review from Scottj1s June 12, 2026 21:16
@lauren-ciha

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant