Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:59
    augustoproiete commented #2965
  • 15:34
    FrBillyD starred cake-build/cake
  • 15:31
    Edord99 commented #2965
  • 15:30
    Edord99 starred cake-build/cake
  • 12:47
    Mondonno starred cake-build/cake
  • 11:25
    treecko16 starred cake-build/cake
  • 08:30
    ShloEmi starred cake-build/cake
  • 04:19
    Build #935 passed
  • Jul 26 12:46
    laurentksh starred cake-build/cake
  • Jul 26 04:18
    Build #934 passed
  • Jul 26 04:17
    Build #933 passed
  • Jul 26 01:45
    augustoproiete unlabeled #3388
  • Jul 26 00:02
    Build #6497 passed
  • Jul 25 23:56
    Build #1013 passed
  • Jul 25 23:56
    Build #2803 passed
  • Jul 25 23:41
    augustoproiete commented #3388
  • Jul 25 23:41
    augustoproiete demilestoned #2690
  • Jul 25 23:41
    augustoproiete milestoned #2690
  • Jul 25 23:41

    augustoproiete on develop

    Added Arguments() method to ret… Using CakeArguments. Moved impl… Merge branch 'develop' into fea… and 1 more (compare)

  • Jul 25 23:41
    augustoproiete closed #3388
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
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.6.4 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
A question about ILog and process output: I have this issue from an user cake-contrib/Cake.AppCenter#22
He basically wants that I redirect process output (from the runner) to Cake's ILog. Is this something that makes sense?
Miha Markič
@MihaMarkic
^^^^ @patriksvensson @devlead @gep13
CharliePoole
@CharliePoole
I'm running under VS 16.9.4 and using Cake 0.37.0. A new collaborator is running 16.9.5 and is getting the infamous "MSBUILD: Could not locate executable" error. So... (1) is this a known thing? and (2) any suggestions? Should I upgrade both VS and Cake? Do I need to locate msbuild.exe programmatically in my script in order to support multiple VS builds?
Whoops... just got new info. My collaborator had the same issue with 16.9.4 and upgraded to try to fix it. :-(
C. Augusto Proiete
@augustoproiete
@CharliePoole Not a known issue. Could you post on GitHub discussions with details (i.e. output of a diagnostic run)? https://github.com/cake-build/cake/discussions
mmdqq
@mmdqq
When the first task is over, when I execute the task through the script host again, an exception is thrown
The program is running in debug mode and there is no specific error message, can anyone help me?
mmdqq
@mmdqq
image.png
Mattias Karlsson
@devlead
Task(task) creates a new task RunTarget(task) executes a task.
https://cakebuild.net/docs/writing-builds/running-targets
mmdqq
@mmdqq
@devlead Is there a way to clear the tasks that have been added?
cake-contrib-bot
@cake-contrib-bot
@/all Version 1.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.
Albert Hives
@ahives
Hi, does anyone have sample code to show pushing a package to a NuGet server?
Albert Hives
@ahives
🙏🏾 sir
Albert Hives
@ahives
hi, I am keep getting the following error
MSBUILD : error MSB1009: Project file does not exist. Switch: build/Build.csproj