Search code examples
c#databasevisual-studio-2017local-database

How do I publish a windows forms application in visual studio 2017 with a localDB?


I can't seem to find a simple answer to this on google. I need to create an executable of my application, so that it can easily be opened and used. The application has a database in it, which is made within the same solution in visual studio. I have tried to simply publish the application, but then the database doesn't seem to work as it immediately shows exeptions every time it needs the database.


Solution

  • I managed to make it work with the answer of the question in this link: publish a project with local database