Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script running https://pastebin.com/KqVAQ1T9
- C# program I am trying to run as a single line in this script https://pastebin.com/XyGmAqdL
- The actual C# program that I want to run as a single line https://pastebin.com/HAb3YSJB
- console output of that first link
- "test inline powershell and C#.bat"
- running pscommand
- simple command, no string escaping
- pscommand[0]=Write-Host "Result is 1"
- no delayed expansion, without quotes
- Result is 1
- no delayed expansion, in quotes
- Result is 1
- delayed expansion, without quotes
- Result is 1
- delayed expansion, in quotes
- Result is 1
- running pscommand
- simple command, string escaping escaped
- pscommand[1]=Write-Host "Result is 2"
- no delayed expansion, without quotes
- Result is 2
- no delayed expansion, in quotes
- Result is 2
- delayed expansion, without quotes
- Result is 2
- delayed expansion, in quotes
- Result is 2
- running pscommand
- simple command, no string escaping plus terminator ";"
- pscommand[2]=Write-Host "Result is 3";
- no delayed expansion, without quotes
- Result is 3
- no delayed expansion, in quotes
- Result is 3
- delayed expansion, without quotes
- Result is 3
- delayed expansion, in quotes
- Result is 3
- running pscommand
- two simple command, string escaping escaped, separated by terminators ";"
- pscommand[3]=Write-Host "Result is first"; Write-Host "Result is second";
- no delayed expansion, without quotes
- Result is first
- Result is second
- no delayed expansion, in quotes
- Result is first
- Result is second
- delayed expansion, without quotes
- Result is first
- Result is second
- delayed expansion, in quotes
- Result is first
- Result is second
- running pscommand
- simple decision, strings not escaped, value is true
- pscommand[4]=if ($true) { Write-Host "Result is True"; } else { Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand
- simple decision, strings not escaped, value is false
- pscommand[5]=if ($false) { Write-Host "Result is True"; } else { Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is False
- no delayed expansion, in quotes
- Result is False
- delayed expansion, without quotes
- Result is False
- delayed expansion, in quotes
- Result is False
- running pscommand
- simple decision, value is true, quotes not escaped, written in multiline format
- pscommand[6]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand
- simple decision, value is false, quotes escaped, written in multiline format
- pscommand[7]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is False
- no delayed expansion, in quotes
- Result is False
- delayed expansion, without quotes
- Result is False
- delayed expansion, in quotes
- Result is False
- running pscommand
- simple decision, value is false, quotes escaped, written in multiline format
- pscommand[8]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand with ps_argument_1 = true
- simple decision, value is determined by variable ps_argument_1
- quotes escaped, written in multiline format
- this will not work because pscommand[9] was created with empty ps_argument_1
- pscommand[9]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- no delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- running pscommand with ps_argument_1 = false
- simple decision, value is determined by variable ps_argument_1
- quotes escaped, written in multiline format
- this will not work because pscommand[9] was created with empty ps_argument_1
- pscommand[9]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- no delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- running pscommand
- simple decision, value is true, quotes not escaped, written in multiline format
- pscommand[10]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand
- simple decision, value is true, quotes not escaped, written in multiline format
- pscommand[11]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is False
- no delayed expansion, in quotes
- Result is False
- delayed expansion, without quotes
- Result is False
- delayed expansion, in quotes
- Result is False
- running pscommand with ps_argument_1 = true
- simple decision, value is determined by variable ps_argument_1
- quotes not escaped, written in multiline format
- this will not work because pscommand[12] was created with empty ps_argument_1
- pscommand[12]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- no delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- running pscommand with ps_argument_1 = false
- this will not work because pscommand[12] was created with empty ps_argument_1
- pscommand[12]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- no delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, without quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- delayed expansion, in quotes
- $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:5
- + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
- + ~
- + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- running pscommand with ps_argument_1 = true
- simple decision, value is determined by variable ps_argument_1
- quotes escaped, written in multiline format
- this time, pscommand set with internal variable pre-set
- pscommand[9]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand with ps_argument_1 = false
- simple decision, value is determined by variable ps_argument_1
- quotes escaped, written in multiline format
- this time, pscommand set with internal variable pre-set
- pscommand[9]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is False
- no delayed expansion, in quotes
- Result is False
- delayed expansion, without quotes
- Result is False
- delayed expansion, in quotes
- Result is False
- running pscommand with ps_argument_1 = true
- simple decision, value is determined by variable ps_argument_1
- quotes not escaped, written in multiline format
- pscommand[12]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is True
- no delayed expansion, in quotes
- Result is True
- delayed expansion, without quotes
- Result is True
- delayed expansion, in quotes
- Result is True
- running pscommand with ps_argument_1 = false
- pscommand[12]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
- no delayed expansion, without quotes
- Result is False
- no delayed expansion, in quotes
- Result is False
- delayed expansion, without quotes
- Result is False
- delayed expansion, in quotes
- Result is False
- 1
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:214
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:218
- + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:215
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- 2
- At line:1 char:29
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:29
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:29
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- 3
- At line:1 char:29
- + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:29
- + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:29
- + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- 4
- At line:1 char:212
- + ... is True); } else { Console.WriteLine(Result is False); } } }@ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:216
- + ... True"); } else { Console.WriteLine("Result is False"); } } }@ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:213
- + ... is True); } else { Console.WriteLine(Result is False); } } }@ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- 5
- Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } @ [LogicCheck]::Check($false)
- Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is False"); } } } @ [LogicCheck]::Check($false)
- Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(^Result is True); } else { Console.WriteLine(Result is False); } } } @ [LogicCheck]::Check($false)
- 6
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:214
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:218
- + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:214
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- 7
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:214
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:218
- + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:26
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
- + ~
- Unrecognized token in source text.
- At line:1 char:214
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- 8
- At line:1 char:27
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
- + ~
- Unrecognized token in source text.
- At line:1 char:215
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:27
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
- + ~
- Unrecognized token in source text.
- At line:1 char:219
- + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- At line:1 char:27
- + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
- + ~
- Unrecognized token in source text.
- At line:1 char:215
- + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
- + ~
- Unrecognized token in source text.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnrecognizedToken
- 9
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- At line:1 char:124
- + ... { public static void Check(bool condition) { if (condition) { Console ...
- + ~
- Missing closing '}' in statement block or type definition.
- At line:1 char:107
- + ... class LogicCheck { public static void Check(bool condition) { if (con ...
- + ~
- Missing closing '}' in statement block or type definition.
- At line:1 char:64
- + ... -Type -TypeDefinition using System; public class LogicCheck { public ...
- + ~
- Missing closing '}' in statement block or type definition.
- At line:1 char:159
- + ... dition) { if (condition) { Console.WriteLine"Result is True"); } else ...
- + ~
- Unexpected token ')' in expression or statement.
- At line:1 char:162
- + ... ion) { if (condition) { Console.WriteLine"Result is True"); } else { ...
- + ~
- Unexpected token '}' in expression or statement.
- At line:1 char:211
- + ... is True"); } else { Console.WriteLine("Result is False"); } } } [Logi ...
- + ~
- Unexpected token '}' in expression or statement.
- At line:1 char:213
- + ... True"); } else { Console.WriteLine("Result is False"); } } } [LogicC ...
- + ~
- Unexpected token '}' in expression or statement.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : MissingEndCurlyBrace
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 10
- At line:1 char:30
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:30
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- At line:1 char:30
- + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
- + ~
- No characters are allowed after a here-string header but before the end of the line.
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
- 11
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 12
- Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } [LogicCheck]::Check($false)
- Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is False"); } } } [LogicCheck]::Check($false)
- Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } [LogicCheck]::Check($false)
- 13
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 14
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- 15
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 16
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- 17
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:40
- + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 18
- Add-Type : c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : Unexpected character '$'
- c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : Expected class, delegate, enum, interface, or struct
- c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : Cannot add type. Compilation errors occurred.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
- + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : Unexpected character '$'
- c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is
- False"); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : Expected class, delegate, enum, interface, or struct
- c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is
- False"); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : Cannot add type. Compilation errors occurred.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
- + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : Unexpected character '$'
- c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : Expected class, delegate, enum, interface, or struct
- c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check($false)
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : Cannot add type. Compilation errors occurred.
- At line:1 char:1
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
- + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
- 19
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:1
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 20
- Add-Type : c:\Users\user\AppData\Local\Temp\sbwfbwrg.0.cs(1) : Expected class, delegate, enum, interface, or struct
- c:\Users\user\AppData\Local\Temp\sbwfbwrg.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check(False)
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : Cannot add type. Compilation errors occurred.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
- + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : c:\Users\user\AppData\Local\Temp\d2s0cpsx.0.cs(1) : Expected class, delegate, enum, interface, or struct
- c:\Users\user\AppData\Local\Temp\d2s0cpsx.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(^Result is True); } else { Console.WriteLine(Result is
- False); } } } [LogicCheck]::Check(False)
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
- + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : Cannot add type. Compilation errors occurred.
- At line:1 char:1
- + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
- + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
- 21
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:2
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:2
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Add-Type : A positional parameter cannot be found that accepts argument 'System'.
- At line:1 char:2
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At line:1 char:41
- + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
- + ~~~~~~
- + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- 22
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:2
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:2
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:2
- + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- 23
- The string is missing the terminator: ".
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
- The string is missing the terminator: ".
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
- The string is missing the terminator: ".
- + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
- 24
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:2
- + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
- At line:1 char:2
- + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
- Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
- At line:1 char:2
- + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
- + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement