Microsoft.Windows.UI.Xaml.Common.Targets not found

I have a problem trying to compile a Windows Store app in C # / XAML. Every time I try to compile, I get this error:

Error 1 The system cannot find the file specified. (Exception from HRESULT: 0x80070002) App1 

and

 C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Common.targets(190,9): Xaml Internal Error error WMC9999: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 

I have a file, so this is not a problem. This problem also occurs when I create a new Windows 8 storage application from a template, so this seems to be a problem for my system. I tried to restart my computer and restore the VS2012 installation (twice) without any results.

Any idea? Can anyone help me solve this problem? I have Visual Studio Professional 2012. Thanks in advance

EDIT: This is the code in "C: \ Program Files (x86) \ MSBuild \ Microsoft \ WindowsXaml \ v11.0 \ Microsoft.Windows.UI.Xaml.Common.targets (190.9)"

 <CompileXaml LanguageSourceExtension="$(DefaultLanguageSourceExtension)" Language="$(Language)" RootNamespace="$(RootNamespace)" XamlPages="@(Page)" XamlApplications="@(ApplicationDefinition)" PriIndexName="$(PriIndexName)" ProjectName="$(MsBuildProjectName)" IsPass1="True" CodeGenerationControlFlags="$(XamlCodeGenerationControlFlags)" ProjectPath="$(MSBuildProjectFullPath)" OutputPath="$(XamlGeneratedOutputPath)" OutputType="$(OutputType)" TargetPlatformWinMDLocation="$(TargetPlatformWinMDLocation)" ReferenceAssemblyPaths="@(ReferenceAssemblyPaths)" ReferenceAssemblies ="@(ReferencePath)" ShareAppDomains="$(XamlShareAppDomains)" ForceSharedAppDomainShutdown="False" CompileMode="RealBuildPass1" XAMLFingerprint="$(XAMLFingerprint)" FingerprintIgnorePaths="$(XAMLFingerprintIgnorePaths)" VCInstallDir="$(VCInstallDir_110)" > <Output Condition=" '$(ManagedAssembly)'!='false' " ItemName="Compile" TaskParameter="GeneratedCodeFiles" /> <!-- Add to the list list of files written. It is used in Microsoft.Common.Targets to clean up for a next clean build --> <Output ItemName="FileWrites" TaskParameter="GeneratedCodeFiles" /> <Output ItemName="FileWrites" TaskParameter="GeneratedXamlFiles" /> <Output ItemName="_GeneratedCodeFiles" TaskParameter="GeneratedCodeFiles" /> </CompileXaml> 
+8
visual-studio-2012 windows-store-apps winrt-xaml
source share
3 answers

My problem was that I used some links to things that were not yet included in the solution. As soon as I deleted all the links, everything worked. But the error message is completely useless.

+2
source share

The problem for me was that one of my links was blocked. He had a read permission error. As soon as I unlocked it, the solution was created without problems.

0
source share

I got this error when I made a copy of the project, added it to the new solution, but forgot to update the links, so they still looked at the old link path.

0
source share

All Articles