Forums

Error when building with .NET native toolchain for Windows 10 UWP
Last Post 12 Mar 2016 01:06 AM by Filip Dušek. 4 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Tadas VaitiekunasUser is Offline
New Member
New Member
Posts:2


--
11 Mar 2016 05:05 PM
    I created a MonoGame Windows 10 UWP project (which is only available from 3.5v of MonoGame I think) and tried to use EmptyKeys library. Debug build works fine, but when I tried release build I got following error in build log:

    "Compiling interop code
    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(887,5): error : Internal compiler error: Sequence contains no matching element"

    It doesn't say much, but it is clearly related to the fact that this kind of project tries to precompile everything to native code in release build (when I unticked option to use .Net native toolchain in project's properties everything compiled). I think this error is caused by EmptyKeys, because I tried this Monogame project without using EmptyKeys and it worked.

    Now I can do without this feature for now, but it would be nice if it would be fixed in the future.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:695


    --
    11 Mar 2016 05:21 PM
    Looks to me there is some bug in MS .NET Native compiler, could be something which is not supported who knows. I will check that out.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:695


    --
    11 Mar 2016 06:00 PM
    I reported your issue to Microsoft.
    Tadas VaitiekunasUser is Offline
    New Member
    New Member
    Posts:2


    --
    11 Mar 2016 06:11 PM
    Thanks
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:695


    --
    12 Mar 2016 01:06 AM
    Hmm MS is fast , I fixed the issue they have found and I'm able to compile it. I will test it more before next release, but looks like it's OK.
    You are not authorized to post a reply.