-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[msbuild] warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. #3876
Comments
Bonjour, I could confirm the warning with the following environment (all stable): https://gist.github.com/VincentDondain/57b9b3f47019b174ee6d6f5955761097 Same warning happened with XI 11.6.1.4 Here's a simple test case: https://www.dropbox.com/s/t4dmc4kcj0f0ri4/BDLib.zip?dl=0 |
to clarify: there is not build error (framework successfully links with project), just want to get warning free build |
@ajax16384 noted, it's why it was marked as an enhancement (and not a bug) |
This also occurs with Xamarin.Mac binding projects. |
I believe something like this patch should work: https://git.io/fxvuG However the fix does not work with xbuild, which we currently use with our tests, so if I fix this warning, I break our tests. So it's blocked until #4111 ever lands. |
It appears that #4111 is in (unless I'm misreading something). Is there any chance of this ticket proceeding? |
Yes, and PRs are welcome if you'd like to contribute one. :) One reason I haven't worked on this yet is that I'm doing #5167 which adds and option that changes how this is done completely. |
Any update? |
Given the fact that this issue is still open - no. |
+1 |
So for future me or anyone else looking at this: We set these in here. The error message suggests we could change them to Embedded directly:
However, that did not work (we stopped embedding the lib). Any change here will require more understanding that a brief once over (and making sure we don't regress bindings. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
…nstead of ManifestResourceWithNoCulture. Fixes dotnet#3876. Fixes this warning: warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName. There is a slight difference with regards to the warning message: the Type metadata is set to 'Non-Resx' instead of 'Resx' (because these resources aren't resx files). Fixes dotnet#3876.
…nstead of ManifestResourceWithNoCulture. Fixes #3876. (#9525) Fixes this warning: warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName. There is a slight difference with regards to the warning message: the Type metadata is set to 'Non-Resx' instead of 'Resx' (because these resources aren't resx files). Fixes #3876.
Steps to Reproduce
Expected Behavior
Build with no warns
Actual Behavior
Build with warning:
[skip]Microsoft.Common.CurrentVersion.targets(3214,5): warning MSB9004: ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName.
Possible reason
msbuild file Xamarin.iOS.ObjCBinding.CSharp.targets ( https://github.com/xamarin/xamarin-macios/blob/master/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.ObjCBinding.CSharp.targets ) contains rule for PrepareNativeReferences task which use deprecated syntax
Environment
The text was updated successfully, but these errors were encountered: