2
Soon I had to create an installer for desktop application in c#, and as in visual studio 2013 there was Publish that already created Setup and Auto-Update I ended up using it for convenience, but now I have a problem, every time I publish a new version of the application and it is downloaded, it creates a new empty database and somehow "arrow" that database for the application. If I have the application restored to the previous version, the old database is there intact with all the data.
I imagine that it is easy to solve this problem, and it must be just some parameter that I did not take into account when setting up, the problem that I am not sure what to look for. And google searches return me results that are not really the answer to my problem.
Your application uses Entity Framework?
– Leonel Sanches da Silva
No. All in the same hand.
– Christian Beregula
How is your publication procedure? Can you describe the steps?
– Leonel Sanches da Silva
Ta well default even, Build -> Publish -> next next next Finish.
– Christian Beregula
In the Settings I touched was just the basic configure to look for updates, and where I should look, but I saw nothing related to database
– Christian Beregula
Yes, but what about Connection strings of
App.Config
Where do they point? How do they look at the end of the publication?– Leonel Sanches da Silva
the database connection string is so:
Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\DataBase\Database1.mdf;Integrated Security=True
– Christian Beregula