Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:03
  • 07:14
    765643729 starred cake-build/cake
  • Sep 22 13:59
    BigDream324 starred cake-build/cake
  • Sep 21 23:03
    Build #6571 passed
  • Sep 21 23:01
    mandalorianbob commented #3462
  • Sep 21 22:56
    devlead synchronize #3470
  • Sep 21 22:48
    devlead synchronize #3470
  • Sep 21 22:45
    devlead synchronize #3470
  • Sep 21 21:46
    devlead synchronize #3470
  • Sep 21 21:30
    augustoproiete closed #3471
  • Sep 21 21:30
    augustoproiete locked #3471
  • Sep 21 21:29
    augustoproiete reopened #3471
  • Sep 21 21:29
    okamilobo opened #3471
  • Sep 21 20:24
    augustoproiete review_requested #3470
  • Sep 21 20:08
    devlead opened #3470
  • Sep 21 19:57
    devlead milestoned #3469
  • Sep 21 19:57
    devlead labeled #3469
  • Sep 21 19:57
    devlead assigned #3469
  • Sep 21 19:57
    devlead opened #3469
  • Sep 21 16:24
    Build #6566 passed
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.6.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.
Miha Markič
@MihaMarkic
any idea why would IProcess.GetStandardOutput() return me stuff like "Cake.Core.IO.ProcessWrapper+<GetStandardOutput>d_15"?
Miha Markič
@MihaMarkic
Sample call:
var process = RunProcess(settings, some_arguments, new ProcessSettings { RedirectStandardError = false, RedirectStandardOutput = true });
process.WaitForExit();
ProcessExitCode(process.GetExitCode());
return process.GetStandardOutput();
Miha Markič
@MihaMarkic
could it be because tool is calling flutter.bat which in turn does dynamic output (like animates it)
Mattias Karlsson
@devlead
When you enumerate it? Or are you just just doing a to string on it?
IEnumerable<string> GetStandardOutput() so you'll either need to enumerate over it or do something like string.Concat/Join
Miha Markič
@MihaMarkic
foreach (string line in result) yields those (result is IEnumerable<string>)
Mattias Karlsson
@devlead
Interesting, does it give same if you enumerate it first before return i.e. process.GetStandardOutput(). ToArray()
Miha Markič
@MihaMarkic
yes
Nick
@nick5454
anyone know how to do "npm run build {path}" using the Cake.Npm package?
Nils Andresen
@nils-a

@nick5454 your best chance would be to ask that in GitHub discussions, as we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.

We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions

Fran Hoey
@franhoey
Hello all. It's my first time using the MSDeploy extension (previously I've used the WebDeploy extension). I cant see how to set the IIS Website Name? The example seem to add this in SetParams (https://cakebuild.net/api/Cake.MsDeploy/MsDeployAliases/9E409496), but that gives me an error "Source does not support parameter called 'IIS Web Application Name'. Must be one of ().". Can anyone guide me?
Nils Andresen
@nils-a

@franhoey your best chance would be to ask that in GitHub discussions, as we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.

We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions

ElangoRajendran
@ElangoRajendran
I need to post the comments on the GitHub Pull request page using Curl. Also, the action should be performed in the build.cake file. I have a curl command for posting the comment on the pull request page,
This is the command,
curl -H "Authorization: Token 6XXXXXXXa" -X POST -d "{ \"body\": \"My comments \" }" "https://api.github.com/repos/username/reponame/issues/pullrequestnumber/comments"
My question is how we can get the curl.exe in build.cake file and how to use this command in build.cake file?
Could you suggest a solution for this?
Nils Andresen
@nils-a

@ElangoRajendran your best chance would be to ask that in GitHub discussions, as we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.

We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions

Dieter Verfaillie
@dieterv
@nils-a maybe the prominent "open chat" link on gitversion.net should be redirected to GitHub discussions instead of leading people here
whoops, wrong channel, sorry
C. Augusto Proiete
@augustoproiete
@dieterv I'm not sure I follow. GitVersion and Cake are two completely separate projects. The "open chat" link on gitversion.net opens the Gitter channel for GitVersion (not for Cake).

@/all NuGet packages in the NuGet Gallery ( https://nuget.org ) now have a new Cake tab with instructions on how to use NuGet packages :tada: :rocket:

Here is a :tv: walkthrough of the new Cake tab in the NuGet Gallery and the different behaviors depending on the kind of NuGet package you're looking to use with Cake https://www.youtube.com/watch?v=ynI9ZnEYD6s

Also a few examples:

cake-contrib-bot
@cake-contrib-bot
@/all Version 0.3.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.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.3.1 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.
Denis Ivanov
@denis-ivanov

Hi,

I faced with the following problem and don't know how to solve it

#addin "nuget:?package=Cake.WebDeploy&version=1.0.0"

Error: Cake.Core.CakeException: Failed to install addin 'Cake.WebDeploy'.
   at Cake.Core.Scripting.ScriptProcessor.InstallAddins(IReadOnlyCollection`1 addins, DirectoryPath installPath) in C:\projects\cake\src\Cake.Core\Scripting\ScriptProcessor.cs:line 109
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath) in C:\projects\cake\src\Cake.Core\Scripting\ScriptRunner.cs:line 106
   at Cake.Features.Building.BuildFeature.RunCore(IRemainingArguments arguments, BuildFeatureSettings settings) in C:\projects\cake\src\Cake\Features\Building\BuildFeature.cs:line 99
   at Cake.Features.Building.BuildFeature.Run(IRemainingArguments arguments, BuildFeatureSettings settings) in C:\projects\cake\src\Cake\Features\Building\BuildFeature.cs:line 49
   at Cake.Commands.DefaultCommand.Execute(CommandContext context, DefaultCommandSettings settings) in C:\projects\cake\src\Cake\Commands\DefaultCommand.cs:line 72

Is there any solution?

Nils Andresen
@nils-a

@denis-ivanov your best chance would be to ask that in GitHub discussions, as we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.

We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions

Caleb Throwaway
@ThrowawayCaleb_twitter
Hey I’m looking for a dev for a BSC token. Would be fun and it has a good cause at the heart of the project. I can show you the concept and branding if anyone is Interested. :)
mmdqq
@mmdqq
The cake.gradle source code on github, why is there an error, does anyone know how to solve it?
image.png
Nils Andresen
@nils-a
@mmdqq in the first statement the error you are seing is Could not find script build.cake that't because there is no file named build.cake in the root folder of the project. You could use the build.ps1 or build.sh to build. Alternatively you could specify the name of the Cake file explicitly like dotnet cake recipe.cake - be sure to dotnet tool restore before doing that, so you are calling cake in the right version. I'd suggest to stick to the prepared scripts (i.e. build.ps1/build.sh) to build the project.
As to the second error - that probably fails because you did not build the project beforehand. The demo relies on the current version of Cake.Gradle.dll be present in the BuildArtifacts folder.
mmdqq
@mmdqq
@nils-a Thank you very much. I just got in touch with Cake and gradle. Please tell me if I want to execute gradle tasks through code in the MVC controller instead of manually entering commands. What should I do?
Nils Andresen
@nils-a
Could you elaborate a bit? "..code in the MVC controller" sounds like you are trying to build a WebApplication. Cake is a build automation system, see https://cakebuild.net/
mmdqq
@mmdqq
I want to execute the gradle task by clicking the button on the webpage to compile the Android project
image.png
@nils-a I don’t know how to call the FlutterBuildApk method in the MVC controller, because I can’t provide context
Nils Andresen
@nils-a
Yes, Cake is not intended to be used that way. I'm really not sure whether someone has already done something like it. I'd suggest you take a look at Cake.Frosting https://cakebuild.net/docs/running-builds/runners/cake-frosting - I think you'd have a better chance to incorporate that into a running application.
mmdqq
@mmdqq
@nils-a Ok thank you very much
Pascal Berger
@pascalberger
@mmdqq Have a look at Cake Bridge which makes Cake.Core/Common and addins available https://github.com/devlead/Cake.Bridge (Frosting is a console application host. in your case your application should be the host)
Nils Andresen
@nils-a
@pascalberger +1 Should have thought of that.
mmdqq
@mmdqq
      @pascalberger Thank you very much, I'm going to see it now
mmdqq
@mmdqq
How to run build.cake by C# in Frosting
Gary Ewan Park
@gep13
@mmdqq If you are using Cake Frosting, then you won't be using a build.cake file
mmdqq
@mmdqq
@gep13 I 'm trying
Gary Ewan Park
@gep13
@mmdqq I am not sure if I follow what you are saying
mmdqq
@mmdqq
Maybe add a utility to the forsting project to automatically read the build.cake file in the root directory is necessary
Gary Ewan Park
@gep13
Cake Scripting and Cake Frosting are two completely different things. While they use the same Cake Engine, they don’t have the same entry points. In theory, work could be done to parse the build.cake file and convert to a Frosting project, but I am not sure how much benefit this would serve.
mmdqq
@mmdqq
Is there any way to introduce cake.gradle into Forting? I just want to execute "gradle build" through C#
mmdqq
@mmdqq
image.png
this my build.cake file ,it's run well throuth command"dotnet cake --target=build"
but how to throuth C# to excute task "build"?
Nils Andresen
@nils-a
@mmdqq If you "only" want to execute "gradle build" from c#, I would really recommend using https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=net-5.0#System_Diagnostics_Process_Start_System_String_System_String_ From my point of view Cake and Gradle are two solutions of the very same problem. I would not want to inroduce Cake in a project simply to call gradle. I feel calling Gradle by using Process.Start() is the much better option here. (In the end, this is what Cake does, too.)
mmdqq
@mmdqq
@nils-a Thank you i get it