Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mattias Karlsson
@devlead
@StefanOssendorf currently if it's a specific recipe you could install the Cake.Tool and use CakeExecuteExpression and use the #load / RunTarget, etc. in the expression. So if there was a brilliant recipe for something specific that could be one way to use it as part of your workflow.
Potentially it could be possible to load and compile a recipe, no such bridge created yet though, maybe a good pet project for someone ;)
Stefan Ossendorf
@StefanOssendorf
Thanks @devlead but I saw I an just make my assembly known and get all tasks registered :-D
Another question: Is it possible (in Cake.Frosting) to get the list of tasks to be executed for the current call? I could somewhat use ICakeEngine to get the list of available tasks but that are all tasks found. Not the one which will be run.
Stefan Ossendorf
@StefanOssendorf
My use-case is: I want to define somewhat "agnostic" tasks which can provide to a known interface additional data which are relevant for the Context. E.g. when I run my "publish" task I want to disable the NetAnalyzers via a MSBuild property. Currently I would need to "hard code" the publish-task name in my Buildcontext and compare my target-argument with that and add it to the MSBuild settings I carry for my operations. With some kind of Task-Data-Discovery I could somewhat push that onto the task itself.
I'm ignoring contradicting requirements here on purpose xD
Stefan Ossendorf
@StefanOssendorf
Oh nice. I see each task is carrying a list of tasks they depend on. I'll try that as a hook point to just search the task list for each dependency.
Rich Bryant
@richbryant
Hello. I realize this is probably a very stupid question but does anyone know of an example of using the FileHelpers addin?
I have a Blazor project and need to rewrite the <base href="/"> tag depending on build target.
this code throws a "no overload takes 2 arguments" error.
var FixBlazorHrefDevTask = Task("FixBlazorHrefDev")
    .IsDependentOn(BuildTask)
    .Does(()=> {
            ReplaceRegexInFiles("<base href=\"/\"", devServerEndpoint);
        });
Rich Bryant
@richbryant
cracked it, with thanks to the build script on the Polly project
C. Augusto Proiete
@augustoproiete
@/all We will soon start preparing for the 1.3.0 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
cake-contrib-bot
@cake-contrib-bot
@/all Version 1.3.0 of the Cake has just been released, https://www.nuget.org/packages/Cake.
smadarapu01
@smadarapu01
Hi Can we create rpm packages using cake.net
Gary Ewan Park
@gep13
@smadarapu01 Cake can be used to automate any build related tasks. There might not be a specific alias that can help you do the work, but you can always right the necessary C# to call the required processes to make the build work.
Nils Andresen
@nils-a

@smadarapu01 what you could always do is call StartProcess, so

StartProcess("rpmbuild", "bb /path/to/spec");

should build an rpm, given you have rpmbuild installed and the spec and the contents set up.

