Skip to content

Add support for warnings when using APIs not compatible with min supported version #293

Closed

Description

Created based on #283

Will this nuget package also include warnings when using an api that you need to feature-check on older builds?

We should look at if we can achieve this using a Roslyn analyzer that takes a input of the supported Windows versions.

Activity

  1. michael-hawker commented on Jul 21, 2020

    @michael-hawker

    Thanks Hans Bakker (@hansmbakker) for calling out the toolkit. This has been a big challenge for us, it was a great initial idea, but we soon realized the data isn't exposed to easily help a developer with analyzers based on their project settings. I think it's an unsupported scenario, which makes it difficult for us to provide value.

    I don't know if this is something the CsWinRT folks can help with? If so great. It'd be great to just see this natively supported in VS as I think we can't go anywhere with our current analyzer?

  2. added this to the Future milestone on Oct 9, 2020
  3. AdamBraden commented on Oct 9, 2020

    @AdamBraden
    Contributor

    related to #411

  4. stevenbrix commented on Oct 15, 2020

    @stevenbrix
    Contributor

    Manodasan Wignarajah (@manodasanW) is this going to be different from #411? My understanding is that the .NET SDK will provide the analyzers if you are using the SupportedOSPlatformVersion property (equivalent to our TargetPlatformMinVersion property that exists today), along with those attributes.

    See https://github.com/dotnet/designs/blob/main/accepted/2020/net5/net5.md#mapping-to-properties

  5. Scottj1s commented on Nov 6, 2020

    @Scottj1s
    Member

    looks like a dupe of #411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions