-
Notifications
You must be signed in to change notification settings - Fork 876
Closed
Description
I am trying to build docfx from source but running into a PowerShell error.
Operating System: Windows 10 Enterprise (21H2), powershell 5.1.19041.1682, nuget 5.9.1.11
DocFX Version Used: latest dev (d111647)
Steps to Reproduce:
- Run build.cmd on a freshly checked-out copy of the docfx repo.
Expected Behavior:
It builds!
Actual Behavior:
Build fails with:
PS R:\github\docfx> .\build.cmd
Running on OS Windows
Using Nuget Command: C:\Users\matv8981.AVWORLD\AppData\Local\Nuget\nuget.exe, NuGet Version: 5.9.1.11
At R:\github\docfx\UpdateTemplate.ps1:76 char:58
+ $baseDir = "$using:templateHome\$($fileGroup.cwd ?? $_)"
+ ~~
Unexpected token '??' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
The offending line:
Line 76 in d111647
$baseDir = "$using:templateHome\$($fileGroup.cwd ?? $_)" |
Metadata
Metadata
Assignees
Labels
No labels