Xamarin:不支持 @(Content) 构建操作 [英] Xamarin: @(Content) build action is not supported

查看:47
本文介绍了Xamarin:不支持 @(Content) 构建操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VS Pro 2015(Xamarin) 中开发 Android 应用程序.一切正常,直到今天早上我更新了我的 Android 设备.我能够构建我的应用程序,但在部署到我的设备时我收到一堆警告,说@(Content) 构建操作不受支持 其他人似乎已通过将 AndroidManifest.xml 构建操作设置为 None 来修复,但我的 AndroidManifest.xml 构建操作是已经设置为无.

I'm developing a Android App in VS Pro 2015(Xamarin). Everything worked fine until this morning when I updated my Android device. I'm able to build my application but while deploying to my device I get a bunch of warnings that say @(Content) build action is not supported which other people seem to have fixed by setting the AndroidManifest.xml build action to None but my AndroidManifest.xml's build action is already set to none.

我已检查警告中的所有指定文件.他们中的大多数是 .png 与 Build action 设置为 Android Resource (我也试过 Build Action -> Content 没有运气)其中一些是 .xml,其中 Build action 设置为 Content.

I have checked all the specified files in the warnings. Most of them are .png with Build action set to Android Resource (I've also tried with Build Action -> Content with no luck) and a couple of them are .xml with Build action set to Content.

这是我的代码窗口的屏幕截图.

Here is the screenshot of my code window.

对于重复标记:我已经在堆栈交换上尝试了与此相关的 Xamarin 帖子.几乎不应该有 20 个帖子!但没有一个适合我.

For duplicate markers: I have already tried the Xamarin posts related to this on stack exchange. Hardly there should be 20 posts! But none worked out for me.

推荐答案

右键单击AndroidManifest.xml,然后选择属性".

Right click on the AndroidManifest.xml and then select "Properties".

在属性窗口 -> 将构建操作"设置为无


我以为参考,希望它有帮助.


I take it as reference, hope it helps.

这篇关于Xamarin:不支持 @(Content) 构建操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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