Skip to content

dotnet run app.cs doesn't detect changes in referenced project #52057

@ThadHouse

Description

@ThadHouse

Describe the bug

If you make a change in a project referenced with #:project, that change is not picked up when dotnet run app.cs is ran. The only way I can find around this is to manually change the app.cs file to force a rebuild. Even dotnet clean doesn't work.

To Reproduce

Have an app.cs reference any project. Make a change in the referenced project. Rerun dotnet run app.cs. App will not be rebuilt, and will use old versions.

Further technical details

.NET SDK:
 Version:           10.0.100
 Commit:            b0f34d51fc
 Workload version:  10.0.100.1
 MSBuild version:   18.0.2+b0f34d51f

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26200
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\10.0.100\

Metadata

Metadata

Assignees

Labels

Area-run-fileItems related to the "dotnet run <file>" effort

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions