Skip to content

Feature request: Option to set a custom namespace for the generated output instead of Windows.Win32 #1312

@MatejKafka

Description

@MatejKafka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions