msbuild
msbuild copied to clipboard
DotNet build produces different result then building in visual studio
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
- 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