Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:32
    songlin51 starred cake-build/cake
  • 06:54
    117311730 starred cake-build/cake
  • 04:17
    Build #554 passed
  • Mar 29 16:20
    Build #5657 passed
  • Mar 29 16:15
    Marusyk opened #2747
  • Mar 29 15:23
  • Mar 29 14:56
    patriksvensson commented #2746
  • Mar 29 14:56
    patriksvensson commented #2746
  • Mar 29 14:56
    patriksvensson commented #2746
  • Mar 29 14:55
    patriksvensson commented #2746
  • Mar 29 14:55
    patriksvensson commented #2746
  • Mar 29 14:28
    Build #5656 passed
  • Mar 29 14:23
    patriksvensson synchronize #2334
  • Mar 29 11:47
  • Mar 28 00:05
    printf2007 starred cake-build/cake
  • Mar 27 03:21
    kyle-seongwoo-jun starred cake-build/cake
  • Mar 26 09:33
    GeertvanHorrik commented #2746
  • Mar 26 08:54
    GeertvanHorrik opened #2746
  • Mar 26 08:50
    GeertvanHorrik commented #2586
Joseph Musser
@jnm2
Is there a Cake module or built-in behavior that allows #tool to work with an arbitrary versionless HTTPS .zip download?
Joseph Musser
@jnm2
I'll file in case it's interesting: cake-build/cake#2731
Maciek Misztal
@mmisztal1980
Any idea why DotNetCorePublishSettings screams:
'DotNetCorePublishSettings' does not contain a definition for 'PublishSingleFile' ? docs say it should be there https://cakebuild.net/api/Cake.Common.Tools.DotNetCore.Publish/DotNetCorePublishSettings/8EA20DA4 :/
Sean Fausett
@gitfool
@mmisztal1980 are you using Cake 0.36.0 or later?
Ryan Cheung
@ryancheung
Hello, anybody could help? I have dotnet 3.1 installed and am trying to use cake to build a project of targeting both netstandard2.0 and netcoreapp3.1, and it just raise error that said cannot use dotnet core 2.1 to build .netcoreapp3.1 library, and it shows an c#7 language syntax error about the ref keyword.
vaishnav-n
@vaishnav-n
Hi, Is it possible to use build.cake as a nuget package
i have multiple projects for which i have to write build scripts, can i use the build.cake as nuget package and supply the variables from my each project
nawfalhasan
@nawfalhasan

How do I use interpolated string in reference directive? For e.g.

#r $"..\..\bin\{buildMode}\foo.dll"

throws saying Illegal characters in path.. Shouldnt this be natively supported? Same with @ strings

Alexey Semirski
@Asemirski
Hello all! Some days ago we've encountered an issue that using xmlpeek causes files to be unavailable for other processes to read in case there are intersections during build process or another build works with the same file. I did a kind of research and found that cake's xmlpeek does a filestream with FileShare.None property. The question is - can we create a bug for this and change to FileShare.Read? As we have a large amount of builds per day these intersections became very common for us, so it will be great to be fixed inside the root tool instead of doing workarounds and I believe will help others who face such issue.
Mattias Karlsson
@devlead
@nawfalhasan preprocessor directives can't have C# code, they're processed before C# script is compiled. They do support expansion through environment variables though.
nawfalhasan
@nawfalhasan
OK
Mattias Karlsson
@devlead
So you could have something like #r "...\%BUILDMODE%
@Asemirski interesting what's the use case to have multiple processes read and modify same file simultaneously on CI? FileShare.None could be a feature rather than bug.
Mattias Karlsson
@devlead
If there's a good use case probably better to have an opt-in file share option via XmlPeekSettings.
Alexey Semirski
@Asemirski
The case is that we do a xmlpeek to super-secret variables placed in a file on build agents. As it was described above we have a lot of builds during the day so some of them can do this peek at one time causing "file is used". Additionally this file is used in some other activities while cake is peeking inside.
Mattias Karlsson
@devlead
I see, I guess for peek that makes sense, please
Raise an issue.
And maybe send PR if possiblešŸ˜Ž
Alexey Semirski
@Asemirski
Cool! Thanks! Will do
Roman Teitge
@rteitge
Hi there :) I have a problem with xamarin and gitlab CI (running on linux). I read that cake is a good option to build xamarin projects on linux so I tried. I built my project according to https://servocode.com/blog/gitlab-continuous-integration-configuration-xamarin and now I get an exception, you can see it there: https://servocode.com/blog/gitlab-continuous-integration-configuration-xamarin ... Do you know what I'm doing wrong or if there is missing something?
Mattias Karlsson
@devlead
Looks like same link twice? Exception lost?
Roman Teitge
@rteitge
ah
sry
Roman Teitge
@rteitge
Oh, sry ... I googled again with another keywords and get this: cake-build/cake#2636 so my issue is a duplicate, will close it.
Roman Teitge
@rteitge
I had a look at stack trace and the source code of cake it seems to be that one of the command line args could cause the error
That's my call:
mono /builds/app/tools/Cake/Cake.exe /builds/app/tools/build.cake -verbosity=diagnostic -configuration=Release -target=Restore-NuGet
Roman Teitge
@rteitge
ok, can be ignored. Not a cake problem. I used another android xamarin docker image and it works now :)
for those who have the same problem: https://github.com/chiticariu/xamarin-android
Mattias Karlsson
@devlead
@rteitge could be mono version, know newer versions if nuget client libs requires newer version if mono. An alternative could be til execute cake using.
NET Core using global tool Cake.Tool
Roman Teitge
@rteitge
Yes, my current output sounds like that. xbuild is deprecated and couldn't read some attributes in current csproj version. will change to msbuild and try mono 5.0
Roman Teitge
@rteitge
mono 6.8
norgie
@norgie
When specifying the runtime for the DotNetCoreBuildSettings are we allowed to use any? According to this anyis a valid value, isn't it? https://github.com/dotnet/runtime/blob/master/src/libraries/pkg/Microsoft.NETCore.Platforms/runtime.json
I've only gotten this to work by specifying win-x64, but I would like this assembly to be available for .netcore3.1 projects running on Linux as well. Do I have to produce two separate nuget packages?
Mattias Karlsson
@devlead
If you don't have platform specific code in your nuget, then you shouldn't need to specify a runtime at all for build nor pack.
norgie
@norgie
As I found out. Thx for replying.
Another question. Where does artefacts published by BuildSystem.TeamCity.PublishArtefacts(...) end up? We have a nuget repo set up in TC but canā€™t see that PublishArtefacts places them there. What are we missing?
norgie
@norgie
Ok. It may not be what I am looking for then.
norgie
@norgie
Where should cake.config be placed for cake.exe to pick it up?
norgie
@norgie
On our build server I have registered a new package source as well as set the api key for said source. When running our cake.build script the build fails because the build process only looks in the existing nuget sources (TeamCity in-built repo + nuget.org). Why isn't cake and/or the build picking up the new nuget source? What can we do to solve this problem?
Joakim Gyllstedt
@joagyl
Is there any reason why Cake.Common.Tools.SignTool.SignToolResolver is marked internal? We are using signtool.exe in our internal tooling, and it would be nice to resolve the paths in a consistent manner! Would you consider a PR making this class public?
Alexey Semirski
@Asemirski
Hey! Have created this one. Related to xmlpeek FileShare.Read issue\feature - cake-build/cake#2745
eoehen
@eoehen

DirectoryHashCalculator

Is an implementation in Cake.Common.Security useful for creating a hash of an entire directory? The usage would be about the same as the FileHashCalculator, just that a DirectoryPath is specified instead of a FilePath. The implementation should return a DirectoryHash instead of a FileHash. The GetHashAlgorithm function in FileHashCalculator should be outsourced for common use. Is the described DirectoryHashCalculator implementation in Cake.Common.Security interesting and useful for the Cake Team?
3X7=25
@coderhh
Hi, I have differernt version VS on my machine with different versions of Msbuild. could I config which version of MSbuild are going to use in cake?
eoehen
@eoehen
@coderhh Make sure you have Visual Studio 16.3 installed.
Mattias Karlsson
@devlead
@coderhh yes you can set the tool version property on MSBuildSettings
Or use VSWhere to find specific version and set ToolPath on msbuildsettings.