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
. However, if I build the same project with dotnet build
(using .NET 7.0.4
), that doesn't happen, and the usual method for doing so in .NET Standard / .NET Core / .NET 5+
(CopyLocalLockFileAssemblies
) doesn't work because this is a .NET Framework
project. I've explored upgrading my project to .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 ) project.
I need to build with dotnet build
for CI purposes, so... Either I bite the bullet and upgrade to .NET Standard 2.1
or find some way to locate dependency .dll
s when building from dotnet build
.
Anyone got any insight, or willing to sanity check me? <:ChillBar_pray:872511920119377941>22 replies