RomanovM wrote:Hi
Yes, I have seen that they explicitly references the external DLLs, but why is that necessary?
Why isn't it enough to reference a Nuget Package?
If you want to include nuget packages to the output, ensure you set this option (
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>) in a project file. See a sample
here.
Hi RomanovM
I use the RestSharp via nuget in one of my plugins. I've activated
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> in my plugin and it all works fine in Visual Studio. The problem is as soon as I publish the Code to the server the application will no longer start saying it can't find the RestSharp.
The RestSharp libray is located in the same place on the server as it is locally: /Plugins/MyPluginName/RestSharp.dll
Do you know if the behaviour is different between including something with nuget than directly as a Framework reference?