I am using VS 2019 to create a user control and a test project, but the resulting soluton fails to build with the message..
Project '..\xxx.vbproj' targets 'netcoreapp3.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2'.
This is how I created the solution...
open Visual Studio
click "new project"
select "Windows Forms Control library" (Visual Basic)
click "Next" and select a name (HTMLeditor) and location - click "Create"
accept the default of ".net core 3.1 (Long-term support)"
drag a Button control onto the control surface
build solution(successfully)
right-click the solution and select "Add" and "New project"
select "Windows Forms App (.Net Framework)"
click "Next" and select a name (HTMLeditor_Testing) and location
accept the default of ".NET framework 4.7.2" - click "Create"build solution(successfully)
right-click on "References" in "HTMLeditor_Testing" project in Solution Explorer and select "Add reference"
select "Projects" and "Solution" and select "HTMLeditor" - click "OK"
build solution - get
Project '..\HTMLEditor\HTMLEditor.vbproj' targets 'netcoreapp3.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2'. HTMLeditor_Testing
What am I doing wrong?