c#程序在VS2010调试中涉及Web服务工作,但在构建到发布版本时不起作用
我使用VS2010编写c#项目,涉及到Web服务调用。我将所有 dll 的属性设置为“复制到本地”。当我在VS2010中调试该程序时,它可以运行。然后我将程序构建为发行版,例如 test.exe。我双击test.exe,但似乎不起作用。任何建议表示赞赏。 或者您能否建议当我运行 test.exe 时,我应该将哪些文件复制到与 exe 文件相同的目录中?
I use VS2010 to write a c# project, which involves web service calling. I set all dlls' properties as "copy to local". When I debug the program in VS2010, it works. Then I build the program as release, e.g., test.exe. I double click test.exe, but it seems that it does not work. Any suggestions are appreciated.
Or could you suggest when I run test.exe, what files should I copy into the same directory with the exe file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要 bin\release 目录中包含的所有文件(您不能只获取 .exe 文件本身)。如果您尝试从 bin\release 目录运行可执行文件,您始终可以验证它是否具有与 bin\debug 目录相同的所有文件(除了 .pdb 文件)。
You need all of the files included in the bin\release directory (you can't just take the .exe file by itself). If you are attempting to run the executable from the bin\release directory you could always validate that it has all of the same files as the bin\debug directory (besides the .pdb files).