当我发布Windows窗体应用程序时,它在我开发它的机器上运行得很好..但是当我把它放在另一台笔记本电脑上它不起作用。双击.exe文件没有错误,没有任何反应我在我的应用程序中有一个本地数据库。连接字符串是“Data Source =(LocalDB)\ MSSQLLocalDB; AttachDbFilename = | DataDirectory | \ Database1.mdf; Integrated Security = True
发布设置是这样的
从here下载和ssqllocalDB手动安装它,应用程序现在工作正常。