Skip to content

dotnet-t4: Default .txt extension doesn't match VS #128

Open
@bricelam

Description

@bricelam

Visual Studio peaks at the template directive's language argument to determine the default output extension. It uses .cs for C# and .vb for VB. If the language argument isn't specified, it assumes C#.

mono-t4, however appears to use .txt as the default extension. This requires me to specify the -o command-line option duplicating the input path and filename.

t4 -o ./src/MyApp/MyTemplate.cs ./src/MyApp/MyTemplate.tt

Would you consider changing the default to align better with the Visual Studio tooling? Or would this be too much of a breaking change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions