Skip to content

"Use auto property" not offered for System.Guid property depending on target framework #76815

@jnm2

Description

@jnm2

Version Used: 17.13.0 Preview 2.1

Not offered here, but should be. Changing target framework to net8.0 causes it to be offered.

using System;

class C
{
    private Guid a;
    public Guid A => a;
}
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net48</TargetFramework>
    <LangVersion>preview</LangVersion>
  </PropertyGroup>

</Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions