Replies: 2 comments 6 replies
-
I don't see that function being available for So something similar to: var dotNetBuildSettings = new DotNetCoreBuildSettings
{
Configuration = BuildParameters.Configuration,
NoRestore = true,
MSBuildSettings = new DotNetCoreMSBuildSettings()
.AddFileLogger(new MSBuildFileLoggerSettings { LogFile = BuildParameters.LogPath })
}; Should work (or so it seems). |
Beta Was this translation helpful? Give feedback.
4 replies
-
If you only need to to pass to Cake.Issues using a binary log might be an easier solution:
The above example uses the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`
using Cake.Common.Tools.DotNetCore.MSBuild;
var dotNetBuildSettings = new DotNetCoreBuildSettings
{
Configuration = BuildParameters.Configuration,
NoRestore = true
};
My addings:
`#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Incubator&version=5.1.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Npm&version=0.17.0"
#addin "nuget:https://pkgs.dev.azure.com/***/nuget/v3/index.json?package=Cake.DotNetCoreEFAzure"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Plist"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.FileHelpers&version=3.3.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.AppCenter"
#addin nuget:?package=Cake.Git&version=0.22.0
#tool dotnet:?package=GitVersion.Tool&version=5.1.2
#tool dotnet:?package=SignClient&version=1.2.109
#tool dotnet:?package=GitReleaseManager.Tool&version=0.11.0
#addin "Cake.Issues"
#addin "Cake.Issues.MsBuild"
#addin "Cake.Issues.Reporting"
#addin "Cake.Issues.Reporting.Sarif"
#tool "nuget:?package=MSBuild.Extension.Pack"`
And the error "'DotNetCoreBuildSettings' does not contain a definition for 'AddFileLogger' and the best extension method overload 'DotNetCoreMSBuildSettingsExtensions.AddFileLogger(DotNetCoreMSBuildSettings, MSBuildFileLoggerSettings)' requires a receiver of type 'DotNetCoreMSBuildSettings'
"
I'm sure this is an easy one, but i'm missing it. Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions