James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string. One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1 char:72 + Add-Type -OutputType ConsoleApplication -OutputAssembly HelloWorld.exe < <<< @" + CategoryInfo
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/01/04/diagnosing-here-strings-with-powershell-ise.aspx
Posted
Jan 03 2009, 06:25 PM
by
Windows PowerShell Blog