Share via

Difference between a Core and a Framework

Russell Yeagley 96 Reputation points
2021-09-15T12:10:20.05+00:00

I developed a Windows Forms Control, using Framework 4.7.2, and successfully created the DLL.

Next, when I create a Windows app and add the new control into the Visual Basic Toolbox,
the control will be added but I'm told the new toolbox control is not enabled
for the current Windows application (developed using Core 3.1 or Core 5.0) because
the Framework used to create the Forms Control (4.7.2) is not compatible with
Core 3.1 or Core 5.0.

How can I create a forms control that will be enabled in a Windows application toolbox using Core 3.1 or Core 5.0? Both Cores seem to be incompatible with Framework 4.0 to 4.8.

Developer technologies | Windows Forms
0 comments No comments

Answer accepted by question author

Russell Yeagley 96 Reputation points
2021-09-15T15:11:28.293+00:00

I appreciate your answer but I don't know how to switch to the SDK project format. Would you explain further and give me the steps to complete the change? Thanks for your time.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michael Taylor 61,221 Reputation points
    2021-09-15T14:25:21.507+00:00

    You need to multi target as discussed here.

    That involves switching to the SDK project format as you are probably not using it yet. Then you can use the TargetFrameworks element to specify both net472 and net5.0. If you need NET Core 3.1 then include netcoreapp3.1. You could also use .NET standard if you wanted but that probably doesn't make sense in WInforms.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.