PowerBuild icon indicating copy to clipboard operation
PowerBuild copied to clipboard

cannot import module powerbuild

Open jmp75 opened this issue 8 years ago • 1 comments

Using "C:\Program Files\PowerShell\6.0.0.17\powershell.exe"

 Install-Module -Name PowerBuild -Scope CurrentUser
PS C:\Users\blah> $buildResults = Invoke-MSBuild -Project "C:\src\github_jm\moirai\tests\moirai_test.sln" -Target Build -Verbosity Minimal -DefaultLogger Host -Property @{Configuration="Debug"}
Invoke-MSBuild : The 'Invoke-MSBuild' command was found in the module 'PowerBuild', but the module could not be loaded. For more information, run
'Import-Module PowerBuild'.
PS C:\Users\johndoe> Import-Module PowerBuild                                                                                                                    
Import-Module : The following error occurred while loading the extended type data file: ,                                                                       
C:\Users\johndoe\Documents\PowerShell\Modules\PowerBuild\0.4.1\PowerBuild.types.ps1xml(32) : Error in type "PowerBuild.ResultsByTarget": The "Type" node must    
have "Members", "TypeConverters", or "TypeAdapters".                                                                                                            
, C:\Users\johndoe\Documents\PowerShell\Modules\PowerBuild\0.4.1\PowerBuild.types.ps1xml(58) : Error: Unable to find type [PowerBuild.ResultsByTargetAdapter].   
, C:\Users\johndoe\Documents\PowerShell\Modules\PowerBuild\0.4.1\PowerBuild.types.ps1xml(51) : Error: CodeProperty should use a getter or setter method.         

jmp75 avatar Apr 19 '17 00:04 jmp75

PowerShell 6.0 is currently not supported. I'll probably start looking into this once we get closer to release. But definitely not later than RC becomes available.

kovalikp avatar Apr 19 '17 21:04 kovalikp