Attempting to run the 'Build' Task in VS Code and I get an error:
Import-Module : A positional parameter cannot be found that accepts argument 'Repositories\PowerShell/build.psm1'.
At line:1 char:1
+ Import-Module C:\Users\Carl\Documents\Git Repositories\PowerShell/bui ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Import-Module], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
The reason is a lack of quoting around the pathname arguments in the Tasks.JSON file, where they could contain spaces. I corrected, and building at least started.
"tasks": [
{
"label": "Bootstrap",
"type": "shell",
"command": "Import-Module '${workspaceFolder}/build.psm1'; Start-PSBootstrap",
"problemMatcher": []
},
{
"label": "Clean Build",
"type": "shell",
"command": "Import-Module '${workspaceFolder}/build.psm1'; Start-PSBuild -Clean -Output (Join-Path '${workspaceFolder}' debug)",
"problemMatcher": "$msCompile"
},
{
"label": "Build",
"type": "shell",
"command": "Import-Module '${workspaceFolder}/build.psm1'; Start-PSBuild -Output (Join-Path '${workspaceFolder}' debug)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile"
}
]
Now I am trying to figure out why the build failed at:
C:\Users\Carl\Documents\Git Repositories\PowerShell\src\System.Management.Automation\engine\remoting\commands\EnterPSHostProcessCommand.cs(135,72): error CS0117: 'RemotingErrorIdStrings' does not contain a definition for 'EnterPSHostProcessCmdletDisabled' [C:\Users\Carl\Documents\Git Repositories\PowerShell\src\System.Management.Automation\System.Management.Automation.csproj]
Attempting to run the 'Build' Task in VS Code and I get an error:
The reason is a lack of quoting around the pathname arguments in the Tasks.JSON file, where they could contain spaces. I corrected, and building at least started.
Now I am trying to figure out why the build failed at: