I have a custom project and I want to create a reference from this project to .net core (and .net 5) projects, I got the following error:
'..\Core2\Core2.csproj' targets 'netcoreapp3.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.0'. C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets
line 1662
- Can the custom project be a ".net core"? it is .netframework (I think it is a default, it is not written in vstemplate/props/targets files.
- Can a custom project refer to a .net core project?