Monogame 3.8.2 iOS does not build

I tried to update my Monogame 3.8.1 iOS and Android apps to 3.8.2 but unfortunately the iOS app does not build. Android version builds fine. So whilst investigating I tried to build an empty Monogame.iOS project from template.

dotnet new mgios -o appname
dotnet build

but I get the same error:

error CS0234: The type or namespace name 'Xna' does not exist in the namespace 'Microsoft'

I am using Monogame.Framework.IOS 3.8.2.1105 and Monogame.Content.Builder.Task 3.8.2.1105