-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marshal.GetActiveObject() for .Net Core 3.1 #37617
Comments
@EuroEager2008 That API was originally removed from .NET Core since COM support was not included. In .NET Core 3.0 we brought back a subset of COM support in order to enable targeted scenarios and aid in porting code from .NET Framework to .NET Core. Exactly what APIs we decided to bring back wasn't really well defined but more a matter of what was the minimum needed to support COM. I believe this is the first ask/request for this particular API. The |
@EuroEager2008 I just realized there is also the Win32 API that can be call via P/Invoke as well: |
Given that there is a direct P/Invoke solution to a well-defined Win32 API, I am going to close this. I have verified that the latest .NET Framework implementation was simply doing that as well. |
Thanks, works fine :) |
Marshal.GetActiveObject() is missing even though COM is supported.
I don't know if other useful (COM related) API's are missing as well.
There should be a way of getting an existing instance of e.g. Excel using .Net Core 3.1.
Are there possibly alternatives?
The text was updated successfully, but these errors were encountered: