The type or namespace 'UnityPlayer' could not be found

I am getting these errors when I try to ‘Create App Packages’ in Visual Studio…

The type or namespace ‘UnityPlayer’ could not be found
The type or namespace ‘WinRTBridge’ could not be found
The type or namespace ‘AppCallbacks’ could not be found

The project compiles and runs OK… but only these errors appear when trying to create packages…

I am running Visual Studio 2012 and Win 8.1… Please dont tell me its a Win 8.1 problem… ??

I also fail WACK with the following errors:

Binary analyzer

•Error Found: The binary analyzer test detected the following errors:◦File D:\My Projects\Unity\EggDrop\Export Windows 8\Egg Drop\bin\x86\Debug\AppX\BridgeInterface.dll has failed the WXCheck check.
◦File D:\My Projects\Unity\EggDrop\Export Windows 8\Egg Drop\bin\x86\Debug\AppX\BridgeInterface.dll has failed the SafeSEHCheck check.
◦File D:\My Projects\Unity\EggDrop\Export Windows 8\Egg Drop\bin\x86\Debug\AppX\UnityEngineDelegates.dll has failed the WXCheck check.
◦File D:\My Projects\Unity\EggDrop\Export Windows 8\Egg Drop\bin\x86\Debug\AppX\UnityEngineDelegates.dll has failed the SafeSEHCheck check.

Supported APIs

•Error Found: The supported APIs test detected the following errors:◦API CreateEventExA in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API FormatMessageA in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API GetModuleFileNameW in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API GetModuleHandleW in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API LoadLibraryExW in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API LoadLibraryW in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API OutputDebugStringA in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API lstrlenA in kernel32.dll is not supported for this application type. UnityPlayer.dll calls this API.
◦API GetModuleFileNameW in kernel32.dll is not supported for this application type. BridgeInterface.dll calls this API.
◦API GetModuleHandleW in kernel32.dll is not supported for this application type. BridgeInterface.dll calls this API.
◦API LoadLibraryExW in kernel32.dll is not supported for this application type. BridgeInterface.dll calls this API.
◦API LoadLibraryW in kernel32.dll is not supported for this application type. BridgeInterface.dll calls this API.
◦API lstrlenA in kernel32.dll is not supported for this application type. BridgeInterface.dll calls this API.
◦API GetModuleFileNameW in kernel32.dll is not supported for this application type. UnityEngineDelegates.dll calls this API.
◦API GetModuleHandleW in kernel32.dll is not supported for this application type. UnityEngineDelegates.dll calls this API.
◦API LoadLibraryExW in kernel32.dll is not supported for this application type. UnityEngineDelegates.dll calls this API.
◦API LoadLibraryW in kernel32.dll is not supported for this application type. UnityEngineDelegates.dll calls this API.
◦API lstrlenA in kernel32.dll is not supported for this application type. UnityEngineDelegates.dll calls this API.

Debug configuration

•Error Found: The debug configuration test detected the following errors:◦The binary UnityPlayer.dll is built in debug mode.
◦The binary BridgeInterface.dll is built in debug mode.
◦The binary UnityEngineProxy.dll is built in debug mode.
◦The binary UnityEngineDelegates.dll is built in debug mode.
◦The binary Template.exe is built in debug mode.
◦This package has a dependency on Microsoft.VCLibs.110.00.Debug.

SOLVED… I was accidently building x64… whooops! :wink:

Hi ,
i have also facing same issue .

When I build my Windows Store application (created in Unity 4.2) in Visual Studio 2012 and choose x86 or ARM platform everything works fine, but when I try to build x64 the player folder (and DLL references) is missing.

Is it a problem with my installation or does Unity not support x64 Windows Store applications?

Please help me out . Thanks in advance

It doesn’t support x64. Choose x86 or ARM.

For the ultimate guide on building games for Win8/WP8 read Game development for desktop | Unity
Any feedback on the docs is most welcome.