.net Setup project force new file replacement on reinstall

后端 未结 1 850
你的背包
你的背包 2020-12-22 03:43

I have a setup project that install a couple of projects and a couple of external files (one of which is a SQLite Database) - everything worked fine until i\'ve recently mod

相关标签:
1条回答
  • 2020-12-22 04:15

    One month and a few days later... So it turns out that there is no way to do this to a file added directly in the Deployment project in VS2008 (used to be possible in VS2005...).

    But after many many attempts i finally figured out a decent workaround.

    • I've included the file "Database.sqlite" directly in a windows forms project (Database) with the following properties: "Build Action -> Content file" and "Copy to Output Directory -> Copy always"

    • Then i added it to the deployment project via Project Output->Database->Content Files

    Now apparently everything works fine and the file gets replaced every time i change it and rebuild the deployment project.

    This one put up quite a fight ^^

    0 讨论(0)
提交回复
热议问题