gpt4 book ai didi

c# - UWP : PRI277: 0xdef00532 - Conflicting values for resource ''

转载 作者:太空狗 更新时间:2023-10-29 23:20:08 28 4
gpt4 key购买 nike

作为 Visual Studio 2017 UWP 构建过程的一部分,运行名为 MakePri.exe 的应用。它在我的项目中抛出一个错误,但我不知道为什么。命令行调用是:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\MakePri.exe New -ProjectRoot C:\AdaptSource\src\Xivic\Adapt.Presentation.XamarinForms\Adapt.Presentation.Xivic.UWP\ -ConfigXml obj\x86\Debug\priconfig.xml -OutputFile C:\AdaptSource\src\Xivic\Adapt.Presentation.XamarinForms\Adapt.Presentation.Xivic.UWP\bin\x86\Debug\resources.pri -IndexName AdaptSolutionsPty.Ltd.Xivic-Helpdesk -Verbose -Overwrite

它返回的错误是:

error PRI175 : 0x80073b0f - Processing Resources failed with error : Duplicate Entry.

GENERATEPROJECTPRIFILE : error PRI277: 0xdef00532 - Conflicting values for resource ''

我不知道它在说什么。错误消息中没有有用的信息。筛选了大量谷歌结果后,我发现当引用的 .NET Standard/PCL 项目中存在对某些或重复 DLL 的引用时,问题似乎出现了。

例如: https://forums.xamarin.com/discussion/103956/strange-build-error-xamarin-uwp

UWP unit test compile errors

但在其他线程中,至少人们正在获得一个资源名称来使用。我已经删除了尽可能多的引用资料。我已经使用 resharper 来提供帮助。我真的需要从 MakePri 中获取有用的错误消息。 有人知道这件事吗?有没有办法查看它遇到了什么问题?

编辑: 问题是我的解决方案使用了两个版本的 Xamarin.Forms。一旦我整合了 NuGet 包,问题就消失了。但是,我觉得这是一个错误,因为错误消息应该更具描述性。它浪费了很多时间。所以,我在这里记录了这个问题: https://github.com/dotnet/buildtools/issues/1912在 Microsoft 做出某种回应之前,我将保持开放状态。

最佳答案

合并所有依赖项项目的 Xamarin.Forms 和 Microsoft.NETCore.UniversalWindowsPlatform 版本将解决该问题。这主要是由于 Xamarin.Forms 最新的稳定版本需要更高版本的 Microsoft.NETCore.UniversalWindowsPlatform nuget 即(6.0.1)。

关于c# - UWP : PRI277: 0xdef00532 - Conflicting values for resource '' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48777283/

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