Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 将所有图像添加到Package.AppXManifest会导致编译器警告_Visual Studio_Windows 8_Microsoft Metro_Compiler Warnings - Fatal编程技术网

Visual studio 将所有图像添加到Package.AppXManifest会导致编译器警告

Visual studio 将所有图像添加到Package.AppXManifest会导致编译器警告,visual-studio,windows-8,microsoft-metro,compiler-warnings,Visual Studio,Windows 8,Microsoft Metro,Compiler Warnings,我已为我的Windows 8应用商店项目的Package.appxmanifest设置中的“小徽标”指定了win8\u logo\u small.png。创建商店软件包时,会收到以下警告: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1052,9): warning APPX1621: A mixture of images matchi

我已为我的Windows 8应用商店项目的
Package.appxmanifest
设置中的“小徽标”指定了
win8\u logo\u small.png
。创建商店软件包时,会收到以下警告:

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.
虽然这只是一个警告,但我想知道Microsoft希望我对此做些什么,因为图像缩放变体的名称是自动生成的:

win8_logo_small.scale-80.png
win8_logo_small.scale-100.png
...
win8_logo_small.targetsize-16.png
win8_logo_small.targetsize-32.png
如果我将
xxx.targetsize
文件重命名为类似于
xxx.scale-####.png的文件并将其添加到项目中,Visual Studio会自动将该文件复制到
xxx.targetsize-##.png


这是可以解决的问题吗?它需要解决还是只是Windows RT软件包编译器中的一个bug?

scale和targetsize图像应该是互斥的。从

targetsize限定符可以指定特定大小的资源 (以像素为单位)。它主要用于指定文件类型关联 桌面Windows资源管理器中显示的图标或协议图标。这 限定符通常用于方形图像或图标,并指定 只有一个图像维度。系统或应用程序请求 资源(ResourceContext.QualifierValues)必须显式指定 targetsize。没有默认设置如果使用targetsize限定符 在资源上,不应使用比例限定符。


Visual Studio对此可能会更清楚一点,同意,因为应用程序清单UI暗示您可以/应该提供所有这些内容。

我将删除小徽标的.scale图像。