-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio Build Acceleration not respecting "Copy Local" setting on dependencies. #9416
Comments
@drewnoakes for investigation |
@Maintenance-Partnership-Systems can you include the build output log for a project that is building incorrectly please? You'll need to turn on verbose up-to-date check logging. It would also be helpful if you showed how to reproduce this bug. If you can't share your code, could you recreate a small solution, perhaps just with two projects, that shows the situation you're describing? |
Having fixed it so it now builds correctly, I am reluctant to break it again.
I'm not having any luck re-creating the behavior with a new solution. The solution in which it occurred is very old - started back in 2013 - so has gone through many updates and iterations, until it is now running under .NET 7.0; so there could be all sorts of legacy settings floating around in there. I'll poke at it a bit more, and look at whether I can revert out the changes I made to fix the issue, and then re-run it with logging. |
I am also facing this issue and have created a repo to showcase the issue I am facing. Please see the readme. Microsoft support investigated my repo and determined that the Build Acceleration preview feature was causing my issue. https://github.com/GomezAa-Bently/BuildOutputProblem |
@GomezAa-Bently thank you very much for the detailed repro. I will take a look. I see you're using a common output folder. @Maintenance-Partnership-Systems are you using |
Yes; I checked in my csproj files and that setting is present and set to "true" |
I suspect that's central to the problem here. Thanks for confirming. |
Visual Studio Version
17.9.2
Summary
I have a solution with many projects (60+). A large subset set of projects share common dependencies and are dynamically loaded at runtime. As such they are deployed to a sub-folder and the shared dependencies are deployed to the parent folder above (along with the rest of the application DLLs). Their shared dependencies must not be stored in the same folder as it causes problems with the dynamic loading logic.
In order to achieve this I have to suppress the projects pulling in their dependent DLLs, by flagging those dependencies as "Copy Local" "No" and "Copy Local Satellite Assemblies" "No".
This was working fine under VS 17.8. After updating to 17.9 I found all the "Copy Local" settings had vanished and I had to manually reinstate them on some 120 project references.
However, after reinstating them I have encountered this new bug, as follows:
My conclusions from this are:
Steps to Reproduce
See description above.
Expected Behavior
Actual Behavior
See above description
User Impact
Severe impact on productivity without the Directory.Build.props workaround in place, as the sub-folder for DLLs has to be manually deleted each time you want to run the app in the debugger.
The text was updated successfully, but these errors were encountered: