How to get comandlet out-zip

Topics: User Forum
Jan 17, 2007 at 12:56 PM
Hello!
I'd want to use compressing comandlets like (out-zip, out-gzip, etc).

Unfortunately I was unable to find any suitable description how to do it.
I have downloaded the latest source (PowerShellCX-16367.zip), but I have no idea what to do with it.

So could you write a kind of step by step description?

Thank you!

Developer
Jan 17, 2007 at 2:55 PM
Lets say you extracted the zip to d:\16433. Execute the following commands from Windows PowerShell:
PS C:\> cd D:\16433\PowerShellCX\Trunk\Src
PS C:\> & "$Env:SystemRoot\Microsoft.NET\Framework\v2.0.50727\msbuild.exe"
the solution should compile, and the resulting binaries are located in d:\16433\PowerShellCX\Trunk\Src\Pscx\bin\Debug. copy them wherever you want, and make the PscxHome environment variable (using computer properties, advanced, env variables) point to that directory.
Jan 17, 2007 at 3:56 PM
Some errors appear during a compilation.


Commands\IO\Compression\ArchiveWriter\WriterBase.cs(11,7): error CS0246: The type or namespace name 'Wintell
ect' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(9,17): error CS0234: The type or namespace name 'TeamFoundation
' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(10,17): error CS0234: The type or namespace name 'TeamFoundatio
n' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(11,17): error CS0234: The type or namespace name 'TeamFoundatio
n' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(12,17): error CS0234: The type or namespace name 'TeamFoundatio
n' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(12,17): error CS0234: The type or namespace name 'TeamF
oundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(13,17): error CS0234: The type or namespace name 'TeamF
oundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(14,17): error CS0234: The type or namespace name 'TeamF
oundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(15,17): error CS0234: The type or namespace name 'TeamF
oundation' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\IO\Compression\ArchiveWriter\WriterBase.cs(26,20): error CS0246: The type or namespace name 'Set' c
ould not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(23,36): error CS0246: The type or namespace name 'TeamF
oundationServer' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(24,17): error CS0246: The type or namespace name 'TeamF
oundationServer' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(45,19): error CS0246: The type or namespace name 'TeamF
oundationServer' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(50,19): error CS0246: The type or namespace name 'Versi
onControlServer' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(110,19): error CS0246: The type or namespace name 'Work
space' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(116,19): error CS0246: The type or namespace name 'Work
spaceInfo' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(147,17): error CS0118: 'Pscx.Commands.TeamFoundation.Te
amFoundationCommandBase.TeamFoundationServer' is a 'property' but is used like a 'type'
Commands\TeamFoundation\TeamFoundationCommandBase.cs(153,17): error CS0118: 'Pscx.Commands.TeamFoundation.Te
amFoundationCommandBase.TeamFoundationServer' is a 'property' but is used like a 'type'
Done building target "CoreCompile" in project "PscxSnapin.csproj" -- FAILED.

Done building project "PscxSnapin.csproj" -- FAILED.


Commands\IO\Compression\ArchiveWriter\WriterBase.cs(11,7): error CS0246: The type or namespace name 'Wintellect' could n
ot be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(9,17): error CS0234: The type or namespace name 'TeamFoundation' does not e
xist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(10,17): error CS0234: The type or namespace name 'TeamFoundation' does not
exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(11,17): error CS0234: The type or namespace name 'TeamFoundation' does not
exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\GetTFLabelCommand.cs(12,17): error CS0234: The type or namespace name 'TeamFoundation' does not
exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(12,17): error CS0234: The type or namespace name 'TeamFoundation' d
oes not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(13,17): error CS0234: The type or namespace name 'TeamFoundation' d
oes not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(14,17): error CS0234: The type or namespace name 'TeamFoundation' d
oes not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(15,17): error CS0234: The type or namespace name 'TeamFoundation' d
oes not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Commands\IO\Compression\ArchiveWriter\WriterBase.cs(26,20): error CS0246: The type or namespace name 'Set' could not be
found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(23,36): error CS0246: The type or namespace name 'TeamFoundationSer
ver' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(24,17): error CS0246: The type or namespace name 'TeamFoundationSer
ver' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(45,19): error CS0246: The type or namespace name 'TeamFoundationSer
ver' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(50,19): error CS0246: The type or namespace name 'VersionControlSer
ver' could not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(110,19): error CS0246: The type or namespace name 'Workspace' could
not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(116,19): error CS0246: The type or namespace name 'WorkspaceInfo' c
ould not be found (are you missing a using directive or an assembly reference?)
Commands\TeamFoundation\TeamFoundationCommandBase.cs(147,17): error CS0118: 'Pscx.Commands.TeamFoundation.TeamFoundation
CommandBase.TeamFoundationServer' is a 'property' but is used like a 'type'
Commands\TeamFoundation\TeamFoundationCommandBase.cs(153,17): error CS0118: 'Pscx.Commands.TeamFoundation.TeamFoundation
CommandBase.TeamFoundationServer' is a 'property' but is used like a 'type'




Developer
Jan 18, 2007 at 2:40 AM
hi z,

The missing Wintellect bit is entirely my fault -- if you'd waited 2 minutes later you would have got changeset 16368 which has the missing DLL. ;-) 16367 is a broken build. Sorry.

Try getting the latest changeset as of now -- I'm not sure about the TF cmdlet problem though -- Keith?

- Oisin
Coordinator
Jan 18, 2007 at 5:59 AM
I'm still awaiting a response from my Microsoft contacts to see if they would allow us to check in the four TF assemblies (but not install them with the setup program). Time is running out though. :-(

I really want to get 1.1 out in the first or second week of February.
Coordinator
Jan 18, 2007 at 6:00 AM
BTW one way to get around the TF build issue is to download and install the TF client from CodePlex. You would need that anyway if you were ever to contribute to a CodePlex project.