NET Core SDK needs know where to find the reference assemblies. You will probably be able to find the reference assemblies located under version folders within /Library/Frameworks/amework/Versions/Current/lib/mono. If you have Visual Studio for Mac or Rider installed, then you probably already have this installed, and otherwise, it's a good idea to get the latest stable version installed from here. On macOS, there are 2 ways to reference these reference assemblies that I know of 1. On Windows these are called 'Targeting Packs' and you would have these ship with Visual Studio, or packaged via standalone installers called 'Developer Packs'.
Error MSB3644: The reference assemblies for framework '.NETFramework,Version=v4.6.1' were not found.Īnd that makes a lot of sense, because in order to compile for net461 in this case, we need the reference assemblies of that framework, these are dlls that are the same as the runtime assemblies, but just the signatures, no implementation.