debugger-libs
debugger-libs copied to clipboard
First task to create a nuget package and remove sources from mono/mono
Removing usage of AsyncCallback and AsyncResult, this is not available in netstandard.
Changing projects to use new csproj style.
Just a heads up - there's some kind of Mono.Debugger.Soft package already published (by us?) in 2017: https://www.nuget.org/packages/Mono.Debugger.Soft/
Any plans to complete this? (At least the part about moving to SDK-style projects.)
We need this for Xamarin.Android in order to build with dotnet, which we need in order to move to .NET5/6.
Removing usage of AsyncCallback and AsyncResult, this is not available in netstandard.
This comment does not make sense to me, as public documentation states that these types exist ~everywhere:
- https://docs.microsoft.com/en-us/dotnet/api/system.iasyncresult?view=net-5.0
- https://docs.microsoft.com/en-us/dotnet/api/system.asynccallback?view=net-5.0
Note in particular:
.NET Standard: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
Why do these types need to be removed?
The netstandard.dll for net4.5 also contains the forwarders:
% monodis --forward-decls /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/Facades/netstandard.dll | grep IAsyncRes
.class extern forwarder System.IAsyncResult
% monodis --forward-decls /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/Facades/netstandard.dll | grep AsyncCallb
.class extern forwarder System.AsyncCallback
TaskFactory<T>.FromAsync() can be used to "bundle together" a Begin+End method pair into something that returns a Task.
There is a blog post detailing something about this: https://devblogs.microsoft.com/dotnet/migrating-delegate-begininvoke-calls-for-net-core/