Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
I am attempting to use CakeFrosting
I deleted the build folder because I didn't think I needed it
C. Augusto Proiete
@augustoproiete
@ahives Could you create a new Q&A discussion on https://github.com/cake-build/cake/discussions with repro steps?
Albert Hives
@ahives
k
Albert Hives
@ahives
Hi, I want to include Cake.MicrosoftTeams in a Cake Frosting app. How do I do this?
Mattias Karlsson
@devlead
You add it as a regular project package reference. A frosting app essentially is a .NET console application.
Then you'll be able to use its aliases on your frosting cake context. Given you'll imported right using statements. ( Cake.MicrosoftTeams)
Sean Farrow
@SeanFarrow
Are there any cake add-ins does allow me to take an open API specification file and create the equivalent C sharp controllers?
Pascal Berger
@pascalberger
@SeanFarrow There are several. Search for openapi here https://cakebuild.net/extensions/