Skip to content

Known issues in .NET

Rolf Bjarne Kvinge edited this page May 12, 2022 · 10 revisions

'dotnet pack' doesn't work for projects with multiple target frameworks

dotnet pack doesn't work for projects using TargetFrameworks (plural) instead of TargetFramework (singular).

Workaround: use TargetFramework in the csproj.

This will be fixed in a future version of MSBuild.

Ref: https://github.com/xamarin/xamarin-macios/issues/14708.
Ref: https://github.com/dotnet/msbuild/issues/4584.

"Ran out of trampolines of type 1" running in the x64 simulator.

Ref: https://github.com/xamarin/xamarin-macios/issues/14887 Ref: https://github.com/dotnet/runtime/issues/68808

Specifying both -f ... and -r ... to dotnet build fails to restore if multiple frameworks are present in the project file

Ref: https://github.com/dotnet/sdk/issues/21877

Thread.CurrentThread.CurrentCulture is invariant and does not follow the device culture

This will be fixed in a future update of the .NET runtime (probably 6.0.400).

Ref: https://github.com/xamarin/xamarin-macios/issues/14740 Ref: https://github.com/dotnet/runtime/issues/68321

Availability attributes might be wrong

We got them done, but there migth be mistakes.

Launch from the command line is awkward

Clone this wiki locally