Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 C# 控制台应用程序嵌入了 MS SQL Server Compact 数据库(.sdf 文件)。安装新版本的应用程序时,不得覆盖此文件。
.sdf → 文件属性 → 构建操作:应该选择哪个值?选项包括无、编译、内容、嵌入式资源、EntityDeploy、ApplicationDefinition、页面、资源、SplashScreen、DesignData、DesignDataWithDesignTimeCreatableData 和 XamlAppDef。
构建动作应该是“无”,但更重要的是“复制到输出目录”。这应该是“如果更新则复制”。