0
votes

My C# console application has embedded MS SQL Server Compact database (.sdf file). When a new version of the application is installed, this file must not be overwritten.

.sdf → File Properties → Build Action: Which value should be chosen? The options are None, Compile, Content, Embedded Resource, EntityDeploy, ApplicationDefinition, Page, Resource, SplashScreen, DesignData, DesignDataWithDesignTimeCreatableData and XamlAppDef.

1

1 Answers

0
votes

The build action should be "None", but more importantly is the "Copy to output directory". This should be "Copy if newer."