Skip to content

Commit 04348b3

Browse files
Fix targetNet40 check in CompileVB
1 parent 575f66e commit 04348b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ICSharpCode.Decompiler.Tests/Helpers/Tester.VB.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static async Task<CompilerResults> CompileVB(string sourceFileName, Compi
4646
CompilerResults results = new CompilerResults();
4747
results.PathToAssembly = outputFileName;
4848

49-
bool targetNet40 = (flags & CompilerOptions.TargetNet40) == 0;
49+
bool targetNet40 = (flags & CompilerOptions.TargetNet40) != 0;
5050

5151
var (roslynVersion, languageVersion, targetFramework) = (flags & CompilerOptions.UseRoslynMask) switch {
5252
0 => ("legacy", "11", null),

0 commit comments

Comments
 (0)