Skip to content

Add dotnet workload based on the WinUI workload model - #158

Merged
AmirMS (AmelBawa-msft) merged 3 commits into
mainfrom
crutkas-add-winui-workloads
Oct 8, 2026
Merged

AmirMS (AmelBawa-msft) merged 3 commits into
mainfrom
crutkas-add-winui-workloads

Conversation

@crutkas

Copy link
Copy Markdown
Member

Adds a new single workload, dotnet, to the dev-config.ps1 workload engine — modeled on workloads/winui.ps1 per the "Adding a workload" guide, trimmed down to plain .NET SDK setup.

What it installs

  • Developer Mode
  • PowerShell 7
  • .NET SDK 10

No Visual Studio, Windows App Development CLI, or UI framework templates — those are covered by the winforms, winappcli, and winui workloads respectively (see companion PRs).

Changes

  • src/windows-dev-config/workloads/dotnet.ps1 — workload definition reusing the shared prerequisites, registry-system (Developer Mode only), and packages phases.
  • src/Workloads/dotnet/setup.ps1 — signed entry-point wrapper, copied from Workloads/winui/setup.ps1 with only -Workload changed.
  • src/windows-dev-config/README.md — added a row to the single-workloads table.

Validation

Loaded the new definition through Get-DevConfigWorkload (steps/_workload.ps1) to confirm it passes the engine's schema checks (unknown keys, phase/function/parameter validation) for -Action Full.

Adds a trimmed-down WinUI-style workload for plain .NET SDK setup: Developer Mode, PowerShell 7, and .NET SDK 10. No Visual Studio, Windows App CLI, or UI framework templates.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Delete src/Workloads/dotnet/configuration.winget and install.ps1
- Point manifest.yml's dotnet flow at Workloads/dotnet/setup.ps1 (engine),
  drop the configuration key, and mark manual_test: true since the engine
  entry point needs a signed release cycle and elevation
- Remove the stale content-hash entry for dotnet/configuration.winget
- Update development.md's repository-layout line for dotnet/

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
$env:PSModulePath = "$PSHOME\Modules;$env:PSModulePath"

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$payloadRef = '2dc3d2d30953c12639ad2824c1ff11ca606175d7'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note to self: We will need to update the hash, but I will do it in another PR after we sign the files

@AmelBawa-msft
AmirMS (AmelBawa-msft) merged commit 0be0f2a into main Oct 8, 2026
1 check passed
@AmelBawa-msft
AmirMS (AmelBawa-msft) deleted the crutkas-add-winui-workloads branch October 8, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants