How do I send a C# file in Visual Studio C# 2008 express edition along with the database in one zip file? -


i have used ms-access(2000-2003) file format , visual studio c# express 2008 edition create winforms application. need satisfy following condition:

all code , referenced assemblies must submitted in 1 zip file. need able unzip , run vs solution without changing settings, adding references or creating databases.

you want mdb go executable, so:

  1. place access mdb file solution right clicking on project , using add existing item.
  2. once have added mdb file project, find in solution explorer , right click on , goto properties.
  3. once there change build action content, , set copy output directory copy if newer.
  4. change references mdb file relative--i.e. @"mydata.mdb"--as copied alongside exe @ compile time.

now database follow executable @ compile , run whether you're in debug or release. doesn't fix situation target machine doesn't support access, not problem can solve through project file.


Comments

Popular posts from this blog

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -

c++ - Warning : overflow in implicit constant conversion -