Developing Apps for Windows 8: The Imported Project Was Not Found (Visual Studio Error)

Choose Default Program To Open FileIf you’re developing apps for Windows 8 and you’re now on Consumer Preview, you might get the error “The Imported Project Microsoft.Windows.UI.Xaml.CSharp.targets Was Not Found”

Modifying CSPROJ File

1. StepRight-click on the CSPROJ file and click on Open with – Choose default program

Choose Default Program To Open File

2. Step Select the notepad editor to open the file (if you want to avoid losing the Visual Studio 11 file association, read Where is the “open with” program list in Windows 8)

Changing Csproj File Path V 11.Jpg

3. Step Search for v1.0 and replace it with v11.0 as seen below – this is the actual folder that exists in C:\Program Files (x86)\MsBuild\Microsoft\WindowsXaml\

Windows Xaml Path Wrong Visual Studio

Once you have replaced v1.0 with v11.0 and saved the notepad file it should work again and you should no longer get the error “The Imported Project C:\Program Files (x86)\MsBuild\Microsoft\WindowsXaml\v1.0\ Microsoft.Windows.UI.Xaml.CSharp.targets” Was Not Found.

Published: Wednesday, March 14th, 2012 Last Modified: March 14, 2012

Related Posts

Rate This Article
5 of 5 0 (100%) 1 vote