© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago•
5 replies
Ruttie

Copy PackageReferences to output directory

I have a netstandard2.1 classlib project, and I noticed that
PackageReference
PackageReference
s are not copied to the output directory.
I have tried
Private="true"
Private="true"
and even
CopyToOutputDirectory="always"
CopyToOutputDirectory="always"
, but both had no effect.
Is there any way to configure msbuild to copy packages to the output directory?
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

Directory Copy
C#CC# / help
2y ago
Copy file to build directory
C#CC# / help
16mo ago
Copy build output after build
C#CC# / help
3mo ago
Files not copying to output directory - Linux
C#CC# / help
2y ago