编译项目时出错 [英] error when compile my project

查看:83
本文介绍了编译项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


我编译项目。但是在命令InitializeComponent();将出现初学者形成错误



public MainForm()

{

InitializeComponent();







编译后显示此错误:



找不到适合指定文化或中性文化的资源。确保在编译时将My.Resources.Resources.resources正确嵌入或链接到程序集myprj中,或者所有所需的附属程序集都是可加载和完全签名的。



非常感谢

hi
i compile the project . but on command "InitializeComponent();" of starter form an error will be appeared

public MainForm()
{
InitializeComponent();



this error be shown after compile :

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "My.Resources.Resources.resources" was correctly embedded or linked into assembly "myprj" at compile time, or that all the satellite assemblies required are loadable and fully signed.

thanks very much

推荐答案

这可能是由于命名空间不匹配造成的。



试试这 - 右键单击​​解决方案资源管理器中的[ResourceFile]。然后将Build Action属性Compile设置为Embedded Resource



最后再次重建并查看问题是否已解决。



希望有帮助:)
It can be due to mismatch in namespace.

Try this - right click on the [ResourceFile] from Solution Explorer. Then set Build Action property "Compile" to "Embedded Resource"

Finally rebuild once again and see if your problem is resolved.

Hope it helps :)


hi


我的项目中没有编译

在某个项目中有以下标签:



申请

编译

调试

参考资料

资源

....





但在我的项目中,我看到以下标签:



申请

构建

构建活动

调试

参考资料

资源

....





为什么?我怎么能看到第一种情况
hi
there is not "Compile" in my project
in some project there is following tabs:

application
compile
debug
Refrences
Recources
....


but in my project i see following tabs:

application
Build
Build Events
debug
Refrences
Recources
....


why? how can do untile i see as first case


这篇关于编译项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