Xamarin tempalte issue

Answered

Hello guys,

 

I have faced within issue in Rider on Ubuntu 16.04 when tried to create and compile toy example:

  The imported project "/usr/share/dotnet/sdk/2.1.301/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  /home/<user_name>/RiderProjects/AndroidApp1/AndroidApp1/AndroidApp1.csproj

 

I guess it is some how related to Xamarin template, am I right ? How to fix it ?

 

Thanks

2 comments
Comment actions Permalink

Hello,

Looks like Rider uses .NET Core MSBuild, which doesn't have Xamarin targets. Please change MSBuild in "File | Settings | Build, Execution, Deployment | Toolset and Build".

0
Comment actions Permalink

@Juiia Vaseva Thanks, I did as you suggested and changed from MSBuild to /usr/lib/mono/xbuild/14.0/bin/xbuild.exe

But right now I have another issue, project is loading too long ... forever

How you observed such behavior ?

0

Please sign in to leave a comment.