Compile .NET project with nuget packages Visual Studio
I want to create .DLL file out of dotnet project, but it uses some Nuget dependencies, which I would like to go to destination folder along with project's compiled DLL. How do I achieve that in Visual Studio?
8 Replies
Basically I want
Arch.dll
to be compiled and all the referenced dlls it has to also be in the output folderhow is this meant to be used?
like, published to nuget? loaded as a plugin in another app?
I think you just want
dotnet publish
though I don't remember if that works for library projectsI want to use it in Unity as managed dll plugin
Unity fails to load Arch.dll because it cannot find any of it's dependencies, which are nuget packages
yeah,
dotnet publish
and Unity wants every dependency .dll to also be inside the folder
or the publish option in Visual Studio if that shows up for library projects
seems like it worked, thank you very much
If you'd want their PDBs and XML docs to be copied too, I can send a bit of MSBuild code for that tomorrow
if anybody wants it anyway