I'm trying to add light_generic.xaml to my app, but the build fails with the following error message:
C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(208,9): error MSB3021: Unable to copy file "Debug\light_generic.xaml" to "c:\users\jani9000\documents\visual studio 11\Projects\Application6\Debug\Application6\light_generic.xaml".
Could not find file 'Debug\light_generic.xaml'.
The problem can be reproduced by creating a new simple c++ app. Steps:
- in VS2011 developer preview file > new... > Visual C++ > Windows Metro Style > Application > OK
- copy light_generic.xaml to same folder where your App.xaml resides
- drag light_generic.xaml to project
- check that VS has added light_generic.xaml to App.xaml ResourceDictionary, save App.xaml
- build solution