I am using the google cloud client libraries in C# and would like to if can run the release build of my project on another computer without the sdk installed. i.e just using an exe and the corresponding libraries.
Asked
Active
Viewed 184 times
0
-
seems to be duplicate. check out here : https://stackoverflow.com/questions/41567548/how-to-authenticate-to-google-cloud-api-without-application-default-credentials – user9405863 Mar 12 '18 at 22:23
-
Yes, the Google Cloud Client libraries are just libraries. You don't need either the .NET SDK or the Google Cloud SDK to be installed in order to run your code. Have you already tried this and run into a problem of some kind? If so, please give more details. – Jon Skeet Mar 15 '18 at 20:36
1 Answers
0
Absolutely! After creating your program, if you don't want the additional library dlls to be hanging around, you'll need to merge them into your exe. By default they are just outputted into your Debug / Release directory (where the exe resides).
To merge them all together, personally I've used Fody Weaver alot, it's very simple and did everything automatically for me: https://github.com/Fody/Fody
Alternatively on big projects I've used ILMerge as well, more on that's already been answered here: Merge DLL into EXE?

Poat
- 327
- 1
- 11
-
The OP wasn't asking about merging the DLLs as far as I can tell - they do say "just using an exe and the corresponding libraries". – Jon Skeet Mar 15 '18 at 20:34