找不到Microsoft.Windows.UI.Xaml.Common.Targets

cjg*_*ana 8 winrt-xaml visual-studio-2012 windows-store-apps

当我尝试在C#/ XAML中编译Windows应用商店应用时遇到问题.每次我尝试编译时都会收到此错误:

Error 1 The system cannot find the file specified. (Exception from HRESULT: 0x80070002) App1
Run Code Online (Sandbox Code Playgroud)

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)
Run Code Online (Sandbox Code Playgroud)

我有文件,所以不是问题.当我从模板创建新的Windows 8商店应用程序时,也会出现此问题,因此我的系统似乎有问题.我试图重新启动计算机并修复VS2012安装(两次)而没有结果.

任何的想法?有人可以帮我解决这个问题吗?我有Visual Studio Professional 2012.在此先感谢

编辑:这是"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>
Run Code Online (Sandbox Code Playgroud)

Ham*_*ame 2

我的问题是我使用了一些尚未包含在解决方案中的内容的参考。一旦我删除了所有引用,一切就正常了。但错误信息完全没用。