protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     if (context.ScriptArgs.ContainsKey("FailOnDiff"))
     {
         _failOnDiff = bool.Parse(context.ScriptArgs["FailOnDiff"]);
     }
 }
コード例 #2
0
ファイル: BuildScript.cs プロジェクト: yshulin/EasyCaching
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "EasyCaching");
     context.Properties.Set(BuildProps.SolutionFileName, "EasyCaching.sln");
     context.Properties.Set(BuildProps.OutputDir, "output");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #3
0
ファイル: BuildScript.cs プロジェクト: onlymere/FlubuCore
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "FlubuCore");
     context.Properties.Set(BuildProps.BuildDir, "output");
     context.Properties.Set(BuildProps.SolutionFileName, "flubu.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #4
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.CompanyName, "Flubu");
     context.Properties.Set(BuildProps.CompanyCopyright, "Copyright (C) 2010-2016 Flubu");
     context.Properties.Set(BuildProps.ProductId, "FlubuCoreExample");
     context.Properties.Set(BuildProps.ProductName, "FlubuCoreExample");
 }
コード例 #5
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.CompanyName, "Flubu");
     context.Properties.Set(BuildProps.CompanyCopyright, "Copyright (C) 2010-2016 Flubu");
     context.Properties.Set(BuildProps.ProductId, "FlubuExample");
     context.Properties.Set(BuildProps.ProductName, "FlubuExample");
     context.Properties.Set(BuildProps.SolutionFileName, "FlubuExample.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #6
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "Todo");
     context.Properties.Set(BuildProps.ProductName, "Todo");
     //// Adds some default targets like compile etc. Set To None if u don't want default targets.
     context.Properties.Set(BuildProps.DefaultTargets, DefaultTargets.Dotnet);
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
     context.Properties.Set(BuildProps.SolutionFileName, "..\\Todo.sln");
 }
コード例 #7
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.NUnitConsolePath,
                            @"packages\NUnit.ConsoleRunner.3.6.0\tools\nunit3-console.exe");
     context.Properties.Set(BuildProps.ProductId, "FlubuExample");
     context.Properties.Set(BuildProps.ProductName, "FlubuExample");
     context.Properties.Set(BuildProps.SolutionFileName, "FlubuExample.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #8
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.CompanyCopyright, "Copyright (C) 2010-2018 Flubu");
     context.Properties.Set(BuildProps.ProductId, "FlubuCore.Diff");
     context.Properties.Set(BuildProps.ProductName, "FlubuCore.Diff");
     context.Properties.Set(BuildProps.BuildDir, "output");
     context.Properties.Set(BuildProps.SolutionFileName, "FlubuCore.Diff.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #9
0
        protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
        {
            context.Properties.Set(BuildProps.CompanyName, Company);
            context.Properties.Set(BuildProps.CompanyTrademark, "2020");
            context.Properties.Set(BuildProps.ProductId, "LoanStreet.LoanServicing");
            context.Properties.Set(BuildProps.ProductName, "LoanStreet LoanServicing API Client");

            context.Properties.Set(BuildProps.SolutionFileName, SolutionFile);
            context.Properties.Set(BuildProps.Solution, SolutionFile);
        }
コード例 #10
0
        /// <summary>
        /// Gets Visual studio solution information. if <see cref="solutionFileName"/> is not specified solution file name is readed from <see cref="IBuildPropertiesContext"/> property <see cref="BuildProps.SolutionFileName"/>.
        /// </summary>
        /// <param name="context"></param>
        /// <param name="solutionFileName"></param>
        /// <returns></returns>
        public static VSSolution GetVsSolution(this IBuildPropertiesContext context, string solutionFileName = null)
        {
            var taskContext = context as ITaskContext;

            if (taskContext == null)
            {
                return(null);
            }

            return(ContextBaseExtensions.GetVsSolution(taskContext, solutionFileName));
        }
コード例 #11
0
ファイル: BuildScript.cs プロジェクト: xiaodelea/CAP
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "CAP");
     context.Properties.Set(BuildProps.SolutionFileName, "CAP.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, string.IsNullOrEmpty(Configuration) ? "Release" : Configuration);
     //// todo remove casting when new version of flubu is available
     BuildVersion = FetchBuildVersion(context as ITaskContext);
     Console.WriteLine(BuildVersion.Version());
     TestProjectFiles = Glob.Files("./test", "*/*.csproj", GlobOptions.MatchFullPath).Select(x => $"./test/{x}").ToList();
     ProjectFiles     = Glob.Files("./src", "*/*.csproj").Select(x => $"./src/{x}").ToList();
 }
