简体   繁体   English

在 Visual Studio 中重命名安装项目中的文件

[英]Renaming file in setup project in visual studio

I have written a WPF/C# desktop application with a standard setup project.我编写了一个带有标准安装项目的 WPF/C# 桌面应用程序。 When the application is installed, an sqlite database is placed locally on the users file system.安装应用程序后,sqlite 数据库会本地放置在用户文件系统上。 Now, I have renamed my app and I want to rename the database as well.现在,我重命名了我的应用程序,我也想重命名数据库。 I have renamed the database file in the solution explorer (the corresponding file in project folder is automatically renamed) and on the File System tab of the setup project.我在解决方案资源管理器中重命名了数据库文件(项目文件夹中的相应文件会自动重命名)和安装项目的文件系统选项卡上。 However, the name of the database under the setup project in the solution explorer is not changed.但是,解决方案资源管理器中安装项目下的数据库名称不会更改。

I am not sure whether this really matters, Source path and TargetName for the setup project database has the new name and everything seems to work.我不确定这是否真的很重要,安装项目数据库的源路径和目标名称具有新名称,并且一切似乎都有效。 But i figure it could be confusing for someone else with dirrerent names for the same database, and I worry it could lead to some problem I cant foresee.但我认为这可能会让其他人在同一个数据库中使用不同的名称感到困惑,而且我担心这可能会导致一些我无法预见的问题。

Does anyone know how to solve this?有谁知道如何解决这个问题?

也许你可以直接从项目文件中编辑它,如果我没记错的话它是一个 xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM