Skip to content

Commit 41b7094

Browse files
authored
Fix1009: xUnit VB.NET generates code with async warning (#1012)
* Add error code to the list of codes to be ignored. * CHANGELOG
1 parent 2ec36ac commit 41b7094

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## Improvements:
44

55
## Bug fixes:
6+
* Fix: xUnit VB.NET generates code with async warning (#1009)
67

7-
*Contributors of this release (in alphabetical order):*
8+
*Contributors of this release (in alphabetical order):* @clrudolphi
89

910
# v3.3.2 - 2026-01-14
1011

Reqnroll.Generator/CodeDom/CodeDomHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public CodeStatement GetDisableWarningsPragma()
108108
case CodeDomProviderLanguage.CSharp:
109109
return new CodeSnippetStatement("#pragma warning disable");
110110
case CodeDomProviderLanguage.VB:
111-
return new CodeSnippetStatement("#Disable Warning BC42356"); //in VB warning codes must be listed explicitly
111+
return new CodeSnippetStatement("#Disable Warning BC42356,BC42358"); //in VB warning codes must be listed explicitly
112112
}
113113
return new CodeCommentStatement("#pragma warning disable");
114114
}

0 commit comments

Comments
 (0)