简体   繁体   中英

How to setup Rider on Mac OS, Mojave?

Microsoft.Common.CurrentVersion.targets(1195, 5): [MSB3644] The reference assemblies for framework ".NETFramework,Version=v4.7.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

8:09 PM .NET Framework is not found: MsBuild can not find TargetFramework assemblies, specify a Mono MSBuild in settings. You can download the latest stable Mono release.

I am trying to set up both Visual Studio and Rider on Macbook running Mojave. I am running into this problem where I have to call for mono building location. I have installed the latest stable Mono but I don't know the location I have to add.

If someone has a video or online document explaining how to install .Net framework on mac, that would be helpful.

Mono Builder的位置

Here is the additional image to the issue on Rider in Mojave

在此处输入图片说明

Usually Rider automatically detects all installed mono runtimes and take a right one:

在此处输入图片说明

But you can specify your own runtime by selecting 'Custom' in the 'Mono executable path' combo box =)

Mono on macOS installs into the library "Frameworks", so the base directory of the install ends up being:

/Library/Frameworks/Mono.framework/

Note : I am not sure it is looking for this base dir or one of its subs:

├── Commands -> /Library/Frameworks/Mono.framework/Versions/Current/bin
├── External
├── Headers -> /Library/Frameworks/Mono.framework/Versions/Current/include
├── Home -> /Library/Frameworks/Mono.framework/Versions/Current/
├── Libraries -> /Library/Frameworks/Mono.framework/Versions/Current/lib
├── Mono -> /Library/Frameworks/Mono.framework/Versions/Current/lib/libmono-2.0.dylib
└── Versions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM