Skip to content

[Known Build Error] dotnet run launch profile tests fail due to unexpected 'Using launch settings' stderr output #53879

@tmat

Description

@tmat

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1379337
Build error leg or test failing: dotnet.Tests.dll.9, dotnet.Tests.dll.10, dotnet.Tests.dll.11
Pull request: #53877

Error Message

{
  "ErrorMessage": "Using launch settings from",
  "ErrorPattern": "",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}

Details

Multiple dotnet run tests fail because dotnet run now outputs Using launch settings from ...launchSettings.json... to stderr when using launch profiles, but the tests assert that stderr should be empty or null.

Affected tests:

  • Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName(launchProfileName: "Second")
  • Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName(launchProfileName: "sEcoND")
  • Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItDefaultsToTheFirstUsableLaunchProfile
  • Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project

Reproduces on main — confirmed in build:

Sample error (ItUsesLaunchProfileOfTheSpecifiedName):

Expected string to be <null> or empty because Expected command to not output to stderr but it was not:
Working Directory: ...\ItUsesLaunchP---E6B15DAB
File Name: ...\dotnet.exe
Arguments: run --launch-profile sEcoND
Exit Code: 0
StdOut:
Second
StdErr:
Using launch settings from ...\My Project\launchSettings.json...

Sample error (EnvironmentVariableExpansion_Project):

Expected string to be empty, but found "Using launch settings from ...\Properties\launchSettings.json...".

Sample logs:

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1379337
Error message validated: [Using launch settings from]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/15/2026 5:09:35 AM UTC

Report

Build Definition Test Pull Request
1381964 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItUsesLaunchProfileOfTheSpecifiedName #53836
1381919 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItSetsTheDotnetLaunchProfileEnvironmentVariableToSuppliedLaunchProfileName #53884
1381709 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItSetsTheDotnetLaunchProfileEnvironmentVariableToDefaultLaunchProfileName #53884
1381583 dotnet/sdk dotnet-watch.Tests.dll.4.WorkItemExecution #53914
1381244 dotnet/sdk dotnet.Tests.dll.19.WorkItemExecution #53821
1381241 dotnet/sdk dotnet-watch.Tests.dll.4.WorkItemExecution #53779
1381152 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project #53850
1381145 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItPrintsUsingLaunchSettingsMessageWhenNotQuiet #53820
1381205 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53908
1381164 dotnet/sdk dotnet.Tests.dll.11.WorkItemExecution #53906
1381119 dotnet/sdk dotnet-watch.Tests.dll.2.WorkItemExecution #53898
2952238 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #59726
1381014 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItPrintsUsingLaunchSettingsMessageWhenNotQuiet #53903
1378600 dotnet/sdk dotnet.Tests.dll.9.WorkItemExecution #53723
2952239 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #59725
1380895 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53836
1374751 dotnet/sdk dotnet.Tests.dll.9.WorkItemExecution #53820
1380761 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItPrefersTheValueOfAppUrlFromEnvVarOverTheProp #53680
1380629 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project #53557
1380767 dotnet/sdk dotnet-watch.Tests.dll.2.WorkItemExecution #53898
1380564 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItPrintsUsingLaunchSettingsMessageWhenNotQuiet #53817
1380568 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItSetsTheDotnetLaunchProfileEnvironmentVariableToSuppliedLaunchProfileName
1380380 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItPrintsUsingLaunchSettingsMessageWhenNotQuiet
1380347 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItSetsTheDotnetLaunchProfileEnvironmentVariableToSuppliedLaunchProfileName #53680
1380341 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project #53884
2951749 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #59580
1380229 dotnet/sdk dotnet.Tests.dll.9.WorkItemExecution #53714
1380051 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution #53864
1376812 dotnet/sdk dotnet.Tests.dll.9.WorkItemExecution #53835
1380100 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project #53884
1378475 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #53857
2951750 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #59579
1379927 dotnet/sdk dotnet.Tests.dll.9.WorkItemExecution #53883
1379780 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunFileTests_BuildCommands.LaunchProfile #53836
2951542 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #59580
1379432 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #53847
1379700 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution #53875
1379611 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.RunCommandTests.EnvironmentVariableExpansion_Project
2951536 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #59726
1379555 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItSetsTheDotnetLaunchProfileEnvironmentVariableToDefaultLaunchProfileName #53850
2951537 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItCanRunAMultiTFMProjectWithImplicitRestore #59725
2951444 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #59580
2951428 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunRunsVbproj.ItUsesLaunchProfileOfTheSpecifiedName #59726
1379337 dotnet/sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItUsesLaunchProfileOfTheSpecifiedName #53877
2951429 dotnet-sdk Microsoft.DotNet.Cli.Run.Tests.GivenDotnetRunBuildsCsproj.ItCanRunAMultiTFMProjectWithImplicitRestore #59725
1377961 dotnet/sdk dotnet-watch.Tests.dll.6.WorkItemExecution #53833

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
25 46 46

Metadata

Metadata

Assignees

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