Skip to content

Minimal reproduction of a bug with IL weaver ConfigureAwait.Fody

Notifications You must be signed in to change notification settings

Storm-BE/configureawait-fody-nre-bug-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Minimal reproduction of a bug with IL weaver ConfigureAwait.Fody

This fails with an exception like:

System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Threading.Tasks.Task.AddTaskContinuationComplex(Object tc, Boolean addBeforeOthers)
   at System.Threading.Tasks.Task.AddTaskContinuation(Object tc, Boolean addBeforeOthers)
   at System.Threading.Tasks.Task.UnsafeSetContinuationForAwait(IAsyncStateMachineBox stateMachineBox, Boolean continueOnCapturedContext)
   at System.Runtime.CompilerServices.TaskAwaiter.UnsafeOnCompletedInternal(Task task, IAsyncStateMachineBox stateMachineBox, Boolean continueOnCapturedContext)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AwaitUnsafeOnCompleted[TAwaiter](TAwaiter& awaiter, IAsyncStateMachineBox box)
   at Program.<Main>$(String[] args) in C:\Repos\experiments\configureawait-fody-nre-bug-repro\Program.cs:line 3
   at Program.<Main>(String[] args)

About

Minimal reproduction of a bug with IL weaver ConfigureAwait.Fody

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages