I have a problem with publish of my WPF application.
Database doesn't attach by project, and located in folder Debug
, and connection string is :
<connectionStrings>
<add name="DataFormConnection"
connectionString="Server=(localdb)\v11.0; Integrated Security=True;AttachDBFilename=|DataDirectory|\DBT.mdf; Connection Timeout = 30"
providerName="System.Data.SqlClient" />
</connectionStrings>
Accession takes place after this string
In VS2012 it works great, but when I publish the application, database is not in the folder AppFiles
.
Just trying to publish database through installshield but also to no avail.
How all the same right to register the connection string? Thanks!