Skip to content

Commit c42504f

Browse files
committed
[tests] Adjust the BGen.ResponseFile test for .NET.
1 parent 3d0df6c commit c42504f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/generator/GeneratorTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using Xamarin;
77
using Xamarin.Tests;
8+
using Xamarin.Utils;
89

910
namespace GeneratorTests
1011
{
@@ -18,7 +19,11 @@ public void ResponseFile ()
1819
var bgen = new BGenTool ();
1920
bgen.CreateTemporaryBinding ("");
2021
bgen.ResponseFile = Path.Combine (Cache.CreateTemporaryDirectory (), "rspfile");
22+
#if NET
23+
File.WriteAllLines (bgen.ResponseFile, new string [] { $"--target-framework:{TargetFramework.DotNet_6_0_iOS_String}" });
24+
#else
2125
File.WriteAllLines (bgen.ResponseFile, new string [] { "--target-framework:Xamarin.iOS,v1.0" });
26+
#endif
2227
bgen.AssertExecute ("response file");
2328
bgen.AssertNoWarnings ();
2429
}

0 commit comments

Comments
 (0)