Skip to content

Warn if project is missing both Desktop SDK and UseWPF/UseWinForms #3126

Closed

Description

@cartermp

Even if we have cool tooling that adds the appropriate stuff to a project file based on various actions in the IDE, there will still be users who manually edit their WinForms/WPF project files.

We should emit a warning under the following conditions:

  • Microsoft.NET.Sdk.WindowsDesktop is specified but there is no UseWPF or UseWinForms
  • UseWPF or UseWinForms is specified but the SDK attribute is not Microsoft.NET.Sdk.WindowsDesktop

In the first case, it would be great if the warning could say something to the effect of:

"Microsoft.NET.Sdk.WindowsDesktop is specified, but no corresponding UseWPF or UseWinForms property was found."

In the latter case, using WPF as an example, something to the effect of:

"UseWPF was specified but the SDK attribute is not Microsoft.NET.Sdk.WindowsDesktop"

Not sure if this is an SDK concern or not, but I figured I'd log it somewhere.

Activity

  1. davkean commented on Apr 15, 2019

    @davkean
    Member

    This is an SDK concern and have moved it.

  2. added this to the 3.0.1xx milestone on May 8, 2019
  3. dsplaisted commented on Jul 2, 2019

    @dsplaisted
    Member

    I believe this is all done. @vatsan-madhavan, let us know if that's not the case.

  4. vatsan-madhavan commented on Jul 2, 2019

    @vatsan-madhavan
    Member

    Yes, this is completed now - thanks for closing!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions