Skip to content

Support Legacy Windows Forms Designer with SDK-Style projects #3262

@ben-page

Description

@ben-page

Visual Studio Version:
16.5.4
Summary:
I have a large enterprise application based on Windows Forms. It's made up of four assemblies.

  1. DataAndBusinessLogic
  2. WinFormsSupport - references DataAndBusinessLogic
  3. ApplicationDataAndBusinessLogic - references DataAndBusinessLogic
  4. ApplicationUI - references DataBusinessLogic,WinFormsSupport, & ApplicationDataAndBusinessLogic

We'd like to add a fifth: a .NET Core Blazor project:
5. ApplicationWebUi - references ApplicationDataAndBusinessLogic & DataAndBusinessLogic

We want to maintain the WinForms UI while developing the Blazor UI. And we want them to share the same Data and BI libraries.

We made this work (or build at least). But we can't get the Windows Forms Designer to work at all.

Steps to Reproduce:
I converted the supporting libraries (1 & 3) to SDK-Style projects and had compile both .NET Framework and .NET Core assemblies.

<TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>

In the ApplicationUI project, the Windows Forms designer works for simply forms. But if that form references anything from the other assemblies, the Designer will load.

I also tried converting the other projects to SDK-Style projects, but still targeting only the .NET Framework. I was also able to get this to compile, but it's now trying to use the .NET Core Windows Forms Designer, which obviously wont work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-VSDesignerWindows Forms out-of-proc designer related issueswaiting-author-feedbackThe team requires more information from the author

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions