2

I copied my .exe, plus its vshost.exe, plus the sqlite database file it uses, but it won't run outside of Visual Studio. There's no err msg when I 2-click my .exe - it just won't run. What is it lacking?

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

1 Answers1

4

If you're on your local box, you would need:

  • The main application.exe (NOT vshost.exe - These are for Visual Studio debugging only.)
  • application.exe.config if there are any settings associated with the app.
  • Any DLLs the application references. Since you're using SQLite, you likely have a dependency on some SQLite library.

If you're deploying to another computer, then you should also consider the following:

  • Is the .NET Framework you're targeting installed on the target computer?
  • You should also build in "Release" instead of "Debug", since debug DLLs may be missing.

Generally, the following files are NOT necessary:

  • .pdb files
  • Any vshost files
Community
  • 1
  • 1
Will Eddins
  • 13,628
  • 5
  • 51
  • 85