DotNetCoreBuildSettings MSBuildSettings AddFileLogger() does not produce msbuild.log
- 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
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