Steps:
- Install this version of Mono (You can use the current version. I've just tested it with the version linked).
- Clone this gist.
cd
into the cloned directory.- Download nuget.exe and put it in the same directory.
- Run
sh ./build.sh
. HelloWorld/HelloWorld.exe
should be generated.- Now you should be able to run
mono HelloWorld/HelloWorld.exe --batchsize 10
[Loading /private/tmp/2018-08-10/79fb627e79f6a50e09e6-7bc722f085dc2ef81fd42d19efc92d160f7832c2/build.fsx]
System.Exception: Target "HelloWorld.exe" is not defined.
at Fake.TargetHelper+getTarget@77-2.Invoke (System.String message) [0x00001] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv
1[TResult].Finalize () [0x00012] in <5584aad2904cf4daa7450383d2aa8455>:0 at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc
2[T,TResult] env, A a) [0x00038] in <5584aad2904cf4daa7450383d2aa8455>:0at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5584aad2904cf4daa7450383d2aa8455>:0
at Fake.TargetHelper.getTarget (System.String name) [0x000c3] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at Fake.TargetHelper.determineBuildOrder (System.String target) [0x00001] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at Fake.TargetHelper.run$cont@499 (System.String targetName, Microsoft.FSharp.Core.Unit unitVar) [0x00072] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at Fake.TargetHelper.run (System.String targetName) [0x00011] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at Fake.AdditionalSyntax.RunTargetOrDefault (System.String defaultTarget) [0x00021] in <55deb2c7ccf1c534a7450383c7b2de55>:0
at <StartupCode$FSI_0001>.$FSI_0001_Build$fsx.main@ () [0x0008f] in <4933c6e754d9463e9b1371580ca7f81c>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0
Stopped due to error