Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67a34a8

Browse files
CopilotTravisEz13
andauthored
Update linux.md documentation to reflect current CI build configuration (#26255)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: TravisEz13 <[email protected]>
1 parent eeefcd7 commit 67a34a8

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ NativeCommandProcessor.cs
622622
NativeCultureResolver
623623
nativeexecution
624624
net5.0
625+
net10.0
625626
netcoreapp5.0
626627
netip.ps1.
627628
netstandard.dll

docs/building/linux.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ We'll start by showing how to set up your environment from scratch.
55

66
## Environment
77

8-
These instructions are written assuming the Ubuntu 16.04 LTS, since that's the distro the team uses.
8+
These instructions are written assuming Ubuntu 24.04 LTS (the CI uses ubuntu-latest).
99
The build module works on a best-effort basis for other distributions.
1010

1111
### Git Setup
@@ -41,15 +41,13 @@ In PowerShell:
4141

4242
```powershell
4343
Import-Module ./build.psm1
44-
Start-PSBootstrap
44+
Start-PSBootstrap -Scenario Both
4545
```
4646

4747
The `Start-PSBootstrap` function does the following:
4848

49-
- Adds the LLVM package feed
50-
- Installs our dependencies combined with the dependencies of the .NET CLI toolchain via `apt-get`
51-
- Uninstalls any prior versions of .NET CLI
52-
- Downloads and installs the .NET Core SDK 2.0.0 to `~/.dotnet`
49+
- Installs build dependencies and packaging tools via `apt-get` (or equivalent package manager)
50+
- Downloads and installs the .NET SDK (currently version 10.0.100-rc.1) to `~/.dotnet`
5351

5452
If you want to use `dotnet` outside of `Start-PSBuild`, add `~/.dotnet` to your `PATH` environment variable.
5553

@@ -69,7 +67,7 @@ Start-PSBuild -UseNuGetOrg
6967
Congratulations! If everything went right, PowerShell is now built.
7068
The `Start-PSBuild` script will output the location of the executable:
7169

72-
`./src/powershell-unix/bin/Debug/net6.0/linux-x64/publish/pwsh`.
70+
`./src/powershell-unix/bin/Debug/net10.0/linux-x64/publish/pwsh`.
7371

7472
You should now be running the PowerShell Core that you just built, if you run the above executable.
7573
You can run our cross-platform Pester tests with `Start-PSPester -UseNuGetOrg`, and our xUnit tests with `Start-PSxUnit`.

0 commit comments

Comments
 (0)