Skip to content

[Known Build Error] RunFileTests csc-only mode fails expecting binary log warning that is not emitted #53869

@jkoritzinsky

Description

@jkoritzinsky

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1378681
Build error leg or test failing: dotnet.Tests.dll.20, dotnet.Tests.dll.21, dotnet.Tests.dll.11
Pull request: #53635

Error Message

{
  "ErrorMessage": "Binary log option was specified but MSBuild will be skipped because running just csc is enough",
  "ErrorPattern": "",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}

Details

Multiple dotnet run file-mode tests that use cscOnly: True with -bl fail because they expect the output to contain the warning:

Warning: Binary log option was specified but MSBuild will be skipped because running just csc is enough. Specify '--no-cache' to force full build.

But the warning is not emitted, causing assertion failures.

Affected tests:

  • Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildOptions.WorkingDirectory(cscOnly: True)
  • Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly
  • Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile(cscOnly: True, relativePath: "Properties/launchSettings.json")

Reproduces on main — confirmed in builds:

Sample error (WorkingDirectory test):

Expected string to be the same string because Command did not output with Expected Output.
Expected: Warning: Binary log option was specified but MSBuild will be skipped because running just csc is enough. Specify '--no-cache' to force full build.
v1

Sample error (LaunchProfile test):

Expected string "Using launch settings from ...\launchSettings.json...
Hello from Program
Message: 'TestProfileMessage1'" to contain "Warning: Binary log option was specified but MSBuild will be skipped because running just csc is enough. Specify '--no-cache' to force full build.

Sample logs:

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1378681
Error message validated: [Binary log option was specified but MSBuild will be skipped because running just csc is enough]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/14/2026 9:13:57 PM UTC

Report

Build Definition Test Pull Request
1387128 dotnet/sdk dotnet.Tests.dll.12.WorkItemExecution #53447
1386987 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53604
1386547 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53920
1386310 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildOptions.WorkingDirectory #53447
1386169 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53447
1385238 dotnet/sdk dotnet.Tests.dll.12.WorkItemExecution #53836
1384700 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53820
1384728 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53906
1384529 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.EntryPointFilePath
1384533 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_DotNetRoot #53725
1384701 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_SymbolicLink #53930
1384696 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53903
1384188 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.EntryPointFilePath #53933
1384352 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53447
1384319 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53965
1384015 dotnet/sdk dotnet.Tests.dll.12.WorkItemExecution #53930
1384010 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution
1383886 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53884
1383955 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53836
1383683 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildOptions.WorkingDirectory #53951
1383677 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53948
1383681 dotnet/sdk dotnet.Tests.dll.12.WorkItemExecution #53953
1383680 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.UpToDate #53952
1383686 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly #53956
1383684 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53955
1383661 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53947
1383558 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53942
1379432 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_CompilationDiagnostics #53847
1382408 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_Args #53836
1382589 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_Args #53680
1382942 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53872
1382634 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.EntryPointFilePath #53596
1382230 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly_DotNetRoot
1382163 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53680
1381919 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53884
1382024 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53919
1382030 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53920
1381964 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53836
1381709 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly #53884
1381244 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53821
1381231 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53905
1381205 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53908
1381152 dotnet/sdk dotnet.Tests.dll.13.WorkItemExecution #53850
1381164 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53906
1381145 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53820
1378600 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53723
1381014 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53903
1380895 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53836
1374751 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53820
1380761 dotnet/sdk dotnet.Tests.dll.12.WorkItemExecution #53680
1380564 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53817
1380629 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53557
1380568 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution
1380380 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution
1380347 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.EntryPointFilePath #53680
1380341 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53884
1380229 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53714
1376812 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53835
1380100 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly #53884
1378475 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53857
1379927 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53883
1379780 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53836
1379611 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution
1379555 dotnet/sdk dotnet.Tests.dll.22.WorkItemExecution #53850
1379315 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.EntryPointFilePath
1379337 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53877
1379214 dotnet/sdk dotnet.Tests.dll.21.WorkItemExecution #53865
1379148 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53872
1378978 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53867
1378902 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildOptions.WorkingDirectory #53680
1378681 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_CscOnlyAndApi.CscOnly #53635

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
4 71 71

Metadata

Metadata

Assignees

Labels

Area-run-fileItems related to the "dotnet run <file>" effortKnown Build ErroruntriagedRequest triage from a team member

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions