1

I have a C# project with a bunch of dependencies, but I want to store them in another folder from where the executable is.

For example

WTEngine/
/bin
--Dependencies go here
/otherfolder
WTEngine.exe

How do I do that? I move them and the executable can't find them anymore

2 Answers 2

0

This answer for ASP.NET addresses the same issue, and most of the answers can be effectively ported to a desktop executable: How do I reference assemblies outside the bin folder in an ASP.net application?

Also see How do I change the lookup path for .NET libraries referenced via #using in Managed C++?

0

The .NET dependencies are loaded automatically from two places:

You cannot move the dependencies in another folder and have them loaded automatically.

If you decide to load the assemblies manually, check out this question:

How to Load an Assembly to AppDomain with all references recursively?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.