ArxOne / MrAdvice

.NET aspect weaver (build task under NuGet package)
MIT License
308 stars 45 forks source link

No compatible code running on the thread #197

Closed Alex-Dobrynin closed 9 months ago

Alex-Dobrynin commented 1 year ago

If I have somewhere aspects and methods with aspect attribute (the module is weaved) and I run async/await code in main thread and put there breakpoints I get this error.

If remove MrAdvice nuget and comment everything related to this lib, breakpoints will be reached without any problems

I'm using .net7

Here is the code I run: image

Here is the error I get: image

Here is repro ErrorSample.zip

picrap commented 1 year ago

MrAdvice may trigger it, but is probably not the cause: https://stackoverflow.com/questions/69836969/debugging-issue-with-vs-2022-and-net-maui

Alex-Dobrynin commented 9 months ago

seems it is fixed in new visual studio