Skip to content

Instantly share code, notes, and snippets.

@danielmoore
Created May 23, 2011 23:32
Show Gist options
  • Save danielmoore/987860 to your computer and use it in GitHub Desktop.
Save danielmoore/987860 to your computer and use it in GitHub Desktop.
Transcript trying to run WPK Hello World
**********************
Windows PowerShell Transcript Start
Start time: 20110523192949
Username : NORTHHORIZON\daniel
Machine : POLARIS (Microsoft Windows NT 6.1.7601 Service Pack 1)
**********************
Transcript started, output file is C:\Users\daniel\Documents\PowerShell_transcript.20110523192949.txt
PS C:\Users\daniel>
2 > Import-Module powershellpack
PS C:\Users\daniel>
3 > New-TextBlock 'Hello, World!' -Show
Hello, World!
PS C:\Users\daniel>
4 > # that works
PS C:\Users\daniel>
5 > New-TextBlock 'Hello, World!' -AsJob
Add-Type : c:\Users\daniel\AppData\Local\Temp\rslvidx3.0.cs(24) : The type 'System.Windows.Markup.IQueryAmbient' is def
ined in an assembly that is not referenced. You must add a reference to assembly 'System.Xaml, Version=4.0.0.0, Culture
=neutral, PublicKeyToken=b77a5c561934e089'.
c:\Users\daniel\AppData\Local\Temp\rslvidx3.0.cs(23) : Dispatcher JobDispatcher;
c:\Users\daniel\AppData\Local\Temp\rslvidx3.0.cs(24) : >>> public Window JobWindow;
c:\Users\daniel\AppData\Local\Temp\rslvidx3.0.cs(25) : Thread jobThread;
At C:\Users\daniel\Documents\WindowsPowerShell\Modules\WPK\Start-wPFJob.ps1:48 char:21
+ Add-Type <<<< -IgnoreWarnings -ReferencedAssemblies "WindowsBase",
+ CategoryInfo : InvalidData: (c:\Users\daniel...a5c561934e089'.:CompilerError) [Add-Type], Exception
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
Add-Type : Cannot add type. There were compilation errors.
At C:\Users\daniel\Documents\WindowsPowerShell\Modules\WPK\Start-wPFJob.ps1:48 char:21
+ Add-Type <<<< -IgnoreWarnings -ReferencedAssemblies "WindowsBase",
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
Unable to find type [WPK.WPFJob]: make sure that the assembly containing this type is loaded.
At C:\Users\daniel\Documents\WindowsPowerShell\Modules\WPK\Start-wPFJob.ps1:534 char:28
+ $iss = [WPK.WPFJob] <<<< ::GetSessionStateForCommands($cmds)
+ CategoryInfo : InvalidOperation: (WPK.WPFJob:String) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
New-Object : Cannot find type [WPK.WPFJob]: make sure the assembly containing this type is loaded.
At C:\Users\daniel\Documents\WindowsPowerShell\Modules\WPK\Start-wPFJob.ps1:536 char:33
+ $wpfJob = New-Object <<<< WPK.WPFJob ($name, $Command,
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
PS C:\Users\daniel>
6 > Stop-Transcript
**********************
Windows PowerShell Transcript End
End time: 20110523193115
**********************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment