VirtualDesktop
VirtualDesktop copied to clipboard
Support compilation from single file application
Fixes an error preventing compilation of COM interface assembly, when VirtualDesktop.Configure
is invoked in a .NET 6 single file application compiled with PublishSingleFile=true
.
I don't like the usage of AllowUnsafeBlocks
but this seems to be the recommended solution according to Microsoft - see https://github.com/dotnet/runtime/issues/42621#issuecomment-697429214= and https://github.com/dotnet/runtime/issues/36590#issuecomment-689883856=.