相关疑难解决方法(0)

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

win8_logo_small.pngPackage.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包编译器中的错误?

compiler-warnings visual-studio microsoft-metro windows-8

4
推荐指数
1
解决办法
2987
查看次数