C#windows应用程序构建未运行

问题描述 投票:0回答:1

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

发布设置是这样的

enter image description here enter image description here

c# .net windows visual-studio winforms
1个回答
0
投票

here下载和ssqllocalDB手动安装它,应用程序现在工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.