cake-build / cake-build/cake

DotNetCoreBuildSettings MSBuildSettings AddFileLogger() does not produce msbuild.log

Open
#1,764 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

With `dotnet --version` == `2.0.0`

```csharp
Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does(() =>
{
DotNetCoreBuild("./TheSolution.sln", new DotNetCoreBuildSettings
{
Configuration = configuration,
MSBuildSettings = new DotNetCoreMSBuildSettings
{
TreatAllWarningsAs = MSBuildTreatAllWarningsAs.Error,
Verbosity = DotNetCoreVerbosity.Minimal
}.AddFileLogger()
});
});
```

does not produce the expected `msbuild.log` file.

Running `dotnet build /fl` successfully creates the file, though.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with dotnet 2.0.0 using the shown DotNetCoreBuild call, especially DotNetCoreBuildSettings.MSBuildSettings and AddFileLogger(). Compare its output with running dotnet build /fl; done means the Cake invocation produces the expected msbuild.log file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.