I've completed a C# program which uses winforms and Microsoft.Speech (both recognition and synthesis) library, built it and it runs fine on the same computer. However when I copy the whole application directory to another computer the program starts and shuts down immediately.
Things I have tried:
- Main method has a try-catch which prints all exceptions. I've tried running the both straight from the directory and command line, both resulting identically the program closing immediately without any exceptions thrown
I've checked that the computer I'm trying to run the executable on has the correct version of .NET framework (my executable uses 4.5.2 and the computer states it already has a newer version)
I've also downloaded the Microsoft.Speech libraries on the new computer, no effect
Obviously I have gone wrong about the whole deployment task here. Most of the beginner guides suggest using the Setup and Deployment project template, but that is no longer supported in Visual Studio. As this is a whole new area of programming to me I'm now completely lost on how to proceed. Please help.