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:
- place access
mdbfile solution right clicking on project , using add existing item. - once have added
mdbfile project, find in solution explorer , right click on , goto properties. - once there change build action content, , set copy output directory copy if newer.
- change references
mdbfile 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
Post a Comment