-
Notifications
You must be signed in to change notification settings - Fork 204
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
[ Microsoft.DotNet.ILCompiler ] "COM Interop is not supported on this platform" exception after updating to new version of package #279
Comments
The COM interop has not been supported by CoreRT. It is not clear to me how this could ever work. |
Yeah, that's odd. I tried to reproduce on AvaloniaCoreRTDemo. It works just fine for I'm getting
|
Try to use |
I had removed this line at all. I was able to make a screenshot though:
yeah. Seems like I will stick to good old CoreRt and Avalonia 0.9.11. |
10.0.17763 |
I have submitted PR to update AvaloniaCoreRTDemo to the new nuget feed: teobugslayer/AvaloniaCoreRTDemo#4 . It works fine for me. |
I have the same version. I attached a detailed log by executing `dotnet publish -r win-x64 -c release -v d >> log.txt may it help. |
We have fixed a crash in FinishObjWriter a few weeks ago. Maybe you are not using the latest package? |
How can I make sure I'm on latest? I have 3 packages:
old one: CoreRt (works great)
|
dunno. I use these settings in a fsproj/csproj <ItemGroup>
<IlcArg Include="--verbose" />
<IlcArg Include="--singlethreaded" />
</ItemGroup> to get more informative logs. |
Both these are very recent (20527.1 is October 27, 20531.1 is October 31). I am running out of ideas why it may be crashing for you. |
I had an idea. So I moved |
since it works OK on demo project I'll try to create MCVE. I can only hope it won't be too complicated |
@jkotas why the issuw was closed? Cause there is no way to reproduce? |
If you are still not able to figure why things that used to work with the CoreRT package do not work anymore, I will be happy to reactive this issue. I have created a dedicated issues for the COM interop support since it is a popular topic: #306 |
Yep, no idea. I tried to create MCVE but for some reason my attempt is crashed horribly with "hard error" exception during the first "Generating native code" task even with old version of CoreRt. Initally I thought it is coincidnce and might be unrelated to CoreRt but when I repeat test (this time I turned off almost all applications) and got the same crash I decide to stop. I'll try find another machine to confirm crash on test project. But for the main issue I will have to minimize my project step by step so it will take longer. I'll try to do it on weekend. New version of CoreRt produces bigger executable (+8Mb for my project). Maybe it keeps some methods that were stripped away previously despite they're unused? |
The compiler logic that controls what is stripped have not changed. If you see this, it must be caused by some secondary effect like implementation change in one of the libraries. |
Didn't change anything except
->
App uses
Avalonia 0.9.11
part of StackTrace
The text was updated successfully, but these errors were encountered: