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

时间:2016-12-09 10:07:16

标签: android visual-studio xamarin xamarin.android

当我在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           

1 个答案:

答案 0 :(得分:2)

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

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

相关问题