gpt4 book ai didi

android - 在 Visual Studio 中构建 Xamarin.Android 时出现 GetAdditionalResourcesFromAssemblies 错误

转载 作者:搜寻专家 更新时间:2023-11-01 09:38:58 24 4
gpt4 key购买 nike

当我在 Visual Studio 中构建我的 Xamarin.Android 项目时,出现以下错误。奇怪的是它在 2 天前工作,但从那以后我没有更改任何代码。

关于如何修复它的任何想法?

Severity    Code    Description Project File    Line    Suppression State
Error The "GetAdditionalResourcesFromAssemblies" task could not be instantiated from "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
at System.Security.Cryptography.MD5.Create()
at Xamarin.Android.Tasks.GetAdditionalResourcesFromAssemblies..ctor() 2_MFOMobile.Droid


Severity Code Description Project File Line Suppression State
Error The "GetAdditionalResourcesFromAssemblies" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. 2_MFOMobile.Droid

最佳答案

这与联邦信息处理标准 (FIPS) 有关。如果可能,您可以通过转到管理工具|禁用 FIPS。本地安全政策 |地方警察 |安全选项 |系统加密:使用 FIPS。将设置更改为已禁用。

请注意,如果您的 PC 是 Windows 域的一部分,则可能有一个组策略会在您每次重新启动 PC 时重新启用此设置。

关于android - 在 Visual Studio 中构建 Xamarin.Android 时出现 GetAdditionalResourcesFromAssemblies 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41057839/

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