Try a "Windows Forms App" instead of "Windows Forms App (.NET Framework)".
Or create a "Windows Forms Control Library (.NET Framework)" instead of "Windows Forms Control Library".
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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...
What am I doing wrong?
Try a "Windows Forms App" instead of "Windows Forms App (.NET Framework)".
Or create a "Windows Forms Control Library (.NET Framework)" instead of "Windows Forms Control Library".
Hi @iLens ,
You need to make sure that the created project is Windows Forms Control library and Windows Forms App.
Or Windows Forms Control library (.net framework) and Windows Forms App (.net framework).
Mismatched frameworks will cause the error you're getting.
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.