I have a compiled .NET core app which I am planning to run in three major OSs. When I am trying to test my build in GitBash on Windows 10, once I build the app I get a lot of files along with the executable ( the exe plus a myriad of DLLS ).
What's the best practice to "install" this app in the machine within PATH? I mean, If I place all the files directly in /bin I get Bash to autocomplete not only my command but all the dll files present on that folder.
Of course If I place the executable in /bin alone and the DLLs in other folder then the app does not work as it cant find the DLLs.
Whats the right solution for this?
EDIT - Im being asked about which Linux version Ill be installing this app. Well its a pretty generic question, but probably Ill install it in Ubuntu 18.04. for Linux and in Windows 10. When I say generic I mean if I write an app in Go, I can directly place the executable in any of the folders in PATH, it does not make any difference other than following a certain standard since its a single executable, while in this case I have a bunch of files I really dont have a alternative than dealing with them.