❔ Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly
Full error:
the part of the csproj for it
that dll exists, both in the hintpath and the compiled folders though
15 Replies
compiling via
dotnet publish -c Release -r win-x64 --self-contained true
btw
does anyone have any ideas?Try copy paste that dll to your project
Where exactly? Like just beside the csproj or
You can create smth like libs folder for it inside your project
do I then reference that dll?
Yes
same issue
Try ../../libs...
same thing
Stack Overflow
Can't use an external DLL : FileNotFoundException
I have 2 projects.
The first one just generates a DLL.
The second one needs the first DLL.
But when I call a method from the DLL, I have a FileNotFoundException, with this message :
BDD, Version=...
it is in the same directory as the dll, it gets copied there on build
I can't tell if this is talking about the same issue? https://github.com/dotnet/sdk/issues/9594
GitHub
"Could not load file or assembly" when trying to reference a librar...
@VictorioBerra commented on Sun May 06 2018 Could not load file or assembly when trying to reference a library from a middle-man library. dotnet --version = 2.1.105 General If I have a netcoreapp2 ...
possibly project 2, but that's 5 years old so probably fixed?
Can you give me project and dll, i will try today later?
Or maybe only dll
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.