Currently, I don't see any public way to change the namespace used for the generated C# code. I'm calling CsWin32 manually from PowerShell to access some Win32 APIs and since Add-Type does not allow loading parts of partial classes in separate invocations, running CsWin32 multiple times and loading the resulting C# code with Add-Type results in type collisions. Therefore, I'd like to be able to change the output namespace.