1

I have developed an app in WPF using VS 2015. I created a release build for this app. But when I copy this build to any other folder outside it starts properly but does not launch API methods i.e. API hitting methods are not being called or my app is not responding. As it runs properly in debug mode I can't find the reason. Can anybody help?

Rohit
  • 552
  • 3
  • 15

1 Answers1

1

You should to copy ALL dll's from the Release folder. Your exe file is dependent on configuration (yourprogram.exe.config) as well as other assemblies (dll's from your folder). Without these dependencies the application cannot run (because that is how .NET works). All classes and methods are wrapped in dll and if you run your program without some dll, then it means that there are no necessary classes or its methods which worked with other dll's in your Visual Studio.

You can use ILMerge to merge all dependencies into single .exe file to simplify distribution of your application.

More detaiils on ILMerge can be found here: ILMerge on CodeProject

StepUp
  • 36,391
  • 15
  • 88
  • 148