mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Explain the parameter -UseNuGetOrg in build documentation (#26507)
This commit is contained in:
@@ -64,6 +64,8 @@ Import-Module ./build.psm1
|
||||
Start-PSBuild -UseNuGetOrg
|
||||
```
|
||||
|
||||
> The PowerShell project by default references packages from the private Azure Artifacts feed, which requires authentication. The `-UseNuGetOrg` flag reconfigures the build to use the public NuGet.org feed instead.
|
||||
|
||||
Congratulations! If everything went right, PowerShell is now built.
|
||||
The `Start-PSBuild` script will output the location of the executable:
|
||||
|
||||
|
||||
@@ -37,3 +37,5 @@ We cannot do this for you in the build module due to #[847][].
|
||||
Start a PowerShell session by running `pwsh`, and then use `Start-PSBuild -UseNuGetOrg` from the module.
|
||||
|
||||
After building, PowerShell will be at `./src/powershell-unix/bin/Debug/net6.0/osx-x64/publish/pwsh`.
|
||||
|
||||
> The PowerShell project by default references packages from the private Azure Artifacts feed, which requires authentication. The `-UseNuGetOrg` flag reconfigures the build to use the public NuGet.org feed instead.
|
||||
|
||||
@@ -61,6 +61,8 @@ Import-Module ./build.psm1
|
||||
Start-PSBuild -Clean -PSModuleRestore -UseNuGetOrg
|
||||
```
|
||||
|
||||
> The PowerShell project by default references packages from the private Azure Artifacts feed, which requires authentication. The `-UseNuGetOrg` flag reconfigures the build to use the public NuGet.org feed instead.
|
||||
|
||||
Congratulations! If everything went right, PowerShell is now built and executable as `./src/powershell-win-core/bin/Debug/net6.0/win7-x64/publish/pwsh.exe`.
|
||||
|
||||
This location is of the form `./[project]/bin/[configuration]/[framework]/[rid]/publish/[binary name]`,
|
||||
|
||||
Reference in New Issue
Block a user