© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
zCri

MSBuild ProjectReference not copying output to folder

I have a .net project "A" that references a native c++ dll project "B" (twice, but that doesnt matter)
I have set the Private, OutputItemType, and CopyToOutputDirectory properties to get the project B dll output copied to the project A build folder.
This works when building project A inside visual studio, but doesn't work when building it using the MSBuild command line
This is how the project references are set up:
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Help copying dependencies to output folder
C#CC# / help
3y ago
Files not copying to output directory - Linux
C#CC# / help
2y ago
MSBuild make it NOT copy a dependency to the output path
C#CC# / help
2y ago
MsBuild copies wrong dll (x86 to x64) to build folder
C#CC# / help
9mo ago