I’m running Windows 8.1 (RTM) with Unity Pro 4.2, and I can’t get any of my exported Windows 8 projects to run. When I do the build in Unity, it creates the Visual Studio solution. If I open that solution and try to run it (after switching to x86 target), I get these errors:
This is just an empty project with no plugins and just a cube in the middle of the screen. I can’t get the exported Unity project to run in Windows 8.0 or 8.1. On a side note, this project runs great on Android, Windows Desktop and Windows Phone 8. Has anyone else run into this issue?
I’m using VS2012 on Windows 8.1 with Unity Pro 4.2. I just create an empty Unity project, export it for Windows 8 (metro) and try to run the project in VS2012 and it fails with this error. If there’s any other details you need please let me know.
I’m using Windows 8.1 Pro, not the N version. The debug->exceptions thing doesn’t hit anything because the app isn’t even starting correctly. I’ve attached my Unity project to this reply, and I tried to attach my exported VS2012 project and the Windows Store package but they’re apparently too big. I can send them to you using a different method if those would help too. Thanks!
Most likely you don’t have the Windows 8.1 SDK installed on your system. Please note: the Windows 8 SDK Layers in the Standard Windows 8 SDK are not compatible with 8.1!
@Tomas1856: I’ve attached the exported project, let me know if you need anything else.
@stephan7: I’ve installed the 8.1 SDK like you suggested but I’m still getting the same errors. Do I need to force Unity or VS2012 to reference it somehow?
Tried to make a quick test with your ‘WindowsStoreProject.zip’ and copied the ‘Players’ folder from my project over into your project.
But it seems I have a version: 4.2.2f1 installed and your version is 4.2.1f4 - so I can’t start it.
I try to make a quick test with your UnityProject.zip…
I’ve tried setting up another computer with a fresh install to give this a try. Here is what I did:
Install Windows 8.1 Pro (MSDN license, and activated it)
Install VS2012 and do all the updates (including Update 3)
Install Unity 4.2.2f1 (activate it with a 30-day Pro trial license)
Create a new Unity project with a cube in the middle of the viewport
Export to C# solution
This solution still won’t run, and the exported apppackages don’t run either. Am I missing something in the toolchain, or some setting in Windows here? This is on a fresh install of Windows 8.1 with all default settings, with only VS2012 and Unity installed.
Could you try creating a C++ project from Unity, for ex., XAML C++, and launch that. This is another hunch, but maybe you’re missing somekind of dependency on your system, which Unity use.