コード例 #12
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.NUnitConsolePath,
                            @"packages\NUnit.ConsoleRunner.3.6.0\tools\nunit3-console.exe");
     context.Properties.Set(BuildProps.ProductId, "FlubuExample");
     context.Properties.Set(DotNetBuildProps.ProductName, "FlubuExample");
     context.Properties.Set(BuildProps.SolutionFileName, "FlubuExample.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
     //// Remove SetDefaultTarget's if u dont't want default targets to be included or if you want to define them by yourself.
     //// Included default target's: clean output(bin, obj), fetch build version from file, generate common assembly info, compile.
     //// compile target depend's on clean output, fetch build version from file and generate common assembly info.
     context.Properties.SetDefaultTargets(DefaultTargets.Dotnet);
 }
コード例 #13
0
 private string NugetPackageName(IBuildPropertiesContext context)
 {
     return($"{ProjectNamespace}.{context.Properties.GetBuildVersionWithQuality().BuildVersionWithQuality(3)}.nupkg");
 }
コード例 #14
0
ファイル: BuildScript.cs プロジェクト: mzorec/NCaller
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "NCaller");
     context.Properties.Set(BuildProps.SolutionFileName, "NCaller.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }
コード例 #15
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
 }
コード例 #16
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.CompanyName, CommonAssemblyInfo.Company);
     context.Properties.Set(BuildProps.CompanyCopyright, CommonAssemblyInfo.Copyright);
     context.Properties.Set(BuildProps.CompanyTrademark, CommonAssemblyInfo.Trademark);
 }
コード例 #17
0
 private void ConfigureClientBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductName, "FlubuExample");
     context.Properties.Set(BuildProps.SolutionFileName, "cdd.v5.client.sln");
 }
コード例 #18
0
 public static FullPath RootDirectory(this IBuildPropertiesContext context)
 {
     return(new FullPath(context.Properties.GetProductRootDir()));
 }
コード例 #19
0
 /// <summary>
 /// Gets all directories matching glob pattern.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="directory"></param>
 /// <param name="globPattern"></param>
 /// <returns></returns>
 public static List <FullPath> GetDirectories(this IBuildPropertiesContext context, string directory, GlobOptions globOptions = GlobOptions.None, params string[] globPattern)
 {
     return(ContextBaseExtensions.GetDirectories(directory, globOptions, globPattern));
 }
コード例 #20
0
 /// <summary>
 /// Gets all files matching glob pattern.
 /// See: https://github.com/kthompson/glob for supported pattern expressions and use cases.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="directory"></param>
 /// <param name="globPattern"></param>
 /// <returns></returns>
 public static List <FileFullPath> GetFiles(this IBuildPropertiesContext context, string directory, params string[] globPattern)
 {
     return(ContextBaseExtensions.GetFiles(directory, globPattern));
 }
コード例 #21
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.SolutionFileName, "Todo");
 }
コード例 #22
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.BuildDir, "output");
 }
コード例 #23
0
ファイル: BuildScript.cs プロジェクト: mzorec/TestBed
        } = "Release";                                              // Debug or Release

        protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
        {
            context.Properties.Set(BuildProps.ProductId, "ConsoleApp1");
            context.Properties.Set(BuildProps.ProductName, "ConsoleApp1");
        }
コード例 #24
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.FlubuWebApiBaseUrl, "http://localhost:5000/");
 }
コード例 #25
0
 protected abstract void ConfigureBuildProperties(IBuildPropertiesContext context);
コード例 #26
0
 protected virtual void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
 }
コード例 #27
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.SolutionFileName, "CAP.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, string.IsNullOrEmpty(Configuration) ? "Release" : Configuration);
 }
コード例 #28
0
 protected override void ConfigureBuildProperties(IBuildPropertiesContext context)
 {
     context.Properties.Set(BuildProps.ProductId, "FlubuCore.Teams");
     context.Properties.Set(BuildProps.SolutionFileName, "FlubuCore.TeamsPlugin.sln");
     context.Properties.Set(BuildProps.BuildConfiguration, "Release");
 }