Repository navigation
[templates] Add Framework parameter to project templates. Fixes #17319 - #25884
Conversation
Add a 'Framework' choice parameter to all 24 project-type template.json files (iOS, macOS, Mac Catalyst, tvOS). This enables Visual Studio to show the 'Additional Information' page with a framework selection dropdown when creating new standalone projects. Fixes #17319 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/review |
|
âś… .NET for Apple Platforms PR Reviewer completed successfully! |
There was a problem hiding this comment.
@copilot ## Code Review Summary
âś… Overall Assessment: Clean implementation with minor suggestions
This PR successfully adds a Framework parameter to all 24 project template.json files across iOS, macOS, tvOS, and Mac Catalyst platforms. The change is consistent, well-structured, and should enable Visual Studio to show the "Additional Information" page during project creation.
Findings
💡 2 suggestions — Minor improvements for consistency and future maintainability
-
Missing
displayNameproperty: The newFrameworkparameter lacks adisplayNameproperty that all other template parameters have. Adding this would improve UI consistency in Visual Studio. -
Single-choice consideration: The parameter currently offers only one TFM choice (e.g.,
net10.0-ios). This is likely intentional for template pack versioning, but worth confirming this approach is planned for .NET 11 updates.
Positive Notes
- âś… Consistent JSON structure across all 24 templates
- âś… Correct TFM values for each platform
- âś… Proper
replacesdirective targeting csproj TargetFramework - âś… No breaking changes to existing template functionality
- âś… Templates that previously lacked a
symbolssection now have one correctly structured
CI Status Note
The xamarin-macios-pr-apidiff check is failing, which is unexpected for template-only changes. This appears unrelated to the PR content itself — API diff should not be affected by template.json modifications. The simulator tests and other checks passed successfully.
The implementation is sound and ready for merge once the displayName inconsistency is addressed (or confirmed as acceptable).
Generated by .NET for Apple Platforms PR Reviewer for issue #25884 · 67.1 AIC · ⌖ 10.3 AIC · ⊞ 5.1K
Comment /review to run again
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
âś… [PR Build #2dc5ea9] Build passed (Detect API changes) âś…Pipeline on Agent |
âś… [PR Build #2dc5ea9] Build passed (Build packages) âś…Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
âś… [PR Build #2dc5ea9] Build passed (Build macOS tests) âś…Pipeline on Agent |
🚀 [CI Build #2dc5ea9] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 199 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
For review: the first commit contains the relevant changes, the other commits are just regeneration of generated files.
The .NET standalone project templates (iOS, macOS, Mac Catalyst, tvOS) don't
declare a
Frameworkparameter in theirtemplate.jsonfiles. This meansVisual Studio doesn't show the "Additional Information" page when creating a
new project from these templates -- unlike MAUI templates which do have this
parameter.
This PR adds a
Frameworkchoice parameter to all 24 project-type template.jsonfiles. The parameter has a single choice matching the current TFM for the template
pack (e.g.
net10.0-ios), with areplacesdirective that substitutes into the<TargetFramework>element in the generated.csproj.Affected templates:
Fixes #17319
🤖 Pull request created by Copilot