We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238b6b6 commit 9674695Copy full SHA for 9674695
src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs
@@ -64,6 +64,9 @@ public override bool Execute()
64
65
if (benchmarkMethodsImplAdjusted)
66
{
67
+ // Write to a null stream before overwriting the original file in case an exception occurs during the write (like unsupported platform).
68
+ // https://github.com/Washi1337/AsmResolver/issues/640
69
+ module.Write(Stream.Null);
70
module.Write(TargetAssembly);
71
}
72
0 commit comments