Skip to content

Suggestion for an additional section to Debug Custom Controls walkthrough for newer .NET project types #1834

Open
@gbakeman

Description

@gbakeman

Type of issue

Other (describe below)

Description

Greetings,

I really appreciate having this walkthrough for debugging custom controls using the In-Process designer for Visual Studio.

At some point, I migrated my custom control project to the newer .NET Projects system, while maintaining .NET Framework as my target framework. I've found an easy solution for launching Visual Studio within the debugger, using this launchSettings configuration:

{
  "profiles": {
    "Debug devenv": {
      "commandName": "Executable",
      "executablePath": "$(DevEnvDir)devenv.exe",
      "commandLineArgs": "$(SolutionPath)"
    }
  }
}

I wonder if it would be worth adding this to the walkthrough, to help people who are using the new Projects format?

Page URL

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/walkthrough-debugging-custom-windows-forms-controls-at-design-time?view=netframeworkdesktop-4.8

Content source URL

https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/framework/winforms/controls/walkthrough-debugging-custom-windows-forms-controls-at-design-time.md

Document Version Independent Id

f493ff27-e2e1-ad7e-38d4-46ded0c45022

Article author

@adegeo

Activity

adegeo

adegeo commented on May 22, 2024

@adegeo
Contributor

Thanks for this suggestion. Working in the SDK Project-system for .NET Framework isn't something we've considered documenting, though I, like you, do it. I think what the best thing to do would be to add a new article that describes the differences and config options you should take to make your project compatible, especially with debugging. However, this won't be a priority right now, unless more people come in and request it 😁

added
doc-ideaIndicates issues that are suggestions for new topics [org][type][category]
on May 22, 2024
gbakeman

gbakeman commented on May 22, 2024

@gbakeman
Author

Perfectly, thank you @adegeo!

adegeo

adegeo commented on Aug 5, 2024

@adegeo
Contributor

I was looking back through this issue. The priority hasn't changed, as in really, no priority, no offence @gbakeman 😁 but one thing to note about this scenario (when it's written about) is that VB can't use SDK-style projects and target .NET Framework, only C# can.

gbakeman

gbakeman commented on Aug 6, 2024

@gbakeman
Author

@adegeo None taken at all, and good note about language support. I've been working with quite a lot of obsolete tech lately, and I totally understand how this isn't a priority. Thanks for checking in all the same.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gbakeman@dotnet-bot@adegeo

        Issue actions

          Suggestion for an additional section to Debug Custom Controls walkthrough for newer .NET project types · Issue #1834 · dotnet/docs-desktop