File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . Generic ;
23using System . IO ;
4+ using System . Linq ;
35
46using NUnit . Framework ;
57
@@ -19,11 +21,20 @@ public void ResponseFile ()
1921 var bgen = new BGenTool ( ) ;
2022 bgen . CreateTemporaryBinding ( "" ) ;
2123 bgen . ResponseFile = Path . Combine ( Cache . CreateTemporaryDirectory ( ) , "rspfile" ) ;
24+
25+ var arguments = new List < string > ( ) ;
2226#if NET
23- File . WriteAllLines ( bgen . ResponseFile , new string [ ] { $ "--target-framework:{ TargetFramework . DotNet_6_0_iOS_String } " } ) ;
27+ var targetFramework = TargetFramework . DotNet_6_0_iOS_String ;
28+ var tf = TargetFramework . Parse ( targetFramework ) ;
29+ arguments . Add ( $ "--baselib={ Configuration . GetBaseLibrary ( tf ) } ") ;
30+ arguments . Add ( $ "--attributelib={ Configuration . GetBindingAttributePath ( tf ) } ") ;
31+ arguments . AddRange ( Directory . GetFiles ( Configuration . DotNet6BclDir , "*.dll" ) . Select ( v => $ "-r:{ v } ") ) ;
2432#else
25- File . WriteAllLines ( bgen . ResponseFile , new string [ ] { "--target-framework: Xamarin.iOS,v1.0" } ) ;
33+ var targetFramework = " Xamarin.iOS,v1.0";
2634#endif
35+ arguments . Add ( $ "--target-framework={ targetFramework } ") ;
36+
37+ File . WriteAllLines ( bgen . ResponseFile , arguments . ToArray ( ) ) ;
2738 bgen . AssertExecute ( "response file" ) ;
2839 bgen . AssertNoWarnings ( ) ;
2940 }
You can’t perform that action at this time.
0 commit comments