Tanner Watson
@tannerwatson
Is there a cake addon that assists with appsettings.json transformation. e.g. replace values based on json path from environment variables?
Gary Ewan Park
@gep13
@tannerwatson I use MagicChunks for this sort of thing, which comes with Cake Aliases for the purposes.
Tanner Watson
@tannerwatson
@gep13 thank you much. That's what i had found and used in the past, but wasn't sure since the project hasn't received much love in some time.
Gary Ewan Park
@gep13
@tannerwatson I have recently been given maintainer rights to that project, with a view to getting it updated, but haven’t found the cycles to get to it yet. It should still be functional though, and it does what it does well.
nawfalhasan
@nawfalhasan
Hello.. Any easy way to read Version from Directory.Build.Props file?
I mean any built-in function in Cake like we ParseAssemblyInfo
Stefan Ossendorf
@StefanOssendorf
Not that I am aware of. I'm using this to configure my MinVer (currently have to replace it with the cake addin):
(String PreReleasePhase, String MinimumVersion) GetVersioningPropertyValues()
{
    var directoryBuildPropsFilePath = GetFiles("../Directory.Build.props").Single().ToString();
    var directoryBuildPropsDocument = System.Xml.Linq.XDocument.Load(directoryBuildPropsFilePath);
    var preReleasePhase = directoryBuildPropsDocument.Descendants("MinVerDefaultPreReleasePhase").Single().Value;
    var minVerMinimumVersion = directoryBuildPropsDocument.Descendants("MinVerMinimumMajorMinor").Single().Value;

    return (preReleasePhase, minVerMinimumVersion);
}
@nawfalhasan
nawfalhasan
@nawfalhasan
Thanks. let me wait for some more time for any built-in approaches.
nawfalhasan
@nawfalhasan
For now I went with XmlPeek(file, @"/Version").
C. Augusto Proiete
@augustoproiete
@/all We will soon start preparing for the 2.0.0-rc0001 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
C. Augusto Proiete
@augustoproiete
@/all Version 2.0.0-rc0001 of the Cake has just been released, https://www.nuget.org/packages/Cake.Tool :cake: :rocket:
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.7.0 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
HinrichAue
@HinrichAue
Hello, I am trying to use XmlPeek on a .propr file. the root nore <Project xmlns="stuff"> has a namespace defined. when I remove it my XPath is working, but when with the namespace it is not. can anyone help me how to do that?
Nils Andresen
@nils-a
@HinrichAue as with all XPath expressions you have to either specify the namespace or use the local-name() function. Have you checked the examples under https://cakebuild.net/api/Cake.Common.Xml/XmlPeekAliases/04FF8EA2 ?
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.7.1 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.7.2 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
Vasilev
@VasilevMaxim
Hi!
I use Cake.Slack. I am following the example with github, but I get the error message "Failed to send message: not_another".
What could this be related to? Thanks!
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.8.0 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.8.1 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
C. Augusto Proiete
@augustoproiete
@/all We will soon start preparing for the 2.0.0-rc0002 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.0.0-rc0002 of Cake has just been released, https://www.nuget.org/packages/Cake.Tool/2.0.0-rc0002 πŸŽ‰
TomasBarta123
@TomasBarta123
Mattias Karlsson
@devlead
@/all We will soon start preparing for the 2.0.0 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.0.0 of Cake has just been released, https://www.nuget.org/packages/Cake.Tool/2.0.0 πŸŽ‰
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.9.0 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
cake-contrib-bot
@cake-contrib-bot
@/all Version 3.0.0 of the Cake for Rider plugin has just been released, this will be available here https://plugins.jetbrains.com/plugin/15729-cake-rider, once the version is reviewed and approved.
Stefan Ossendorf
@StefanOssendorf
Is it intended that cli arguments are casesensitive in cake.frosting? e.g. build.ps1 --Verbosity Diagnostic does not set the verbosity to diagnostic. Only build.ps1 --verbosity Diagnostic sets it to diagnostic.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.9.1 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.9.2 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
cake-contrib-bot
@cake-contrib-bot
@/all Version 3.1.0 of the Cake for Rider plugin has just been released, this will be available here https://plugins.jetbrains.com/plugin/15729-cake-rider, once the version is reviewed and approved.
C. Augusto Proiete
@augustoproiete
@/all We will soon start preparing for the 2.1.0 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.1.0 of Cake has just been released, https://www.nuget.org/packages/Cake.Tool/2.1.0 πŸŽ‰
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.10.0 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.
Mattias Karlsson
@devlead
@/all We will soon start preparing for the 2.2.0 release of Cake. So this is a friendly reminder to pin your Cake version! :pushpin: :cake:
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.2.0 of Cake has just been released, https://www.nuget.org/packages/Cake.Tool/2.2.0 πŸŽ‰
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.11.0 of Cake.Bakery has just been released, this will be available here https://www.nuget.org/packages/Cake.Bakery, once package indexing is complete.