0

I built a xamarin-android project on ubuntu (maybe broke something), then created a Xamarin.Forms project from a template. The rider cannot load any of the assemblies (including System):

can't load

❯ which dotnet
/usr/bin/dotnet

❯ dotnet --version
5.0.201

❯ which mono
/usr/bin/mono ❯ mono -V
Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021)

❯ /usr/share/dotnet/sdk/5.0.201
❯ ll | grep MSBuild.dll
-rw-r--r-- 1 root root 733K фев 24 05:49 MSBuild.dll

Cheesebaron
  • 24,131
  • 15
  • 66
  • 118
  • It seems Rider was not able to find Xamarin SDK in the mono? Are you sure it is installed in a right way? – xtmq Mar 19 '21 at 20:45
  • I'm not sure :) After installing deps and `git clone https://github.com/xamarin/xamarin-android.git && cd xamarin-android && git submodule update --init --recursive && make prepare && make && sudo make install` I trying to build template project manually with `msbuild` and build was succesfull. For now when I try to build it in rider i have "/usr/share/dotnet/sdk/5.0.201/Xamarin/Android/Xamarin.Android.CSharp.targets" not found ... error, and rider doesn't "see" even System assemblies – Anton Ilin Mar 20 '21 at 01:48
  • Probably Rider uses another msbuild or mono - without xamarin SDK inside. Go to `File | Settings | Build, Execution, Deployment | Toolset and Build` and check – xtmq Mar 21 '21 at 11:05

0 Answers0