Luc*_*oom 4 compiler-warnings visual-studio microsoft-metro windows-8
我win8_logo_small.png在Package.appxmanifestWindows 8商店项目的设置中指定了"小徽标" .当我创建商店包时,我收到此警告:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1052,9):
warning APPX1621: A mixture of images matching logical name 'win8_logo_small.png' exists
in this project with and without the "scale" or "targetsize" qualifier specified.
For predictable runtime behavior, explicitly specify the scale or target size
in each image asset's file name.
Run Code Online (Sandbox Code Playgroud)
虽然这只是一个警告,但我想知道微软希望我做些什么,因为图像比例变体的名称是自动生成的:
win8_logo_small.scale-80.png
win8_logo_small.scale-100.png
...
win8_logo_small.targetsize-16.png
win8_logo_small.targetsize-32.png
Run Code Online (Sandbox Code Playgroud)
如果我将xxx.targetsize文件重命名为类似xxx.scale-###.png并将其添加到项目中,Visual Studio会自动将文件复制到xxx.targetsize-##.png!
这是可以解决的问题吗?它需要解决还是仅仅是Windows RT包编译器中的错误?
缩放和目标尺寸图像应该是互斥的.从如何使用限定符命名资源
targetsize限定符可以指定特定大小的资源(以像素为单位).它主要用于指定桌面Windows资源管理器中显示的文件类型关联图标或协议图标.此限定符通常用于方形图像或图标,并且仅指定单个图像尺寸.请求资源的系统或应用程序(ResourceContext.QualifierValues)必须明确指定targetsize.没有默认值.如果在资源上使用targetsize限定符,则不应使用缩放限定符.
由于应用程序清单UI暗示您可以/应该提供所有这些,因此Visual Studio可以对此更加清楚一致.
| 归档时间: |
|
| 查看次数: |
2987 次 |
| 最近记录: |