Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:39
    Build #6833 passed
  • 01:33
    augustoproiete synchronize #3636
  • 01:25
    augustoproiete review_requested #3636
  • 01:25
    augustoproiete opened #3636
  • 00:36
    augustoproiete milestoned #3479
  • 00:36
    augustoproiete demilestoned #3479
  • 00:34
    Marusyk commented #3585
  • 00:12
    augustoproiete review_request_removed #3152
  • 00:11
    augustoproiete commented #3585
  • 00:07
    augustoproiete edited #3341
  • 00:06
    augustoproiete edited #3341
  • 00:04
    augustoproiete labeled #3634
  • Oct 25 19:45
    Build #6831 passed
  • Oct 25 19:39
    Build #6830 passed
  • Oct 25 19:33
    devlead synchronize #3632
  • Oct 25 19:32
    Build #1088 passed
  • Oct 25 19:32
    Build #2877 passed
  • Oct 25 19:23
    Build #6829 passed
  • Oct 25 19:17
    pascalberger commented #3634
  • Oct 25 19:16

    pascalberger on develop

    Fix path examples in documentat… Merge pull request #3634 from M… (compare)

C. Augusto Proiete
@augustoproiete

@/all We are starting to prepare our next release, 1.0.0-rc0003 (https://github.com/cake-build/cake/milestone/75?closed=1) :rocket::cake:.

This is your friendly reminder that if you haven't pinned to a specific version of Cake, you should do it now 😉 https://cakebuild.net/docs/writing-builds/reproducible-builds

cake-contrib-bot
@cake-contrib-bot
@/all Version 1.0.0-rc0003 of the Cake has just been released, https://www.nuget.org/packages/Cake.
C. Augusto Proiete
@augustoproiete
@/all Cake v1.0.0-rc0003 has been released :rocket: :cake: See details in this blog post: https://cakebuild.net/blog/2021/01/cake-v1.0.0-rc0003-released
Mattias Karlsson
@devlead
@/all We will soon start preparing for the 1.0.0 release of Cake. So this is a friendly reminder to pin your Cake version.
it's happening
cake-contrib-bot
@cake-contrib-bot
@/all Version 1.0.0 of the Cake has just been released, https://www.nuget.org/packages/Cake.
Mattias Karlsson
@devlead
Tanner Watson
@tannerwatson
:happy dance:
bravecobra
@bravecobra
Hi, is Cake.Services broken?
I can't seem to use the #addin
Pascal Berger
@pascalberger
@bravecobra You best chance to get an answer is probably if you open an issue in the repository of that extension (https://github.com/SharpeRAD/Cake.Services) and provide detailed information about what version of Cake, platform & operating system you use, what does not work, what messages you get
Nicolai Brogaard
@nmbro
image.png
3 replies
markofranjic
@markofranjic

Hi is there any way to get a collection of arguments but in this way?
--NugetSourceName=Test1, --NugetSourceName=Test2

public class BuildContext : FrostingContext
{
   public string Solution { get; }
   public ICollection<NugetSource> NugetSource { get; }

   public BuildContext(ICakeContext context): base(context)
   {

   }

}

public class NugetSource
{
   public string Name { get; }

   public NugetSource(ICakeContext context)
   {
    Name = context.Arguments.GetArgument("NugetSourceName")
   }
}

I don't want this

public class NugetSource
{
   public ICollection<string> Name { get; }

   public NugetSource(ICakeContext context)
   {
    Name = context.Arguments.GetArguments("NugetSourceName")
   }
}
Gary Ewan Park
@gep13
@markofranjic can I ask that you move this question over to the discussions area: https://github.com/cake-build/cake/discussions I think it will be best answered over there. Thanks
Matthew Leibowitz
@mattleibow
Hey folks, just checking if this is a bug or a feature: cake-build/cake#3197
Basically, this no longer works dotnet cake --prefix=""
dotnet cake --names=""

Error: Expected an option value.

       --names=
               ^ Did you forget the option value?
Nils Andresen
@nils-a
@mattleibow That's a feature of Cake 1.0.0 , see https://cakebuild.net/docs/getting-started/upgrade#passing-empty-arguments
Matthew Leibowitz
@mattleibow
huh. thanks
But this is not quite the same, I am passing a string, and empty string.
Unless this is equivalent and I can do --name ""
Nils Andresen
@nils-a
I'll move the issue to dicussions and we can continue there :-)
C. Augusto Proiete
@augustoproiete

@/all We are starting to prepare our next release, 1.1.0 (https://github.com/cake-build/cake/milestone/77?closed=1) 🚀🍰.

This is your friendly reminder that if you haven't pinned to a specific version of Cake, you should do it now 😉 https://cakebuild.net/docs/writing-builds/reproducible-builds

cake-contrib-bot
@cake-contrib-bot
@/all Version 1.1.0 of the Cake has just been released, https://www.nuget.org/packages/Cake.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.6.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.
Miha Markič
@MihaMarkic
Hi guys, I'm executing a Tool command using RunProcess to capture output (i.e. Cake.AppCenter). And then I call ProcessExitCode and if that doesn't throw, I return output from RunProcess. That all works fine, however, how should I handle a case when RunProcess encounter errors? The current way Cake output just "an error occurred" but what if I want to show the errors from RunProcess?
Mattias Karlsson
@devlead
Maybe you could throw Exception yourself and it would bubble up that way?
Miha Markič
@MihaMarkic
@devlead yes, I was just asking whether there is a preferred way already
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.6.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.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?