PowerShell / Phosphor

A library and PowerShell module for generating user interfaces from PowerShell modules
Other
109 stars 24 forks source link

dotnet publish fails to build #12

Closed dfinke closed 7 years ago

dfinke commented 7 years ago
PS C:\GitHub\Phosphor> dotnet --version
1.0.1
PS C:\GitHub\Phosphor> dotnet publish -f net451 .\src\Phosphor
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.

Cmdlets\ShowModuleCmdlet.cs(7,25): error CS0234: The type or namespace name 'Automation' does not exist in the namespace 'System.Management' (are you missing an assembly reference?) [C:\GitHub\Phosphor\src\Phosphor\Phosphor.csproj]
Cmdlets\StartPhosphorSessionCmdlet.cs(6,25): error CS0234: The type or namespace name 'Automation' does not exist in the namespace 'System.Management' (are you missing an assembly reference?) [C:\GitHub\Phosphor\src\Phosphor\Phosphor.csproj]
Controllers\ModulesController.cs(8,25): error CS0234: The type or namespace name 'Automation' does not exist in the namespace 'System.Management' (are you missing an assembly reference?) [C:\GitHub\Phosphor\src\Phosphor\Phosphor.csproj]
Controllers\ModulesController.cs(9,25): error CS0234: The type or namespace name 'Automation' does not exist in the namespace 'System.Management' (are you missing an assembly reference?) [C:\GitHub\Phosphor\src\Phosphor\Phosphor.csproj]
Controllers\ModulesController.cs(10,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [C:\GitHub\Phosphor\src\Phosphor\Phosphor.csproj]

...
daviwil commented 7 years ago

Run dotnet restore first. I think I forgot to add that to the docs

dfinke commented 7 years ago

Yes. This worked.

dotnet restore .\src\Phosphor\Phosphor.csproj