Skip to content

TUnit.Engine sets LangVersion=latest, overridding my repo policy #2426

@AArnott

Description

@AArnott

I set LangVersion to 13 in my repo for all my projects. I prefer explicit versions set rather than latest so that the compilation output is the same regardless of SDK version or VS version installed on the machine.

tunit.engine.props overrides this property with latest, and doesn't give me an opportunity to disable this.

Perhaps you can add a property I can set to indicate I want project properties like this to be left alone.
Or maybe don't set it if it's already set.
Or maybe just produce a build error if it isn't set to a high enough value, so that users understand and can manage this property within their project file, as they are used to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions