Repository navigation
Add support for additional platform targets (uap and xamarin.ios) as … - #401
gentledepp wants to merge 3 commits into
Conversation
…these forbid any IL code to be created or even referenced.
|
Any ETA when this can get merged? |
|
Hello, is there any plan when this commit is available in the MessagePack-CSharp project? Or maybe a equilvalent solution to use MessagePack in a UWP project? |
|
Would also like to see this merged. |
…ive throww OutOfMemoryException)
|
This also fixed #440 |
|
I am willing to merge any changes from the master branch, but only after some contributor can guarantee me, that these changes will then be merged right after that! Cheers! |
|
For now, I've just edited your PR to target v1.8, which skirts the merge conflict issue (for now). As for whether to accept it, I haven't reviewed your PR yet so I can't say. |
|
Ok great - thank you for the reply! We are actually using the iOS and UWP builds in production. The OutOfMemoryException issue on UWP took me more than one week to track down (#440 ) so I really hope to save some developers out there the pain :-| |
|
OK, what you're trying to solve looks very worth fixing. Your approach of removing all the IL generating code looks pretty good. I would request these changes:
With these changes, I think I'd be willing to merge into v1.8, with one extra step: that you have a published branch that merges our |
|
Hello @AArnott |
|
Any Updates on this? |
|
Sorry - not yet. We spent almost a week fixing this and the only way to find out if it works was to run the iOS build and the UWP build in "publish" mode which is quite a tedious task. We may fix this in the future, but as of now this has no priority to us. |
|
Closing till the PR author is ready to push an update. |
|
Hi @AArnott, I am trying to get this implemented on the current master as you suggested, but the code changed a lot, which makes it even harder to find the conflicting references now. As you already thought, I needed to start from scratch, because most of the files that were changed by this PR are deleted on master. I added a UWP test project that is set to 'Compile with native toolchain' and 'optimize code' always. I traced back the changes from commit eed8d6c, first starting with adding a After some more digging, I found a new reference to Other than that, I am running out of ideas for this problem... Now, it gets really funny: After adding the UWP project to the This was strange at first. but then I realized, I already implemented the fix in the UWP.csproj, after reading about the nutc_driver.exe failing here and here. So I added So, TLDR;: The to the first I will create another PR for adding the UWP project. Cheers |
|
Thanks, @bruzkovsky. I'm a bit confused though. You sent a PR to our master branch (where 2.0 is) saying that you see a build break, yet the PR build succeeded. As for why it fails in v2.0, I have no idea what that exit code means. The .Unsafe dependency is something that several corefx assemblies bring in, and yes we may use it directly as well. I don't think it does anything super-magical that we couldn't do ourselves -- the implementation of the DLL looks simple enough. But I'd be surprised if that's actually what's causing the .NET Native toolchain problem. |
|
@AArnott, the test project simply compiles MessagePack and fails when running nutc_driver. Now I am confused, too! Building it on my machine fails. But going through the logs of the CI build, I cannot see any mention of 'TestUAP_NETNative', so I'm not sure if it was even built in CI. |
|
Ah, I know why your project wasn't built -- it only builds when the solution platform built is set to a non "Any CPU" selection (since UWP is always architecture-specific). Our CI hasn't previously needed to build anything but "Any CPU". |
|
After testing @AArnott, for that reason, I renamed The UWP project is in my other PR and you already did the test project - please correct me if I'm wrong - so, I guess that makes the list complete. |
|
So, deleting the branch and pushing it again maybe wasn't the best idea... Can the PR be updated manually somehow? |
|
GitHub won't let me re-open the PR. Is the reopen button disabled for you too? |
|
I can't even see it. |
|
Well, I guess you'll have to create a new PR then. |
|
New PR is here: #641, but the build fails, I think because msbuild 16 doesn't like MsBuild.SDK.Extras < 2, at least I get the same error when building with VS2019 (VS2017 builds successfully) |
…these forbid any IL code to be created or even referenced.
Otherwise e.g. when referencing MessagePack in an UWP solution and you run the publish wizard to publish it in Microsoft Store, you will get a bunch of compiler errors. It boils down to the one error regarding MessagePack:
So this PR adds two additional platform targetx: ios and uwp
In these, all IL creating code is not included