Reputation: 7237
I created a .NET Core application, and I configured it to copy all of the DLL files to the output directory:
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
Then for one server, I deployed the bin\Debug\netcoreapp2.0
folder to the server, installed .NET Core Windows hosting bundle and things worked just fine.
Yet on another server, I did the same thing and things didn't work and I encountered this assembly can't be found error.
I went ahead and confirmed that in dep.json
file there are so many lines of dependencies that somehow guide the runtime to locate them from runtimes/win/lib/netstandard2.0
folder.
The question is, why doesn't .NET runtime search the existing for the assembly? And how to make it understand that the DLL it's searching for is right there besides the entry assembly and it shouldn't search for it in another location?
Upvotes: 0
Views: 125