Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems creating Windows Store app. (Windows 8)

When i create a new Blank App (XAML) Project in Visual studio i get these errors:

Starts of with some references are incorrect. Should it really be like this in a new solution? (havn't written anything yet) If i try to build at this Point i get :

Cannot resolve Windows Metadata

So i figured i'll fix the namespace issues. This was by adding reference to Window and add namespace Windows.UI.XAML; After that i get over 3000 (3136) errors here is some of them :

  • The .winmd file 'Windows.winmd' contains type 'Windows.Globalization.ILanguageStatics'. The use of the Windows namespace is reserved.
  • The .winmd file 'Windows.winmd' contains type 'Windows.Globalization.ICalendarFactory'. The use of the Windows namespace is reserved.
  • The .winmd file 'Windows.winmd' contains type 'Windows.Globalization.IGeographicRegion'. The use of the Windows namespace is reserved.
  • The .winmd file 'Windows.winmd' contains type 'Windows.Globalization.DayOfWeek'. The use of the Windows namespace is reserved.
  • etc.

What i've tried so far

  • Repair Visual Studio
  • Repair SDK'
  • Uninstall/Reinstall the SDK'

' Windows Software Development Kit (SDK) for Windows 8

I should also add that i've upgraded my Windows 7 to Windows 8.

Anyone has any suggestions about how to solve this issue?

like image 590
Jonas W Avatar asked Oct 08 '12 09:10

Jonas W


1 Answers

I just hit against this issue with VS 2012 Update 2. There were one more warning in the output, something like "can't find implementation details for the 'Windows.winmd' file" (I didn't save this text, so don't remember exact spelling. This warning pointed to the Windows.winmd in some project Debug folder. I found that this folder actually contained the copy of this file. Apparently, VS made this copy for some reason. After removing it I was able to build my projects again.

So, read all warnings before reinstalling SDK, VS or Windows 8

like image 97
notacat Avatar answered Sep 29 '22 18:09

notacat