Unity UWP Build error--il2cpp.exe didn't catch exception

Hi gentlemen,

I met follow error message when building UWP

1>il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\link.exe /out:“D:\proj.zombie\UWP\build\obj\il2cppOutputProject\x64\Debug\linkresult_BA6F07F715147BE558D921F2CD61496F\GameAssembly.dll” /DEBUG /INCREMENTAL:NO /MAP /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE LOGO /TLBID:1 /HIGHENTROPYVA /DLL DEFAULTLIB:uuid.lib “ws2_32.lib” “Shcore.lib” “WindowsApp.lib” /LIBPATH:“C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64” /LIBPATH:“C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64” /LIBPATH:“C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64” /LIBPATH:“C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\lib\x64\store” /APPCONTAINER /SUBSYSTEM:WINDOWS DEFAULTLIB:ole32.lib DEFAULTLIB:kernel32.lib DEFAULTLIB:msvcrt.lib @“C:\Users\chenghui\AppData\Local\Temp\tmp89A8.tmp”

I’ve formatted my whole system drive and reinstall editors and tools but this issue still exist, I locate this issue and it looks much like because of this class never found within the project

private Windows.UI.Core.CoreDispatcher UIDispatcher = null

Could you please tell me what kind of tools or files i missed?

Thanks for your help!!

3141564–238350–LiveResources.cs (4.56 KB)

Could you paste the contents of the “output” window in Visual Studio after the build fails? Which Unity version are you on?

I attached our output image here,

Dev environment,

Unity version:5.6.2
SDK—Universal 10
Target device— any device
UWP build type—D3D
UWP SDK — 10.0.14393.0
Build and Run on — Local Machine

Scripting Backend — IL2CPP
Api Compatibility Level — Net4.6

We’ve also tried using the lastest UWP SDK and 15063 version but still unsolved…:frowning:

3142641--238497--1.png

I can’t reproduce this with a new project with the script you attached. Can you report a bug with a project that you’re seeing this in?