Cannot run Windows 10 Unity Project

Unity 5.2.2f2

I generated a XAML Universal 10 build from my Game, and I get tons of errors when I open the resulting project on Visual Studio 2015.

I had some problems before, and the reason was my application name “Forgotten Tales - Day of the Dead”, I don’t know if is related.

Error    CS1061    'App' does not contain a definition for 'InitializeComponent' and no extension method 'InitializeComponent' accepting a first argument of type 'App' could be found (are you missing a using directive or an assembly reference?)    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\App.xaml.cs    38
Error    CS1061    'MainPage' does not contain a definition for 'InitializeComponent' and no extension method 'InitializeComponent' accepting a first argument of type 'MainPage' could be found (are you missing a using directive or an assembly reference?)    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    38
Error    CS0122    'Rect' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    33
Error    CS0122    'Rect.Height' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    97
Error    CS0122    'Rect.Width' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    98
Error    CS0122    'Rect.X' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    95
Error    CS0122    'Rect.Y' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    96
Error    CS0122    'Uri' is inaccessible due to its protection level    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    105
Error    CS0151    A switch expression or case label must be a bool, char, string, integral, enum, or corresponding nullable type    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\App.xaml.cs    51
Error    CS1660    Cannot convert anonymous method to type 'DispatchedHandler' because it is not a delegate type    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\MainPage.xaml.cs    122
Warning        Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\Forgotten Tales - Day of the Dead.csproj   
Error    CS1579    foreach statement cannot operate on variables of type 'System.Collections.Generic.IReadOnlyList<Windows.Storage.IStorageItem>' because 'System.Collections.Generic.IReadOnlyList<Windows.Storage.IStorageItem>' does not contain a public definition for 'GetEnumerator'    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\App.xaml.cs    74
Error    CS0518    Predefined type 'System.Boolean' is not defined or imported    Forgotten Tales - Day of the Dead    D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\Properties\AssemblyInfo.cs    29

Any advice?

Maybe you have a class named App, so it’s conflicting with App.xaml.cs?

Well… After a reboot it worked, but I still can’t run the game.

I got this error when running the game (Master - x64)

'Forgotten Tales - Day of the Dead.exe' (Win32): Loaded 'D:\games\unity\games\Solitairie\ForgottenTales-DayOfTheDead\Builds\WS10\Forgotten Tales - Day of the Dead\bin\x64\Master\AppX\Forgotten Tales - Day of the Dead.exe'. Module was built without symbols.
'Forgotten Tales - Day of the Dead.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'Forgotten Tales - Day of the Dead.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'Forgotten Tales - Day of the Dead.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x41c4 has exited with code -1073741515 (0xc0000135).
The thread 0x14ec has exited with code -1073741515 (0xc0000135).
The program '[6488] Forgotten Tales - Day of the Dead.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.

How do I find out what “Dependent Dll” was that?

Pop the executable in dependency walker.

http://www.dependencywalker.com/

Well… I can’t compile it again!

The first problem seems to happens only when I set to ARM.

On x86 and x64 now I got this error :

Error        Internal compiler error: MCG0018:TypeExpected Expected Windows.Foundation.Metadata.ActivatableAttribute to exist. Check that Windows.winmd is referenced by your build system.    Forgotten Tales - Day of the Dead

I will try it more and check dependencywalker. Thanks

I still was not able to make it work!

I just Sent a Bug Report with my Full Project.

Bug 750266

Could you please check it?