Skip to content

dotnet build app.cs should produce artifacts in the current directory #50227

@richlander

Description

@richlander

This is what happens:

rich@richs-MacBook-Pro test-file-based-apps % cat app.cs 
Console.WriteLine("Hello World!");% 
rich@richs-MacBook-Pro test-file-based-apps % dotnet build app.cs 
rich@richs-MacBook-Pro test-file-based-apps % ls
app.cs
rich@richs-MacBook-Pro test-file-based-apps % dotnet --version
10.0.100-preview.7.25380.108
rich@richs-MacBook-Pro test-file-based-apps % export | grep DOTNET
rich@richs-MacBook-Pro test-file-based-apps % uname -a
Darwin richs-MacBook-Pro.local 25.0.0 Darwin Kernel Version 25.0.0: Fri Jul 25 23:19:02 PDT 2025; root:xnu-12377.0.187.0.2~21/RELEASE_ARM64_T6041 arm64

I see the dotnet build output but it flashes by on a single line and then that line becomes the next command prompt. There are no artifacts in my app directory.

Repro on macOS 26 and Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions