Hacker News new | ask | show | jobs
by cjblomqvist 591 days ago
Anyone knows how to/if it's possible to setup c# 13 with the new semi-auto property (field) feature?

I know it's not part of "standard" c# 13 out-of-the-box

2 comments

You have to set the C# language version to 'preview'.

    <PropertyGroup>
       <LangVersion>preview</LangVersion>
    </PropertyGroup>
I saw one comment saying you have to enable language preview features. I haven't tried it myself.