cakebuild

CAKE build and NUNIT3 generating empty results file

人走茶凉 提交于 2021-02-18 22:27:08
问题 I'm using cake build and trying to upload the cake unit test results to AppVeyor, but Cake/Nunit3 are generating empty results when I run locally and I assume that is what is causing my errors on AppVeyor. In the below block, NUnitResults.xml is generated but always empty. Task("UnitTest") .IsDependentOn("Build") .IsDependentOn("Setup") .Does(() => { var resultsFile = artifactsDirectory + "/NUnitResults.xml"; NUnit3("./StatusPageIo/StatusPageIo.UnitTests/bin/Release/StatusPageIo.UnitTests.dll

How to debug cake project in vscode?

大憨熊 提交于 2021-02-07 09:11:57
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

How to debug cake project in vscode?

安稳与你 提交于 2021-02-07 09:02:29
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

Cake on OSX fails with “error: the assembly name is invalid”

久未见 提交于 2021-01-28 11:33:37
问题 I tried to use cake for the first time today and got the error above. I was initially using the cake package from homebrew, but to simplify the problem I downloaded the cake example project (https://github.com/cake-build/example), but all of the following commands give the same error output: ./build.sh cake mono tools/Cake/Cake.exe I have tried using MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll to output more detailed logging but nothing seems obviously relevant. 回答1: It seems that this is caused

Cake build.ps1 fails to install Cake

余生长醉 提交于 2020-04-14 08:08:11
问题 We use the standard build.ps1 PowerShell script supplied from Cakebuild.net It's worked splendid on both CI and developer machines, but for 1 of our developers we get the following error when launching build.ps1 Unable to find package 'Cake' And then exits, checking tools folder there's no Cake installed. 回答1: The error you're getting is because NuGet console can't find the Cake package among the configured feeds on the machine. You can test this theory by changing the following line in build

How to display build error messages in TeamCity when using cake build scripts

て烟熏妆下的殇ゞ 提交于 2020-01-04 01:36:34
问题 Having a CI pipeline that is using Teamcity and Octopus deploy and build scripts written with Cake I want to be able to display the error messages that generated by the build script. Now the message displayed is: Exit code 1 (new) In order to be able to see the real error message one must view the build log and parse it. So, even when using build script, I want to be able to display the build results in overview page and the list of errors like in the following picture: I know that Cake

How to push Tag to Bitbucket Git Repository in Bamboo from Cake build task?

左心房为你撑大大i 提交于 2020-01-03 02:58:05
问题 I'm using next code to push Tag to Git repository #addin "Cake.Git" using LibGit2Sharp; var solutionFolder = "./"; var versionTag = "someTag"; Task("Default") .Does(() => { var remoteRepository = EnvironmentVariable("bamboo_planRepository_repositoryUrl"); var repositoryRevision = EnvironmentVariable("bamboo_planRepository_revision"); var absolutePath = MakeAbsolute(Directory(solutionFolder)); var repoName = "central"; //LibGit2Sharp add remote using (var repo = new Repository(absolutePath

Targeting multiple frameworks with Cake script

我只是一个虾纸丫 提交于 2020-01-02 18:07:13
问题 A co-worker recently added .NET Standard support to one of our projects using the new VS2017 .csproj format: This seems to have broken my script as I get the following error when using the Cake MSBuild alias (http://cakebuild.net/api/Cake.Common.Tools.MSBuild/MSBuildAliases/C240F0FB): error : Project 'C:\example\path\myproj.csproj' targets '.NETFramework,Version=v4.6.1'. It cannot be referenced by a project that targets '.NETStandard,Version=v1.6'. Does Cake support building against multiple

How to enable diagnostic verbosity for Cake

无人久伴 提交于 2019-12-27 12:05:39
问题 I am having some problems running my build.cake file, but I can't immediately see what the problem is. Is there a way to enable diagnostic verbosity, so I can get more information about what is going on, and how to fix the problem? 回答1: Yes, you can easily enable diagnostic verbosity in Cake. This allows you to see much more information about the Cake execution, including the actual commands, and arguments, that are passed to the numerous underlying tools that Cake can call on your behalf.

Cake Task output log to file

北慕城南 提交于 2019-12-24 14:09:22
问题 I have a set of Tasks inside a build.cake file and I would like to capture the log output from the console into a log file. I know it's possible to use the OnError() function to output errors to file but I would like to output everything to a log file, not just errors. Below is an example of the build.cake file. #load "SomeTask.cake" #load "SomeOtherTask.cake" var target = Argument("target", "Default"); var someTask = Task("SomeTask") .Does(() => { SomeMethodInsideSomeTask(); }); var