无法打开UWP解决方案 - 找不到XamlCompiler [英] Can't open UWP solution - XamlCompiler not found

查看:150
本文介绍了无法打开UWP解决方案 - 找不到XamlCompiler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开展一个UWP项目。我最初使用Visual Studio Community 2015没有问题,但随后将其卸载并安装了Visual Studio Pro 2015。


现在当我尝试打开相同的解决方案时,每个项目都抱怨

错误:导入的项目"C:\Program Files(x86)\ Windows Home Kits \10\bin\10.0.14393.0\XamlCompiler\Microsoft。 Windows.UI.Xaml.Common.targets"没找到。确认< Import>中的路径声明是正确的,并且该文件存在于磁盘上。 C:\Program Files(x86)\ MSBuild\Microsoft \ WindowsXaml \v14.0 \ .8.21 \ Microsoft.Windows.UI.Xaml.Common.targets 

在Poking中,目录C:\Program Files(x86)\ Windows Wits\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\我看到4个目录 - arm,arm64,x64和x86。我尝试卸载并重新安装Windows SDK无济于事。


任何帮助都将不胜感激。

解决方案

< blockquote>

Hi Zedenstein,


感谢您在MSDN论坛上发帖。


您是否通过控制面板卸载了VS?实际上,它不会卸载所有软件包,某些组件仍然保留在您的计算机上,这可能会导致VS重新安装仍然遇到同样的问题。


我建议你尝试一下使用
Visual Studio Uninstaller
 到
干净地卸载整个VS,然后再插入一个好的ISO进行修复。从

这里
,然后请使用

FCIV.exe
工具
 检查ISO的SHA1值,预期值来自

here

任何差异表示ISO已损坏。

确认ISO正常后,请使用它重新安装VS。


Win 10 SDK支持的操作系统



  • Windows  ; 10
  • Windows 8.1
  • Windows Server 2012 R2
  • Windows Server 2012

注意:安装在Windows 8.1及更早版本的操作系统上需要
KB2999226
。要通过Windows Update安装,请确保安装最新版本在安装Windows SDK之前,建议使用Microsoft Update的更新和修补程序。


I'm currently working on a UWP project. I was originally using Visual Studio Community 2015 with no issue but then uninstalled it and installed Visual Studio Pro 2015.

Now when I try to open the same solution, each project complains

error  : The imported project "C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets" was not found. Confirm that the path in the <Import> 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

Poking around, the directory C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0 doesn't exist. I see 4 directories there - arm, arm64, x64, and x86. I've tried uninstalling and reinstalling the Windows SDKs to no avail.

Any help would be appreciated.

解决方案

Hi Zedenstein,

Thank you for posting in MSDN forum.

Did you uninstall the VS via Control Panel? Actually, it doesn't uninstall all the packages, some components still remain on your machine, It could lead the the VS re-install still stuck at the same problem.

I recommend you try with the Visual Studio Uninstaller to uninstall the Whole VS cleanly, then insert a good ISO to repair again. download a VS 2015 With Update 3 Community ISO from here , Then please use the FCIV.exe tool to check the SHA1 value of the ISO, the expected value comes from here, any discrepancy means the ISO is corrupted.
After making sure the ISO is ok, use it to re-install VS.

Win 10 SDK Supported operating systems

  • Windows 10
  • Windows 8.1
  • Windows Server 2012 R2
  • Windows Server 2012

Note: Installation on Windows 8.1 and earlier operating systems requires KB2999226. To install through Windows Update, make sure you install the latest recommended updates and patches from Microsoft Update before you install the Windows SDK.


这篇关于无法打开UWP解决方案 - 找不到XamlCompiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