[Servicing Hotfix] Enable VS 17.14 to use online templates #14408
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a servicing hotfix to enable Visual Studio 17.14 to use online templates instead of local ones by implementing platform-aware template URL generation and CI pipeline support for VS-specific template releases.
Changes Implemented
Template Configuration
Updated
packages/fx-core/src/common/templates-config.json
to support VS-specific template downloads:vstagPrefix: "templates-vs@"
for VS template release tagsvsversion: "18.0.0"
for stable VS template versionGenerator Logic
Enhanced template generation to support platform-specific behavior:
getTemplateUrl()
function that detects VS vs VSCode platformsgetTemplateVSUrl()
for VS-specific template URL generationuseLocalTemplate: true
)[email protected]
(whenTEAMSFX_TEMPLATE_PRERELEASE=vs
)[email protected]
(production releases)CI Pipeline
Extended
.github/workflows/cd.yml
to support VS template releases:vstemplate
input parameter for controlling VS template releases[email protected]
tagtemplates/package.json
VS_RELEASE
environment variableCode Quality
Fixed parameter naming inconsistency:
prefex
parameter toprefix
ingetTemplateZipUrlByVersion()
functionTemplate URL Generation Examples
For a C# template in VS 17.14:
This hotfix cherry-picks changes from PRs #14122, #14123, and #14126 to provide VS 17.14 with the ability to download templates from GitHub releases, improving the user experience by ensuring templates are always up-to-date.
Fixes #14407.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
googlechromelabs.github.io
https://storage.googleapis.com/chrome-for-testing-public/129.0.6668.70/linux64/chrome-linux64.zip
REDACTED, pid is -1
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.