Skip to content

[templates] Add Framework parameter to project templates. Fixes #17319 - #25884

Merged
rolfbjarne merged 3 commits into
mainfrom
dev/rolf/issue-17319-template-framework
Jul 1, 2026
Merged

rolfbjarne merged 3 commits into
mainfrom
dev/rolf/issue-17319-template-framework

Conversation

@rolfbjarne

@rolfbjarne rolfbjarne commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

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 Framework parameter in their template.json files. This means
Visual 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 Framework choice parameter to all 24 project-type template.json
files. The parameter has a single choice matching the current TFM for the template
pack (e.g. net10.0-ios), with a replaces directive that substitutes into the
<TargetFramework> element in the generated .csproj.

Affected templates:

  • iOS: app (C#, F#, VB), tabbed, lib, binding, notification extensions
  • macOS: app (C#, VB), lib, binding
  • Mac Catalyst: app (C#, VB), lib, binding
  • tvOS: app (C#, VB), lib, binding

Fixes #17319

🤖 Pull request created by Copilot

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>
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne

Copy link
Copy Markdown
Member Author

/review

@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

âś… .NET for Apple Platforms PR Reviewer completed successfully!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

  1. Missing displayName property: The new Framework parameter lacks a displayName property that all other template parameters have. Adding this would improve UI consistency in Visual Studio.

  2. 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 replaces directive targeting csproj TargetFramework
  • âś… No breaking changes to existing template functionality
  • âś… Templates that previously lacked a symbols section 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

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne
rolfbjarne marked this pull request as ready for review July 1, 2026 18:15
Copilot AI review requested due to automatic review settings July 1, 2026 18:15
@rolfbjarne
rolfbjarne enabled auto-merge (squash) July 1, 2026 18:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

âś… [PR Build #2dc5ea9] Build passed (Detect API changes) âś…

Pipeline on Agent
Hash: 2dc5ea910c50166a7e9461271103e961ec4b232b [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

âś… [PR Build #2dc5ea9] Build passed (Build packages) âś…

Pipeline on Agent
Hash: 2dc5ea910c50166a7e9461271103e961ec4b232b [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

âś… API diff for current PR / commit

NET (empty diffs)

âś… API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 2dc5ea910c50166a7e9461271103e961ec4b232b [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

âś… [PR Build #2dc5ea9] Build passed (Build macOS tests) âś…

Pipeline on Agent
Hash: 2dc5ea910c50166a7e9461271103e961ec4b232b [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [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
âś… cecil: All 1 tests passed. Html Report (VSDrops) Download
âś… dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
âś… dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
âś… dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
âś… dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
âś… dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
âś… framework: All 2 tests passed. Html Report (VSDrops) Download
âś… fsharp: All 4 tests passed. Html Report (VSDrops) Download
âś… generator: All 5 tests passed. Html Report (VSDrops) Download
âś… interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
âś… introspection: All 4 tests passed. Html Report (VSDrops) Download
âś… linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
âś… linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
âś… linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
âś… linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
âś… monotouch (iOS): All 18 tests passed. Html Report (VSDrops) Download
âś… monotouch (MacCatalyst): All 17 tests passed. Html Report (VSDrops) Download
âś… monotouch (macOS): All 18 tests passed. Html Report (VSDrops) Download
âś… monotouch (tvOS): All 18 tests passed. Html Report (VSDrops) Download
âś… msbuild: All 2 tests passed. Html Report (VSDrops) Download
âś… sharpie: All 1 tests passed. Html Report (VSDrops) Download
âś… windows: All 3 tests passed. Html Report (VSDrops) Download
âś… xcframework: All 4 tests passed. Html Report (VSDrops) Download
âś… xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

âś… Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
âś… Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
âś… Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
âś… Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
âś… Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

âś… Linux build succeeded

Pipeline on Agent
Hash: 2dc5ea910c50166a7e9461271103e961ec4b232b [PR build]

@rolfbjarne
rolfbjarne merged commit 825c0a2 into main Jul 1, 2026
57 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/issue-17319-template-framework branch July 1, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Templates: .NET Standalone project doesn't have “Additional Information” page to allow to select framework when creating project

4 participants