Skip to content

[release/v7.5.11] Enable early .NET builds in APIScan - #27956

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.5.11from
jshigetomi:backport-27952-v7.5.11
Sep 3, 2026
Merged

Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.5.11from
jshigetomi:backport-27952-v7.5.11

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Backport of #27952 to release/v7.5.11.

This enables early .NET SDK download, selection, authenticated feed setup, and restore-phase compilation for the APIScan pipeline.

Co-authored-by: Justin Chung <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot-Session: 8e891fb6-fc75-4166-bd45-0a564a2b94cd
(cherry picked from commit ed0ec1b)
Copilot AI lite review requested due to automatic review settings September 2, 2026 23:22
@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner September 2, 2026 23:22
@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Sep 2, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟡 Changes recommended

Early-access activation is wired to ISEARLYACCESS, but the pipeline currently sets IsEarlyAccess, so the early-access path won’t execute.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Backport of #27952 to release/v7.5.11 to enable APIScan to build branches that require an early-access .NET SDK/feed by adding early SDK download/selection and authenticated feed restore support.

Changes:

  • Add an early-access .NET download “prep” stage and wire APIScan to depend on it.
  • Update APIScan job to install/select the early-access SDK (via global.json) and run key steps in OneBranch restore phase with feed credentials.
  • Switch module restore nuget.config generation to use the internal PowerShell Azure DevOps feed in early-access mode.
File summaries
File Description
build.psm1 Updates Switch-PSNugetConfig early-access behavior to use the internal PowerShell feed for module restores.
.pipelines/templates/insert-nuget-config-azfeed.yml Passes Azure DevOps feed credentials into Switch-PSNugetConfig and expands VSS_NUGET_EXTERNAL_FEED_ENDPOINTS setup.
.pipelines/templates/compliance/apiscan.yml Replaces UseDotNet with shared early-access install flow and selects early-access SDK by updating global.json.
.pipelines/apiscan-gen-notice.yml Adds early-access parameters and a prep stage to download the early-access .NET SDK/runtime artifacts.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pipelines/apiscan-gen-notice.yml
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 8d33674 into PowerShell:release/v7.5.11 Sep 3, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants