Skip to content

Let the docs specify that the output type should be 'Exe'. #73

@TeunKooijman

Description

@TeunKooijman

While it may seem obvious, the docs (at least as far as I can tell) do not currently mention that the output type of the generated .NET Core application should be set to Console Application (as opposed to Class Library). This will cause error messages on build such as:

The command "dotnet path/to/dll generator crds --out path/to/config/crds --format Yaml" exited with code -2147450749
or
The command "dotnet path/to/dll generator docker --out path/to/Dockerfile --dotnet-tag latest --solution-dir path/to/sln --target-file DllName.dll --project-path path/to/csproj" exited with code -2147450749.

Just leaving this here, as it took me about twenty minutes figuring out why stuff wasn't building, even though I had followed the Getting Started section of the docs.

The fix is, ofcourse, to simply add <OutputType>Exe</OutputType> to your .csproj..

Other than that, thanks a lot for the SDK!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions