Hello
i tried using System.Windows.Forms; in my code but it show me an error.
What is wrong, because i want to create the form application using my namespace.
Is it possible to do?
Thanks for help.
$code = @"
using System;
using System.Windows.Forms;
namespace HelloWorld
{
public class Program
{
public static void Main(){
Console.WriteLine("Hello world!");
}
}
}
"@
Add-Type -TypeDefinition $code -Language CSharp
iex "[HelloWorld.Program]::Main()"