gpt4 book ai didi

winapi - XamlCompiler错误WMC1006 : Cannot resolve Assembly or Windows Metadata file 'Microsoft.Win32.Registry.dll'

转载 作者:行者123 更新时间:2023-12-04 06:31:32 25 4
gpt4 key购买 nike

我使用Windows SDK 10.1.16299.15将UWP项目升级为Fall Creator Update。

当我编译或创建存储包时,我得到:

C:\Users...\Visual Studio 2017\Projects\FileRenamer\Get.the.solution.FileRenamer.App\Get.the.solution.FileRenamer.App.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'Microsoft.Win32.Registry.dll' 3>C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(263,5): Xaml Internal Error error WMC9999: Type universe cannot resolve assembly: Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.



我从未引用过Microsoft.Win32.Registry.dll,所以我认为它是Windows SDK错误?

我在哪里可以报告这样的错误,我该如何解决?

PS:我的Windows机器更新了Fall Creators,Visual Studio也是最新的。

最佳答案

我之前在同一个问题上苦苦挣扎,只是设法通过从解决方案文件夹中删除.vs文件夹来解决此问题。

enter image description here

请注意,此文件夹默认情况下是隐藏的,因此您需要启用“文件资源管理器”中显示隐藏项目的功能。

更新

这是Visual Studio团队提供的解决方法,可以在下一个SDK中发布正确的修补程序。

The Windows team investigated this issue, and like we suspected it was a known issue with the SDK that we already plan to address for the next release (we could not get this into the Fall Creators Update SDK). For now, unfortunately, you will need to make sure that the TargetPlatformMinVersion of all of the projects you have open in the same solution are identical.

关于winapi - XamlCompiler错误WMC1006 : Cannot resolve Assembly or Windows Metadata file 'Microsoft.Win32.Registry.dll' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46828656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com