I'm trying to figure out how to include SQLite in a click-once program that will be distributed on the Internet.
Currently I have the SQLite database in the /bin folder and it all works.
Should I be using the /bin folder to insure the database is included with the published program?
My connection string has the complete path to the /bin folder that uses my user-name, etc. But that path will not be know at run-time.
I'm guessing I need to find the path to the database in Form1_Load( ) and change the connection string? But I don't know how to find the path.
Am I on the right track here?
Thank you.
使用AppDomain.CurrentDomain.BaseDirectory
来获取您的应用程序的执行路径:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.