Fody.stamp超时配置

Fody.stamp timeout configuration

我们在一些 .NET 项目中使用 Stamp.Fody 包,它们有时会间歇性地导致构建失败并出现以下错误:Fody: Failed to apply product version to Win32 resources in 1 second. 显然 1 秒是默认超时,如果出现以下情况,它会导致构建失败verpatch 超过该超时。看起来超时也是可配置的:this feature was added to package。问题是你怎么configure/increase超时?

seems您可以通过配置属性设置它。因此,请在您的 FodyWeavers.xml 文件中尝试以下操作:

<?xml version="1.0" encoding="utf-8"?>
<Weavers>
  <Stamp VerPatchWaitTimeoutInMilliseconds="2000" />
</Weavers>