简体   繁体   English

部署Winform应用程序

[英]Deployment Of Winform Application

I tried to deploy a WinForms project in which I am using a resource file. 我试图部署一个正在使用资源文件的WinForms项目。 I tried publish method for deployment. 我尝试了发布方法进行部署。 It builds properly but when I tried to run the application is giving me the error "Resource file not found Error". 它可以正确构建,但是当我尝试运行该应用程序时,出现错误“找不到资源文件错误”。 This error message I have customized in my application. 我已在应用程序中自定义此错误消息。 My question is, how to add a resource file? 我的问题是,如何添加资源文件?

You can check your Namesapce. 您可以检查您的Namesapce。 That should match. 那应该匹配。

右键单击资源文件,单击“ Properties然后将其构建操作设置为“ Embedded Resource

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM