Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 12 19:12
    devlead review_requested #3945
  • Aug 12 14:53
    devlead ready_for_review #3945
  • Aug 12 14:35
    Build #7191 passed
  • Aug 12 14:29
    devlead synchronize #3945
  • Aug 12 14:15
    Build #7190 passed
  • Aug 12 14:07
    devlead opened #3945
  • Aug 12 11:20
    devlead unlabeled #3931
  • Aug 12 11:20
    devlead assigned #3931
  • Aug 11 22:26
    dnfadmin commented #3877
  • Aug 11 20:20
    Build #7189 passed
  • Aug 11 20:14
    Build #2981 passed
  • Aug 11 19:58
    Build #1205 passed
  • Aug 11 19:58

    devlead on develop

    (GH-3942) Castle.Core to 5.1.0… Merge pull request #3943 from d… (compare)

  • Aug 11 19:58
    devlead closed #3942
  • Aug 11 19:58
    devlead closed #3943
  • Aug 11 19:43
    Build #7188 passed
  • Aug 11 19:37
    devlead auto_merge_enabled #3943
  • Aug 11 19:35
    devlead opened #3943
  • Aug 11 19:33
    devlead assigned #3942
  • Aug 11 19:33
    devlead opened #3942
Richard Gavel
@richardgavel
I'm still using the Powershell bootstrapper to the Cake.exe, not the global tool.
Mattias Karlsson
@devlead
And monikers present in nuget package?
Cake exe targets net461 and netstandard 2, maybe that's the issue
Richard Gavel
@richardgavel
Except that when I use #r and reference the DLL directly directly from my local build output directory, it works fine. Almost as if there is an issue re: NuGetPackageInstaller, but there is no logging to guide me.
But I could try also targetting net461 as well instead.
Richard Gavel
@richardgavel
It does look like targetting 461 solved the issue! Would be good to have the logging reflect this somehow.
catter
@catter21360439_twitter
image.png
Has anyone seen this before? I am running VS on windows
Mattias Karlsson
@devlead
Think gitversion changed their package in some way, pining to an older version might solve it.
I've switched to version .NET tool
Gary Ewan Park
@gep13
@catter21360439_twitter yes, I think @devlead is correct here, but it would be good to confirm. What OS are you running on, and what version of GitVersion are you trying to use?
catter
@catter21360439_twitter
@gep13 I am running Win 10 and trying to run Gitversion 5.1.2
@devlead I tried running install both with and without the --global flag, but VS output keeps saying "GitVersion.Tool is already installed, with required version." How did you link the context error to a git Tool issue?
catter
@catter21360439_twitter
@devlead I removed the gitVersion folder from inside .store and reinstalled it.
That seems to fix the issue. Thanks!
I am currently on 5.0.100-rc.2.20479.15 version of the .Net Core SDK.
Can I go any lower or do I need to be on this version? I want to see if that changes anything with my --version error for the dotnet watch command
Mattias Karlsson
@devlead
You shouldn't go lower as 5.0.100 is released now. You probably could go 3.1.404, you might already have 3.1.x installed, in that case you can add an global json file to ensure it gets picked instead.
Nick
@nick5454

anyone seen this error before ```Preparing to run build script...
Tools: /Users/runner/work/1/s/foldername/build/tools
Tools: /Users/runner/work/1/s/foldername/build/tools/Addins
Start testing Cake path.
Running build script...
& dotnet "/Users/runner/work/1/s/foldername/build/tools/Cake.CoreCLR/Cake.dll" .\foldername\build\build.cake --bootstrap
Error: An exception was thrown while activating Cake.Commands.BootstrapCommand -> Cake.Core.Scripting.Analysis.ScriptAnalyzer -> λ:Cake.Core.Scripting.Processors.Loading.ILoadDirectiveProvider[] -> Cake.NuGet.NuGetLoadDirectiveProvider -> Cake.NuGet.Install.NuGetPackageInstaller.

[debug]$LASTEXITCODE: 1

```

Tomasz Cielecki
@Cheesebaron
Hey friends. I have a question about how I set a Output variable in Azure Pipelines. AzurePipelines.Commands.SetVariable() doesn't seem to set isOutput=true
Tomasz Cielecki
@Cheesebaron
How can I work around this now regardless of Verbosity?
Nick
@nick5454
Is this a Nuget config not being found? Error: Autofac.Core.DependencyResolutionException: An exception was thrown while activating Cake.Commands.BootstrapCommand -> Cake.Core.Scripting.Analysis.ScriptAnalyzer -> λ:Cake.Core.Scripting.Processors.Loading.ILoadDirectiveProvider[] -> Cake.NuGet.NuGetLoadDirectiveProvider -> Cake.NuGet.Install.NuGetPackageInstaller. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Cake.Core.IO.IFileSystem, Cake.Core.ICakeEnvironment, Cake.NuGet.INuGetContentResolver, Cake.Core.Diagnostics.ICakeLog, Cake.Core.Configuration.ICakeConfiguration)' on type 'NuGetPackageInstaller'. ---> System.IO.FileNotFoundException: NuGet Config file not found. at Cake.NuGet.Install.NuGetPackageInstaller.GetNuGetConfigPath(ICakeEnvironment environment, ICakeConfiguration config, IFileSystem fileSystem) in C:\projects\cake\src\Cake.NuGet\Install\NuGetPackageInstaller.cs:line 338 at Cake.NuGet.Install.NuGetPackageInstaller..ctor(IFileSystem fileSystem, ICakeEnvironment environment, INuGetContentResolver contentResolver, ICakeLog log, ICakeConfiguration config) in C:\projects\cake\src\Cake.NuGet\Install\NuGetPackageInstaller.cs:line 77 at lambda_method(Closure , Object[] ) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) at lambda_method(Closure ) at Cake.CakeApplication.Run(CakeOptions options) in C:\projects\cake\src\Cake\CakeApplication.cs:line 45 at Cake.Program.Main() in C:\projects\cake\src\Cake\Program.cs:line 74
Tomasz Cielecki
@Cheesebaron
I've seen that before on Azure DevOps
Running NuGetAuthenticate task before seemed to fix it
Nick
@nick5454
what are you trying to do with output?
Tomasz Cielecki
@Cheesebaron
What do you mean?
Tomasz Cielecki
@Cheesebaron
Are you referring to my issue? Then... I run a cake script 3 times one time for ios, one time for android and another one for a different android platform. Instead of having to call AzurePipelines.Commands.SetVariable() with a unique variable name for each of these executions. I could do this with the same variable name, just where isOutput=true. Then I could name the 3 cake script executions and refer them like: $(ios.releaseData), $(android.releaseData) etc., instead.
Nick
@nick5454
I use a custom cake nuget and define the vars in yml then pass in SetParameters instead for multi platform builds
Tomasz Cielecki
@Cheesebaron
This is not for builds, but for deployments. I need the result from inside the cake script to be available in another task.
Stefan Ossendorf
@StefanOssendorf
Hi. Is it possible to open a browser with a specified html-file?
These two solutions somehow do not work: https://stackoverflow.com/questions/41722455/how-to-launch-html-report-from-cake-build
I get this error:
Error: One or more errors occurred. (The specified executable is not a valid application for this OS platform.) The specified executable is not a valid application for this OS platform.
The path to the html file is correct. I print that out just before the StartProcess call.
Stefan Ossendorf
@StefanOssendorf
The explicit "start cmd" apporach worked :-D
Gary Ewan Park
@gep13
@StefanOssendorf we used to do this in Cake.Recipe in the following way:
I believe for the reason you are describing
Stefan Ossendorf
@StefanOssendorf
Ah thanks :)
Nick
@nick5454
Is there a cake api I can use to install certs and provision on the azure mac host?
Nick
@nick5454
@gep13 do you know if there's a cake api that will allow me to install apple certs and provisions on the mac? I can't find one
10 replies
John Menn
@nedoziznzg_gitlab
Does any one have a workaround for this? cake-build/cake#2593
John Menn
@nedoziznzg_gitlab
image.png
John Menn
@nedoziznzg_gitlab
Can someone point me to where we are requesting for a 3.0.0 framework version, looks like bumping that up to 5 might solve this
Gary Ewan Park
@gep13
@nedoziznzg_gitlab is this an open source project that someone could take a look at?
Calvin Dallmore
@aeos
Is there a best practice for having cake return information back to the build task? For instance if I have cake execute gitversion for the package version, but I also need that information in my jenkins process, is there a defined way to do so? Apart from processing log output or writing it to file?
6 replies
John Menn
@nedoziznzg_gitlab
@gep13 I am running https://github.com/cake-build/cake/ on the develop branch
7 replies
John Menn
@nedoziznzg_gitlab
image.png
Pascal Berger
@pascalberger

@/all A quick reminder that 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

Mattias Karlsson
@devlead
@/all We will soon start preparing for the 1.0.0-rc0002 release of Cake. So this is a friendly reminder to pin your Cake version.
cake-contrib-bot
@cake-contrib-bot
@/all Version 1.0.0-rc0002 of the Cake has just been released, https://www.nuget.org/packages/Cake.
Dmitry Lukyanov
@dmitry_lukyanov_gitlab
Hey, why there is no predefined Nuget "wrappers" for dotnet add package ... here: https://cakebuild.net/dsl/dotnetcore/#NuGet?
as I understand, if I need to call this command, the only option I have is just: StartProcess("dotnet", new ProcessSettings { Arguments = argumentsBuilder, WorkingDirectory = workingDirectory })? Why so? :)
Mattias Karlsson
@devlead
If there isn't, it's probably because no one has contributed it yet. Please raise an issue and someone might pick it up.
For generic .NET commands DotNetCoreTool alias might be better suited than StartProcess