Error "referenced assemblies not found" when setting Rider to use Unity's bundled version of Mono

Hi, I've only recently started using Rider and it is life-changing for Unity development. My project involves a DLL that I am developing separate to my main Unity project, and I followed the directions from this post to set my Rider installation to use the version of Mono that comes bundled with Unity, so that it'll generate a *.dll.mdb file for symbols.

After changing this setting to use Unity's version of Mono, I start getting all sorts of errors on basic things like IEnumerator and yield statements and this error shows up in the build messages window:

Microsoft.Common.CurrentVersion.targets(1177, 5): [MSB3644] The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

I unfortunately cannot install the Developer Packs at the URL specified because I'm on a Mac and the installers for download there are Windows only. How do I get the necessary reference assemblies on Mac?

0
1 comment

Hi,

It looks like the Mono toolset of the Unity version that you use doesn't support .NET Framework 4.7.1. I'd suggest use the following option (Override Target Framework version) in Unity to set a lower .NET Framework version.

0

Please sign in to leave a comment.