2016-07-26 359 views
1

我试图在Visual Studio 2015 Professional上运行示例:https://github.com/Microsoft/Windows-universal-samples/tree/dev/Samples。 然而,当我试图加载的项目CameraFrames.csproj,我收到以下错误:“导入的项目没有找到,请确认<import>声明中的路径是否正确”

"The imported project "C:\Program Files (x86)\Windows Kits\10\bin\10.014332.0\XamlCompiler\Microsoft.Windows>UI.Xaml.Common.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.21\Microsoft.Windows.UI.Xaml.Common.targets"

第2文件我的系统上不存在,但先不。 我试着编辑我的CameraFrames.csproj文件,并添加了我的系统上存在的文件。但这不起作用。 (见下) 第一次更改: <Content Include="C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.21\Microsoft.Windows.UI.Xaml.Common.Targets"> </Content> 2nd change: (after deleting the first change) <Reference Include= "Microsoft.Windows.UI.Xaml.Common"> <HintPath> C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.21\Microsoft.Windows.UI.Xaml.Common.Targets </HintPath> </Reference>

任何想法?我一直在困扰这个问题很长一段时间。 谢谢!

+0

我正在使用Windows 8 – s123

+1

这是最新鲜的东西,SDK和Win10版本都仍处于测试阶段。也相当有疑问,它可以在Win8上运行。很难看到路径如何被损坏,这需要来自MSBuild而不是SDK目录。它可以去任何地方,那么你必须签出一个旧版本。 –

+0

非常感谢您的回答。我现在将升级到Windows 10并试一试。 – s123

回答

0

请修复Visual Studio并重新启动PC。问题将得到解决。

我得到错误:“确认声明中的路径是正确的,并且该文件存在磁盘上。”

我在Visual Studio 2015中遇到了与Windows 8上的.Net 4.6版本相同的问题。尝试了很多事情,但最后修复了VS的工作。 :)

相关问题