Build Acceleration can copy unused assembly reference to output directory #9575
Labels
Feature-Build-Acceleration
Build Acceleration can skip calls to MSBuild within Visual Studio
Triage-Approved
Reviewed and prioritized
Milestone
(Originally reported in #9574. Restated here in a more minimal form after some investigation.)
Consider two projects:
Project A
Project B
Rebuilding (i.e. without VS's FUTDC) the above ends up with something like (slightly abridged):
However, if you comment the usage of
TypeFromMyAssembly
inC.M
and rebuild, thenMyAssembly.dll
is removed from the output directory of Project B.The build is able to determine whether the referenced assembly is actually used or not, and only copies when it is.
Build Acceleration is not aware when a referenced assembly is unused, and will always try to copy the file to the output directory. This can cause extra files to be present in the output directory when Build Acceleration is enabled.
The text was updated successfully, but these errors were encountered: