dotnet / dotnet/project-system

New StartArguments aren't always applied when launching an app

Open
#8,093 4 comments 1 reaction 0 assignees View on GitHub
Feature-Debugging Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

## Visual Studio Version
17.1.4

## Summary
Changes to the `StartArguments` element of a .csproj file are not always applied when the app is launched.

## Steps to Reproduce
1. Change the `StartArguments` in a .csproj file
2. Without saving the project file, launch the app for debugging.

## Expected Behavior
The .csproj file is saved and the new arguments are used in the debugging session.

## Actual Behavior
The .csproj file is saved, but the old arguments are used. A subsequent launch will use the new arguments.

I can also get this to reproduce by manually saving the .csproj and quickly pressing F5 to debug, but there seems to be a timing element to this. Leave a long enough gap between the save and launch, and the bug won't reproduce.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.