Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 26 11:39
    gliaskos starred cake-build/cake
  • Sep 26 05:57
    Build #6573 passed
  • Sep 26 05:51
    Build #1036 passed
  • Sep 26 05:51
    Build #2824 passed
  • Sep 26 05:37
    gep13 commented #3474
  • Sep 26 05:36

    gep13 on develop

    Disable NETSDK1138 warning ('ne… Merge pull request #3474 from a… (compare)

  • Sep 26 05:36
    gep13 closed #3474
  • Sep 26 05:36
    gep13 closed #3473
  • Sep 26 00:55
    Build #6572 passed
  • Sep 26 00:49
    augustoproiete opened #3474
  • Sep 26 00:48
    augustoproiete assigned #3473
  • Sep 26 00:48
    augustoproiete milestoned #3473
  • Sep 26 00:48
    augustoproiete labeled #3473
  • Sep 26 00:48
    augustoproiete opened #3473
  • Sep 25 20:55
    hackuna starred cake-build/cake
  • Sep 24 13:25
    Build #122 passed
  • Sep 24 13:07
    Build #121 passed
  • Sep 24 09:36
    nobiit starred cake-build/cake
  • Sep 24 08:25
    mxjones starred cake-build/cake
  • Sep 24 07:09
    rafaelfesi starred cake-build/cake
CharliePoole
@CharliePoole
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/
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.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.
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.0.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.
cake-contrib-bot
@cake-contrib-bot
@/all Version 2.0.2 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.
Raposinha
@jonesambrosi
Hi. I'm having problems generating a project with the cake. When my program is compiled by VS, the problem does not occur. With the cake, it happens that the resx is not generated, or the culture is not going as invariant, causing the DLL program to not get these resources. Is there any parameter that I might not be passing to the cake?
5 replies
Mattias Karlsson
@devlead
@/all We will soon start preparing for the 1.2.0 release of Cake. So this is a friendly reminder to pin your Cake version.
Mattias Karlsson
@devlead
CharliePoole
@CharliePoole
Looking for suggestions... I'd like to verify in my script that my api keys are all correct before I use any of them. IOW, I don't want a NuGet push to succeed and then have my Chocolatey push fail.
My worst-case scripts use MyGet, NuGet, Chocolatey and GitHub. :-)
So basically, how can I use an API key in a non-destructive way?
Mattias Karlsson
@devlead
@CharliePoole hard to verify API keys correct before using them. One can verify they're set before using them though. Usually I do that by creating and validating immutable build state in Setup task, before any tasks are executed.
Or what did you have in mind?
Gary Ewan Park
@gep13
@CharliePoole I Cake.Recipe, we have the concept of publishing packages to different places, NuGet, Chocolatey, etc, where we continue to the next one, even if publishing to anohter places fails. i.e. attempt to publish to NuGet and it that fails, continue with attempting to publish to Chocolatey. This isn't perfect, and it doesn't actually answer your question, but it does allow for continuation of the release, even though something might go wrong. We also publish all artifacts to the CI system, so that if something does go wrong, manual publishing of the artifacts can happen afterwards.
CharliePoole
@CharliePoole
@devlead Thanks... I am using a typed context with a BuildParameters instance passed around. I verify that the keys have been set, but sometimes they expire, which is annoying.
@gep13 That's the latest mod I made to my own script: continue if any publish step fails. I can run the publish steps individually from my local machine, which means trusting that the local build will be exactly the same as the CI build, which is usually true. I also download from CI and upload manually when needed.
CharliePoole
@CharliePoole
Now that I'm thinking of it... I could have a command-line script or task do programmatically what I would do manually.
Pascal Berger
@pascalberger
@CharliePoole IMHO validating API keys would only be part of the story here. There are a lot of other things which can go wrong when pushing artifacts to services (service outage, network issues, etc). What I do in these cases is to publish as many as possible (meaning continue when one service fails) and have a reliable way / documentation how to publish the failed ones. To make sure you push the same bits you can publish the package in your CI system as build artifact and then have a script or documentation how to take the package from there and publish it manually to the failed service.
CharliePoole
@CharliePoole
@pascalberger Good point. In worst case, I've had a situation where network problems caused one service to fail one time and a different one to fail the next time! I'm glad to learn I already have in place most of what folks are suggesting. But my fallback
has been manual up to now and I think automating it is the next step.
Stefan Ossendorf
@StefanOssendorf
Hey all. Are Cake Recipes supported in Cake.Frosting? If so is there something special to do? (The doc only talks about .cake files)
Pascal Berger
@pascalberger
@StefanOssendorf You can create recipe scripts for Cake.Frosting. Cake.Frosting.Issues.Recipe (https://cakeissues.net/docs/recipe/overview) is an example for this. Existing recipe scripts for script runners won't work with Frosting and current best practice is to provide separate packages for the different runners (you might be able to share internally some code, but there are quite some differences with task and context architecture)
Stefan Ossendorf
@StefanOssendorf
Thank you! I'll take a look at that. I only need to support one runner since it's for internal purposes to consolidate and simplify the build scripts for our projects.
And I found out I can just specify an assembly to be scanned for additional tasks so I think that will be sufficient for my use case :-).
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 ;)