Problems with Rider 2019.1.2

Answered

Upgraded to Jetbrains rider 2019.1.2 today and now my Xamarin.iOS project won't build.

Gets this error message:

Microsoft.NET.Sdk.targets(129, 5): [MSB4018] The "GenerateDepsFile" task failed unexpectedly.
System.MissingMethodException: Method not found: System.Collections.Generic.IList`1<NuGet.Packaging.Core.PackageDependency> NuGet.ProjectModel.LockFileTargetLibrary.get_Dependencies()
at Microsoft.NET.Build.Tasks.DependencyContextBuilder+<>c__DisplayClass36_0.<GetLibraries>b__0 (NuGet.ProjectModel.LockFileTargetLibrary export) [0x00000] in <bff6e7037c2240c997fa1c9c5827da86>:0
at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].MoveNext () [0x0003a] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Linq.Enumerable+<CastIterator>d__34`1[TResult].MoveNext () [0x0005f] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0003d] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x00000] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Collections.Generic.SparseArrayBuilder`1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable`1[T] items) [0x00017] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Linq.Enumerable+ConcatNIterator`1[TSource].LazyToArray () [0x00021] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Linq.Enumerable+ConcatNIterator`1[TSource].ToArray () [0x00008] in <28b7381f9e304c3eae9fa66907f89854>:0
at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <28b7381f9e304c3eae9fa66907f89854>:0
at Microsoft.Extensions.DependencyModel.DependencyContext..ctor (Microsoft.Extensions.DependencyModel.TargetInfo target, Microsoft.Extensions.DependencyModel.CompilationOptions compilationOptions, System.Collections.Generic.IEnumerable`1[T] compileLibraries, System.Collections.Generic.IEnumerable`1[T] runtimeLibraries, System.Collections.Generic.IEnumerable`1[T] runtimeGraph) [0x00068] in <fa4af318e8374ad18eef8b73f115183f>:0
at Microsoft.NET.Build.Tasks.DependencyContextBuilder.Build () [0x001bd] in <bff6e7037c2240c997fa1c9c5827da86>:0
at Microsoft.NET.Build.Tasks.GenerateDepsFile.ExecuteCore () [0x00117] in <bff6e7037c2240c997fa1c9c5827da86>:0
at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x00000] in <bff6e7037c2240c997fa1c9c5827da86>:0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <eb5d17e1070643339362a343d0987998>:0
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002a9] in <eb5d17e1070643339362a343d0987998>:0

 

Same thing when I try and build my Android project.

 

Any ideas?

0
2 comments

Answering my own questions. the update to Rider 19.1.2 changed the version of MS Build, you must use the one that's associated with the Mono framework for Xamarin projects

0
Hello David, Thank you for your feedback. This is a known problem - https://youtrack.jetbrains.com/issue/RIDER-28816. Please feel free to follow and vote. As a workaround, please check MSBuild settings in `Settings | Build, Execution, Deployment | Toolset and Build`. Please, try to change "Use MSBuild Version" to a mono one (as shown on a screenshot in attachments). Can it help?
0

Please sign in to leave a comment.