Thursday, May 9, 2013

Visual Studio 2012 Pro cannot build your solution because of XAML

You have a large enough project (in my case it is about 2 Gigabytes of sources, libs etc. etc. oh, yeah, baby... although it results in just 33 Mb 'release' executable) written in XAML/C++ for Windows 8 Metro. Suddenly from some point you cannot build it. There are errors in Output something like:
"The specified module could not be found. (Exception from HRESULT: 0x8007007E) your_path\your_project\FuckingPage.xaml 18 13 YourSolution",
"Cannot create instance of type 'YourSolution.Common.YourClass' your_path\your_project\FuckingPage.xaml 30 25 YourSolution" etc.

If this is a case, don't rush to dive into debugger or even figure out what's going wrong. Most likely there is not your mistake at all. Just close before the compilation all opened tabs containing fuckin' XAML files.

Nice, isn't? :)

2 comments:

  1. Btw. Windows 8 Task Manager says that Intel Core i7 has TWO physical cores...

    ReplyDelete
  2. In my case the same problem was caused by https://www.virtualbox.org/. Btw VMWare causes no problems. Hope it helps. Good luck!

    ReplyDelete