[System.Drawing.Bitmap] not found in powershell,but at powershell ise is exist!

%3CLINGO-SUB%20id%3D%22lingo-sub-1029315%22%20slang%3D%22en-US%22%3E%5BSystem.Drawing.Bitmap%5D%20not%20found%20in%20powershell%EF%BC%8Cbut%20at%20powershell%20ise%20is%20exist!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029315%22%20slang%3D%22en-US%22%3E%3CP%3Ehello%20everyone%EF%BC%9A%3C%2FP%3E%3CP%3EI%20have%20a%20question%2C%20such%20as%20a%20title.%3C%2FP%3E%3CP%3E-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-powershell%20-%20-%20-%20-%20-%20-%20-%20-%20-%20-%20----------------------%3C%2FP%3E%3CP%3EPS%20C%EF%BC%9A%5C%26gt%3B%20%5BSystem.Drawing.Bitmap%5D%3CBR%20%2F%3E%26nbsp%3B%5BSystem.Drawing.Bitmap%5D%3CBR%20%2F%3E%26nbsp%3BCategoryInfo%EF%BC%9AInvalidOperation%EF%BC%9A%EF%BC%88System.Drawing.Bitmap%EF%BC%9ATypeName%EF%BC%89%5B%5D%EF%BC%8CRuntimeException%3CBR%20%2F%3E%26nbsp%3BFullyQualifiedErrorId%EF%BC%9ATypeNotFound%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-----------------------------%20powershell%20ise%20-------------------%20----------------------%3C%2FP%3E%3CP%3EPS%20C%EF%BC%9A%5C%26gt%3B%20%5BSystem.Drawing.Bitmap%5D%3C%2FP%3E%3CP%3EIsPublic%20IsSerial%26nbsp%3B%20%26nbsp%3B%20Name%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20BaseType%3CBR%20%2F%3E--------%20--------%26nbsp%3B%20%26nbsp%3B%20----%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20--------%3CBR%20%2F%3ETrue%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20True%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Bitmap%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BSystem.Drawing.Image%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E------------------------------version------------------------------------------------%3C%2FP%3E%3CP%3EName%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Value%3CBR%20%2F%3E----%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20-----%3CBR%20%2F%3EPSVersion%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%205.1.17763.771%3CBR%20%2F%3EPSEdition%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BDesktop%3CBR%20%2F%3EPSCompatibleVersions%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7B1.0%2C%202.0%2C%203.0%2C%204.0...%7D%3CBR%20%2F%3EBuildVersion%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2010.0.17763.771%3CBR%20%2F%3ECLRVersion%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%204.0.30319.42000%3CBR%20%2F%3EWSManStackVersion%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B3.0%3CBR%20%2F%3EPSRemotingProtocolVersion%26nbsp%3B%202.3%3CBR%20%2F%3ESerializationVersion%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%201.1.0.1%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%EF%BC%9APowershell%20is%20the%20same%20version%20as%20powershell%20ise%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1029315%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPower%20shell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029380%22%20slang%3D%22en-US%22%3ERe%3A%20%5BSystem.Drawing.Bitmap%5D%20not%20found%20in%20powershell%EF%BC%8Cbut%20at%20powershell%20ise%20is%20exist!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029380%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F467735%22%20target%3D%22_blank%22%3E%40shen_k%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehahaha%EF%BC%8CFind%20the%20answer%20in%20github%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FPowerShell%2Fvscode-powershell%2Fissues%2F219%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3A%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FPowerShell%2Fvscode-powershell%2Fissues%2F219%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FPowerShell%2Fvscode-powershell%2Fissues%2F219%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1040236%22%20slang%3D%22en-US%22%3ERe%3A%20%5BSystem.Drawing.Bitmap%5D%20not%20found%20in%20powershell%EF%BC%8Cbut%20at%20powershell%20ise%20is%20exist!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1040236%22%20slang%3D%22en-US%22%3EPS%26gt%3B%20Add-Type%20-AssemblyName%20System.Drawing%3CBR%20%2F%3EPS%26gt%3B%20%5BSystem.Drawing.Bitmap%5D%3CBR%20%2F%3E%3CBR%20%2F%3EIsPublic%20IsSerial%20Name%20BaseType%3CBR%20%2F%3E--------%20--------%20----%20--------%3CBR%20%2F%3ETrue%20True%20Bitmap%20System.Drawing.Image%3C%2FLINGO-BODY%3E
New Contributor

hello everyone:

I have a question, such as a title.

- - - - - - - - - - - - - - -powershell - - - - - - - - - - ----------------------

PS C:\> [System.Drawing.Bitmap]
 [System.Drawing.Bitmap]
 CategoryInfo:InvalidOperation:(System.Drawing.Bitmap:TypeName)[],RuntimeException
 FullyQualifiedErrorId:TypeNotFound

 

----------------------------- powershell ise ------------------- ----------------------

PS C:\> [System.Drawing.Bitmap]

IsPublic IsSerial    Name      BaseType
-------- --------    ----          --------
True      True        Bitmap     System.Drawing.Image

 

------------------------------version------------------------------------------------

Name                                      Value
----                                          -----
PSVersion                                5.1.17763.771
PSEdition                                 Desktop
PSCompatibleVersions            {1.0, 2.0, 3.0, 4.0...}
BuildVersion                            10.0.17763.771
CLRVersion                              4.0.30319.42000
WSManStackVersion               3.0
PSRemotingProtocolVersion  2.3
SerializationVersion                1.1.0.1

 

PS:Powershell is the same version as powershell ise

2 Replies
PS> Add-Type -AssemblyName System.Drawing
PS> [System.Drawing.Bitmap]

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Bitmap System.Drawing.Image