DotNet build produces different result then building in visual studio
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 133
Description
### Description
I use the following commandline:
"C:\Program Files\dotnet\dotnet.exe" build MCC.sln --configuration Debug
if I do this, dotnet also copies the dlls of 2 projects wich are only "build dependecies" and not also refernences to the output directory.
### Reproduction Steps
Download this sample:
[ConsoleApp1.zip](https://github.com/dotnet/runtime/files/10387146/ConsoleApp1.zip)
- build it with visual studio. In the Folder: ConsoleApp1\bin\Debug\net7.0 you only get the files of the console app.
- build it with dotnet build ConsoleApp1.sln you get both executables in the output
### Expected behavior
- only the one exe should be in the output
### Actual behavior
both exe files are copied
### Regression?
_No response_
### Known Workarounds
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.