Repository navigation
add UWP project to test .NETNative compilation - #638
bruzkovsky wants to merge 5 commits into
Conversation
|
FWIW I've created a UWP test project in the solution of the master branch (on my local box only, so far) that compiles and has many of the unit tests loaded. When compiling with the .NET Native toolchain, it fails with this: This may be simple to solve, I'm not sure. I'll look more into it later. Or you can if you get to it first. It's over at https://github.com/AArnott/MessagePack-CSharp/tree/uwptests |
|
I'm seeing it locally too in the simplest UWP test project that references MessagePack. I've opened an issue with the .NET Native tool chain (see above) to ask for advice. |
|
I was able to get a UWP test project working with a basic MessagePack test. |
|
I found the root cause and updated my dotnet/corert issue linked above. |
|
It's something I should be able to workaround. |
|
That sounds very promising. You are my hero! 💫 __makeref seems to be not supported ATM. |
|
The unsupported code in question is in the vs-threading library. I'm preparing a change so that it builds a UAP-specific package that omits the unsupported code. |
|
Tracked by this issue: microsoft/vs-threading#557 |
|
I changed to solution config so that the project builds with |
|
The PR build would be triggered by your push except for the merge conflicts. |
|
Ok, makes sense. |
|
#642 contains fixes that should allow your UWP project to compile properly. |
|
The build fails because the nuget packages are not restored for the UWP project, see this output for reference: I did some digging and this is what I could find: NuGet/Home#6665 Is there any way that the CI could use |
|
@bruzkovsky I don't think that's the problem. At least when I tried this on my own UWP test project, I noticed restore didn't work unless I specified the platform of x86 or x64. Since AnyCPU is the default solution platform and the UWP project doesn't participate in that, the "build" skips it, and restore is based on msbuild so restore doesn't happen. So ya, I suspect I know how to fix that. I hope to take a look at this PR some more later this week. I might build on it or take my own attempt instead if I feel it will get us closer to actually running most of our tests within the UWP app as well. |
|
Ok, thank you for your interest in this! It may be a critical issue for us in the future.
…________________________________
From: Andrew Arnott <[email protected]>
Sent: Tuesday, November 19, 2019 5:39:23 PM
To: neuecc/MessagePack-CSharp <[email protected]>
Cc: Matthias Bruzek <[email protected]>; Mention <[email protected]>
Subject: Re: [neuecc/MessagePack-CSharp] add UWP project to test .NETNative compilation (#638)
@bruzkovsky<https://github.com/bruzkovsky> I don't think that's the problem. At least when I tried this on my own UWP test project, I noticed restore didn't work unless I specified the platform of x86 or x64. Since AnyCPU is the default solution platform and the UWP project doesn't participate in that, the "build" skips it, and restore is based on msbuild so restore doesn't happen.
So ya, I suspect I know how to fix that.
I hope to take a look at this PR some more later this week. I might build on it or take my own attempt instead if I feel it will get us closer to actually running most of our tests within the UWP app as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#638>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACPI3L62DIF5LUS33CVP5NTQUQJDXANCNFSM4JM5QXHQ>.
|
|
This PR only adds a UWP project with a project reference, which now works. I'm preparing a change that adds a UWP test project that will actually run our tests within the UWP app, which reveals it's totally broken (and tracked by #159). |
This adds a UWP project to sandbox/ where the .NETNative compilation can be tested. It is enabled for Debug and Release configuration. Currently, the build fails with the message
as discussed in #401