【问题标题】:How to include and link Sqlite database file in Setup Project如何在安装项目中包含和链接 Sqlite 数据库文件
【发布时间】:2018-03-15 16:44:27
【问题描述】:

我使用 C#、Sqlite 和实体框架开发了 WPF 桌面应用程序。现在开发已经完成,尝试创建安装项目。

但我不知道如何在我的安装文件夹中包含 Sqlite 数据库文件 (myDb.sqlite) 以及如何修改我的 App.Config 中的 ConnectionString 以链接到安装文件夹中的这个 (myDb.sqlite)?

我使用以下扩展来创建安装项目。 https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9

【问题讨论】:

    标签: c# sqlite setup-project


    【解决方案1】:

    试试看:

    Step : 1  =>  First in VS2017 Install Microsoft visual Studio Installer Project - > Download -> Install 
                        Or
                   Go To the VisualStudio 2017 -> tool -> extension and update -> install.
    Step : 2  =>  Create a new project -> Other Object Type -> Setup Project.
    Step : 3  => after open that project you can see that In the LEFT PAN 3 files
                  1> Application Folder.
                  2> User's Desktop.
                  3> User's Programs menu.
    Step : 4  => Click  1> Application Folder and paste our all file which we want to get in backup.
    Step : 5  => find .exe file from application folder and that copy pase, that rename it and give same name, than after one drag and drop to (User's Desktop). and than again same copy pase .exe file than same name rename it and drag and drop to the (User's Programs menu).
    Step : 6  => than right click to the project set auther name and you can see diffrent diffrent property and you can change as you want.
    Step : 7  => Build The Project.
    Step : 8  => Go To The Project Location In our windows explorer.
    Step : 9  => open project foldre Click to The "Release" folder install it.
    

    After Install the application you can use the with SQlLite Database

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-15
      • 2021-08-01
      • 2018-03-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多