Moving xamarin.ios to new SKD style issues

Phunction 261 Reputation points
2024-04-15T17:54:17.71+00:00

I am trying to move my xamarin.ios project to the new SDK style as MS is no longer supporting the previous methods.

I am following the steps at

https://learn.microsoft.com/en-us/dotnet/maui/migration/?view=net-maui-8.0

But I get multiple errors:

Error CS0012 The type 'UIScrollView' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.iOS, Version=0.0.0.0,

and the errors are highlighted on random things that have nothing to do with it, like this will have the red underline with the error: Dictionary<nint, string>()

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,696 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,093 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Phunction 261 Reputation points
    2024-05-23T14:40:34.79+00:00

    I found there were a few older 3rd party libraries that were causing the issue and they do not have newer versions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.