为什么没有创建 Resource.Designer.cs [英] Why is Resource.Designer.cs not created

查看:34
本文介绍了为什么没有创建 Resource.Designer.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个类库(Android 的 Mono)并将文件夹 Resources/Drawable、Resources/Layout 和 Resources/Values 放入其中.

I created a class library (Mono for Android) and put the folders Resources/Drawable, Resources/Layout and Resources/Values in it.

不幸的是,文件 Resource.Designer.cs 不是自动创建的.我已经在 BuildAction "AndroidResource" 上设置了所有 xml-Files ......但没有创建资源文件.

Unfortunately the file Resource.Designer.cs is not created automatically. I've all xml-Files set on BuildAction "AndroidResource"... but no recource file is created.

我还需要做些什么吗?

非常感谢!

推荐答案

不支持类库项目中的资源.资源必须在主应用项目中.

There isn't support for resources in a class library project. Resources must be in the main application project.

这篇关于为什么没有创建 Resource.Designer.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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