You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally reported this here as I found it loading types from DotNext.Threading. However, it seems like this may really be an issue with .NET 11 Preview 7.
Reproduction Steps
To recreate:
Create a console app with the following settings (note: this should be run with .NET 11 Preview 7)
<LangVersion>preview</LangVersion>
<TargetFramework>net11.0</TargetFramework>
Reference the DotNext.Threading NuGet package, version 6.6.5
I would expect this to return the types in the assembly
Actual behavior
What I get is a TypeLoadException:
System.TypeLoadException: Method 'get_Task' in type 'DotNext.Threading.Tasks.<TaskSchedulerExtensions_T>FEC23FF8E24C5C893F2B0DCE3A3DBD6B033A895D525ABEAE11C935B5879FC7CF4__ImmediateTask`2' from assembly 'DotNext.Threading, Version=6.6.1.0, Culture=neutral, PublicKeyToken=c8827b44e18fe572' does not have an implementation.
System.TypeLoadException: Method 'get_Task' in type 'DotNext.Threading.Tasks.<TaskSchedulerExtensions_T>FEC23FF8E24C5C893F2B0DCE3A3DBD6B033A895D525ABEAE11C935B5879FC7CF4__DelayedTaskStateMachine`2' from assembly 'DotNext.Threading, Version=6.6.1.0, Culture=neutral, PublicKeyToken=c8827b44e18fe572' does not have an implementation.
Regression?
Maybe. If I change TargetFramework to net10.0, it runs fine with no issues.
Activity
dotnet-policy-service commentedon Aug 31, 2026
Tagging subscribers to this area: @dotnet/area-system-threading-tasks
See info in area-owners.md if you want to be subscribed.
EgorBo commentedon Aug 31, 2026
Likely changed by #125900 cc @VSadov
VSadov commentedon Sep 2, 2026
possibly the #132425 already has a fix for this
tannergooding commentedon Sep 18, 2026
@VSadov what's the status on this and is it needed for 11.0?
VSadov commentedon Sep 22, 2026
needed for net11 and not fixed with the other change.
we will fix this in main and backport to net11
dotnet-policy-service commentedon Sep 22, 2026
Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.
Fix TypeLoadException in .NET 11 Preview 7 with DotNext threading (#1…
Fix TypeLoadException in .NET 11 Preview 7 with DotNext threading (#1…
[release/11.0] Fix TypeLoadException in .NET 11 Preview 7 with DotNex…