22
33## Build & Test
44
5- Requires .NET SDK 8 .0+. Use ` dotnet ` directly for building and testing — it's faster and
5+ Requires .NET SDK 10 .0+. Use ` dotnet ` directly for building and testing — it's faster and
66requires no extra tooling. The ` Invoke-Build ` script requires the ` InvokeBuild ` and ` platyPS `
77PowerShell modules (platyPS is ` #Requires ` 'd at the top, so the whole script fails without it),
88and is mainly needed to assemble the full PowerShell module for release.
99
1010``` powershell
1111# Build (run both; Hosting depends on the core library)
1212dotnet publish src/PowerShellEditorServices/PowerShellEditorServices.csproj -f netstandard2.0
13- dotnet publish src/PowerShellEditorServices.Hosting/PowerShellEditorServices.Hosting.csproj -f net8 .0
13+ dotnet publish src/PowerShellEditorServices.Hosting/PowerShellEditorServices.Hosting.csproj -f net10 .0
1414
1515# Run all unit tests
16- dotnet test test/PowerShellEditorServices.Test/ --framework net8 .0
16+ dotnet test test/PowerShellEditorServices.Test/ --framework net10 .0
1717
1818# Run a single test by name
19- dotnet test test/PowerShellEditorServices.Test/ --framework net8 .0 --filter "FullyQualifiedName~CompletesCommandInFile"
19+ dotnet test test/PowerShellEditorServices.Test/ --framework net10 .0 --filter "FullyQualifiedName~CompletesCommandInFile"
2020
2121# Run tests by trait category
22- dotnet test test/PowerShellEditorServices.Test/ --framework net8 .0 --filter "Category=Completions"
22+ dotnet test test/PowerShellEditorServices.Test/ --framework net10 .0 --filter "Category=Completions"
2323
2424# Run E2E tests
25- dotnet test test/PowerShellEditorServices.Test.E2E/ --framework net8 .0
25+ dotnet test test/PowerShellEditorServices.Test.E2E/ --framework net10 .0
2626```
2727
2828For assembling the full module or running the complete CI suite (including Windows PowerShell
@@ -48,11 +48,11 @@ Protocol (DAP)** server for PowerShell, consumed by VS Code and other editors.
4848- ** ` src/PowerShellEditorServices ` ** (` netstandard2.0 ` ) — Core library containing all LSP/DAP
4949 handlers, services, and the PowerShell execution engine. Namespace:
5050 ` Microsoft.PowerShell.EditorServices ` .
51- - ** ` src/PowerShellEditorServices.Hosting ` ** (` net8 .0` , ` net462 ` ) — Entry point layer that loads
51+ - ** ` src/PowerShellEditorServices.Hosting ` ** (` net10 .0` , ` net462 ` ) — Entry point layer that loads
5252 PSES into a PowerShell process via ` StartEditorServicesCommand ` . Uses a custom
5353 ` AssemblyLoadContext ` (` PsesLoadContext ` ) on .NET Core to isolate dependencies.
5454- ** ` module/PowerShellEditorServices/ ` ** — The shipped PowerShell module. The build assembles
55- compiled binaries into ` bin/Core/ ` (net8 .0) and ` bin/Desktop/ ` (net462). The module manifest
55+ compiled binaries into ` bin/Core/ ` (net10 .0) and ` bin/Desktop/ ` (net462). The module manifest
5656 loads the appropriate DLL based on PowerShell edition.
5757
5858### Key Services (registered in ` PsesServiceCollectionExtensions ` )
@@ -136,7 +136,7 @@ Because of that, treat any change to an existing `public` member as potentially
136136### Multi-targeting
137137
138138The core library targets ` netstandard2.0 ` for compatibility with both .NET Core and .NET
139- Framework. The hosting project and tests dual-target ` net8 .0` and ` net462 ` (Windows PowerShell
139+ Framework. The hosting project and tests dual-target ` net10 .0` and ` net462 ` (Windows PowerShell
1401405.1). Non-Windows platforms skip ` net462 ` targets.
141141
142142## Pull Request Labels
0 commit comments