Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Fody:发生了未处理的异常_C#_Assemblies_Fody Costura - Fatal编程技术网

C# Fody:发生了未处理的异常

C# Fody:发生了未处理的异常,c#,assemblies,fody-costura,C#,Assemblies,Fody Costura,我在尝试构建项目时突然遇到了一个异常。看来Mono.Cecil有点事要做。但是我在我的项目中没有使用Mono Fehler 13 Fody:发生未处理的异常:异常:死亡日期I 订单组件“Mono.Cecil,版本=0.9.6.0,区域性=中性, PublicKeyToken=0738eb9f132ed756“以满足davon wurde的要求 尼希特·格芬登。模具gefundene安装支架 不,我不知道。(Ausnahme von HRESULT: 0x8013100)StackTrace:be

我在尝试构建项目时突然遇到了一个异常。看来Mono.Cecil有点事要做。但是我在我的项目中没有使用Mono

Fehler 13 Fody:发生未处理的异常:异常:死亡日期I 订单组件“Mono.Cecil,版本=0.9.6.0,区域性=中性, PublicKeyToken=0738eb9f132ed756“以满足davon wurde的要求 尼希特·格芬登。模具gefundene安装支架 不,我不知道。(Ausnahme von HRESULT: 0x8013100)StackTrace:bei System.Signature.GetSignature(无效* pCorSig、Int32 cCorSig、RuntimeFieldHandleInternal字段句柄、, IRuntimeMethodInfo方法句柄,运行时类型declaringType)bei System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()bei System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()bei System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy()
bei System.Reflection.RuntimePropertyInfo.GetIndexParameters()bei System.RuntimeType.GetPropertyCandidates(字符串名称,BindingFlags bindingAttr,类型[]类型,布尔allowPrefixLookup)bei System.RuntimeType.GetPropertyImpl(字符串名称,BindingFlags bindingAttr,Binder Binder,类型returnType,类型[]类型, ParameterModifier[]修饰符)bei System.Type.GetProperty(字符串 名称,BindingFlags bindingAttr,Binder Binder,类型returnType,类型[] 类型、参数修改器[]修饰符)bei PropertyDelegateBuilder.BuildPropertySetDelegate[T](类型,字符串 属性名称)中的 c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\DelegateBuilders\PropertyDelegateBuilder.cs:Zeile 9bei DelegateBuilder.BuildDelegateHolder(类型为weaverType)位于c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\DelegateBuilder\DelegateBuilder.cs:Zeile中 25bei DelegateBuilder.GetDelegateHolderFromCache(类型weaverType)位于 c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\DelegateBuilders\DelegateBuilder.cs:Zeile 16bei InnerWeaver.c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\InnerWeaver.cs:Zeile中的InitialiseWeaver(列出'1个weaverInstances 65c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\InnerWeaver.cs:Zeile中的bei InnerWeaver.Execute() 30来源:mscorlib TargetSite:Void GetSignature(Void*,Int32,System.RuntimeFieldHandleInternal,System.IRuntimeMethodInfo, System.RuntimeType)


有什么想法吗?我已经尝试重新安装Costura.Fody软件包。

这里有完全相同的问题

它在上周正常工作,我们没有改变任何东西,现在是Costura。Fody似乎在寻找Mono.Cecil 0.9.6.0,但我只能在packages文件夹中找到0.9.5.0

我试着把Costura.Fody降到1.3.3.0,把Fody降到1.26.1,但我仍然有同样的问题

你可以在这里看到其他人也有这个问题:
尝试为您的项目更新Costura.Fody软件包。对我来说已经足够了。

我通过执行

安装程序包Costura.Fody-版本1.3.3.0


在Package Manager控制台中。

Costura.Fody 1.4.1解决了该问题

安装程序包Costura.Fody-版本1.4.1


这里有积分

当我将Fody package()更新到3.1.4版本时,它得到了修复

我进入了nuget文件夹,例如C://.nuget\packages\cauldron.interception.Fody\3.2.3\netclassicweaver\cauldron.interception.Fody.dll

删除了这个cauldron.interception.fody文件夹


然后现在它开始从坩埚中获取价值。andf随后构建成功。

您找到了可与Costura.Fody相比的替代方案吗?@ThomasHahn不幸的是,没有,但Costura现在已在今天上午发布的1.3.5版中修复。是的,我们通过将所有项目中的软件包更新为通用版本解决了这个问题。我想主要问题是由于项目中的Fody版本不匹配造成的。