protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { if (context.ScriptArgs.ContainsKey("FailOnDiff")) { _failOnDiff = bool.Parse(context.ScriptArgs["FailOnDiff"]); } }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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); }
/// <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)); }
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(); }
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); }
private string NugetPackageName(IBuildPropertiesContext context) { return($"{ProjectNamespace}.{context.Properties.GetBuildVersionWithQuality().BuildVersionWithQuality(3)}.nupkg"); }
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"); }
protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { }
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); }
private void ConfigureClientBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.ProductName, "FlubuExample"); context.Properties.Set(BuildProps.SolutionFileName, "cdd.v5.client.sln"); }
public static FullPath RootDirectory(this IBuildPropertiesContext context) { return(new FullPath(context.Properties.GetProductRootDir())); }
/// <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)); }
/// <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)); }
protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.SolutionFileName, "Todo"); }
protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.BuildDir, "output"); }
} = "Release"; // Debug or Release protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.ProductId, "ConsoleApp1"); context.Properties.Set(BuildProps.ProductName, "ConsoleApp1"); }
protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.FlubuWebApiBaseUrl, "http://localhost:5000/"); }
protected abstract void ConfigureBuildProperties(IBuildPropertiesContext context);
protected virtual void ConfigureBuildProperties(IBuildPropertiesContext context) { }
protected override void ConfigureBuildProperties(IBuildPropertiesContext context) { context.Properties.Set(BuildProps.SolutionFileName, "CAP.sln"); context.Properties.Set(BuildProps.BuildConfiguration, string.IsNullOrEmpty(Configuration) ? "Release" : Configuration); }
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"); }