-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I just came across psbuild and am very interested in it. However, having recently moved to PowerShell Core for portability reasons, I wanted to give psbuild a spin under PS Core 6.0.0.9-beta.
PS C:\Kellekek\Microsoft\PowerShell\6.0.0.9> Install-Module Invoke-MsBuild
PackageManagement\Install-Package : Could not compare "6.0.0-alpha" to "5.0". Error: "Cannot convert value "5.0" to typ
e "System.Management.Automation.SemanticVersion". Error: "Cannot process argument because the value of argument "versio
n" is not valid. Change the value of the "version" argument and run the operation again.""
Trying with the self-installing script:
PS C:\Users\Matty\Desktop> Invoke-WebRequest https://raw.githubusercontent.com/ligershark/psbuild/master/src/GetPSBuild.ps1 -OutFile GetPSBuild.ps1
PS C:\Users\Matty\Desktop> .\GetPSBuild.ps1
Method invocation failed because [System.Environment] does not contain a method named 'GetFolderPath'.
At C:\Users\Matty\Desktop\GetPSBuild.ps1:188 char:9
+ $systemDir = [Environment]::GetFolderPath('System')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
New-Object : Cannot find type [System.Net.WebClient]: verify that the assembly containing this type is loaded.
At C:\Users\Matty\Desktop\GetPSBuild.ps1:105 char:14
+ (New-Object System.Net.WebClient).DownloadFile($nugetDown ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
psbuild not found, and was not downloaded successfully. sorry.
Check your nuget.config (default path=C:\Users\Matty\AppData\Roaming\NuGet\NuGet.config) file to ensure that nuget.org
is enabled.
You can also try changing the versionToInstall value.
You can file an issue at https://github.com/ligershark/psbuild/issues.
At C:\Users\Matty\Desktop\GetPSBuild.ps1:177 char:13
+ throw ("psbuild not found, and was not downloaded success ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (psbuild not fou...psbuild/issues.:String) [], RuntimeException
+ FullyQualifiedErrorId : psbuild not found, and was not downloaded successfully. sorry.
Check your nuget.config (default path=C:\Users\Matty\AppData\Roaming\NuGet\NuGet.config) file to ensure that nuge
t.org is enabled.
You can also try changing the versionToInstall value.
You can file an issue at https://github.com/ligershark/psbuild/issues.
MSBuild now being able to build on OSX and Linux using .Net Core, it would be nice if psbuild followed the example.
Metadata
Metadata
Assignees
Labels
No labels