public UWP() { TargetHelper.Target("Default", FSharpFunc.FromAction(() => { Console.WriteLine("Android"); })); }
public iOS() { TargetHelper.Target("Default", FSharpFunc.FromAction(() => { Console.WriteLine("iOS"); })); }
public Windows() { Target("setup", FSharpFunc.FromAction(() => { Clear(); GitLfs(this.Args); NugetRestore(ConfigHelper.Instance.SlnPath); })); Target("build", FSharpFunc.FromAction(() => { AddDirective(this.Args); BuildProject(ConfigHelper.Instance.SlnPath, this.configuration, this.platform); })); Target("buildcsproj", FSharpFunc.FromAction(() => { AddDirective(this.Args); BuildProject(ConfigHelper.Instance.CsprojPath, this.configuration, this.platform); })); Target("test", FSharpFunc.FromAction(() => { RunTest(); })); Target("upload", FSharpFunc.FromAction(() => { GenerateArtifacts(); ZipAndUploadToTeamCity(); })); //dependency("Build", "Clean"); }
public void FromAction() { int a = 0; FSharpFunc <Unit, Unit> ff = FSharpFunc.FromAction(() => a = 1); ff.Invoke(null); Assert.AreEqual(1, a); }
public WindowsInstaller() { Target("new", FSharpFunc.FromAction(() => { GenerateInstaller(this.Args); GenerateArtifacts(); })); Target("uploadInstaller", FSharpFunc.FromAction(() => { UploadToTeamCity(); })); //dependency("Build", "Clean"); }