Search code examples
.net.net-4.5fody

Fody.stamp timeout configuration


We using Stamp.Fody package in some of our .NET projects and they sometimes intermittently fail Build with the following error: Fody: Failed to apply product version to Win32 resources in 1 second. Apparently 1 second is a default timeout and it causes Build to fail if verpatch exceeds that timeout. Looks like that timeout is also configurable : this feature was added to package. The question is how do you configure/increase timeout?


Solution

  • It seems that you can set this through the config attributes. So, try the following in your FodyWeavers.xml file:

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