© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
21 replies
moon

❔ Help copying dependencies to output folder

Hey guys! I'm setting up some CI tools for myself and have run into the following issue:

I use ILRepack to pack all my dependencies into my distributed plugin. As it stands, I expect them to be in the output folder.
When I build my project from VS2022, all dependencies are copied to the output folder, as is standard practice for
.NET Framework
.NET Framework
. However, if I build the same project with
dotnet build
dotnet build
(using
.NET 7.0.4
.NET 7.0.4
), that doesn't happen, and the usual method for doing so in
.NET Standard / .NET Core / .NET 5+
.NET Standard / .NET Core / .NET 5+
(
CopyLocalLockFileAssemblies
CopyLocalLockFileAssemblies
) doesn't work because this is a
.NET Framework
.NET Framework
project. I've explored upgrading my project to
.NET Standard
.NET Standard
, and will do so if I have to, but in testing I hit some compatibility issues that I'm not confident I'd be able to iron out in my large (to me 02LUL ) project.

I need to build with
dotnet build
dotnet build
for CI purposes, so... Either I bite the bullet and upgrade to
.NET Standard 2.1
.NET Standard 2.1
or find some way to locate dependency
.dll
.dll
s when building from
dotnet build
dotnet build
.

Anyone got any insight, or willing to sanity check me? ChillBar_pray
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

MSBuild ProjectReference not copying output to folder
C#CC# / help
2y ago
Files not copying to output directory - Linux
C#CC# / help
2y ago
Dependencies are missing in output directory
C#CC# / help
7mo ago
❔ Help with terminal output
C#CC# / help
4y ago