Skip to content

WinForms SDK should explicitly contribute WindowsForms ProjectCapability #1641

Closed as not planned

Description

@bwateratmsft

Currently the WinForms SDK does not contribute the "WindowsForms" ProjectCapability. It is contributed by Microsoft.Managed.DesignTime.targets but that does not apply outside of VS.

The ProjectCapability should be explicitly contributed by the SDK, so that proper detection of project type can be done outside of VS.

Activity

  1. bwateratmsft commented on Aug 15, 2019

    @bwateratmsft
    Author

    Related to dotnet/wpf#1638.

  2. changed the title [-]WinForms SDK should explicitly contribute WinForms ProjectCapability[/-] [+]WinForms SDK should explicitly contribute WindowsForms ProjectCapability[/+] on Aug 15, 2019
  3. zsd4yr commented on Aug 16, 2019

    @zsd4yr
    Contributor

    @bwateratmsft could you clarify this a bit? What is the need here? What is the impact of moving these?

    Is this something that needs to change by 3.0 GA (VS 16.3 GA)?

    @livarcocc are you aware of any need for the SDK to supply these to VS?

    /cc @dagood @vatsan-madhavan

  4. zsd4yr commented on Aug 16, 2019

    @zsd4yr
    Contributor

    proper detection of project type can be done outside of VS.

    @bwateratmsft could you clarify some of these scenarios? VSCode?

  5. bwateratmsft commented on Aug 16, 2019

    @bwateratmsft
    Author

    @zsd4yr Our main use case is in VS so technically the problem doesn't apply to us directly (since we have the DesignTime target). My team works on the Docker tools in VS, and our extension uses ProjectCapability to know whether or not to show the options to add Docker/Docker-Compose/etc. support. Of course it makes no sense to containerize a UI application so WinForms (and WPF) should not show those options.

    Because of the designer we are able to rely on the WindowsForms/WPF ProjectCapability, but it seems to me that the fact that it's WinForms is intrinsic to the app itself, not to the fact that it's open in VS--so it makes more sense to me that the ProjectCapability should be in the SDK rather than the DesignTime targets.

    In VS Code--for which we also do the Docker extension--this ProjectCapability isn't available (no DesignTime target). Hence, we couldn't depend on it as a way to hide the option to add Docker support.

    In terms of urgency--No, it's not urgent enough that we need it in 3.0 GA. The severity is very low. Most users would never attempt it since it doesn't make sense in the first place. Worst case, users add Docker support to their WinForms app, it doesn't work, and we tell them it doesn't make sense to containerize a UI app.

  6. added
    design-discussion
    enhancement
    and removed on Aug 19, 2019
  7. added this to the 5.0.0 milestone on Aug 19, 2019
  8. zsd4yr commented on Aug 19, 2019

    @zsd4yr
    Contributor

    @bwateratmsft thanks for the followup!

    @merriemcgaw I am moving this to 5.0.

  9. modified the milestones: 5.0 Previews 1-4, 5.0 on Apr 20, 2020
  10. modified the milestones: 5.0, 6.0 on Sep 8, 2020
  11. modified the milestones: 6.0, 7.0 on Aug 27, 2021
  12. modified the milestones: .NET 7.0, .NET 8.0 on Aug 11, 2022
  13. JeremyKuhne commented on Aug 16, 2023

    @JeremyKuhne
    Member

    Without any additional reports of a need for this we're unlikely to try and make this change. Closing for now.

  14. ghost removed this from the .NET 8.0 milestone on Aug 16, 2023
  15. ghost locked as resolved and limited conversation to collaborators on Sep 15, 2023
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

    design-discussionenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions