Ejemplo n.º 1
0
 public UWP()
 {
     TargetHelper.Target("Default", FSharpFunc.FromAction(() =>
     {
         Console.WriteLine("Android");
     }));
 }
Ejemplo n.º 2
0
 public iOS()
 {
     TargetHelper.Target("Default", FSharpFunc.FromAction(() =>
     {
         Console.WriteLine("iOS");
     }));
 }
Ejemplo n.º 3
0
        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");
        }
Ejemplo n.º 4
0
        public void FromAction()
        {
            int a = 0;
            FSharpFunc <Unit, Unit> ff = FSharpFunc.FromAction(() => a = 1);

            ff.Invoke(null);
            Assert.AreEqual(1, a);
        }
Ejemplo n.º 5
0
        public WindowsInstaller()
        {
            Target("new", FSharpFunc.FromAction(() =>
            {
                GenerateInstaller(this.Args);
                GenerateArtifacts();
            }));

            Target("uploadInstaller", FSharpFunc.FromAction(() =>
            {
                UploadToTeamCity();
            }));

            //dependency("Build", "Clean");
        }