这些图像默认VS图像。但它不起作用。Windows 8应用程序清单:图像资产错误
Error 4 Payload file
'C:\Users\Mert\documents\visual studio 2012\Projects\Y\P\Assets\StoreLogo.scale-100.png' does not exist.
Error 3 Payload file
'C:\Users\Mert\documents\visual studio 2012\Projects\Y\P\Assets\SplashScreen.scale-100.png' does not exist.
Error 2 Payload file
'C:\Users\Mert\documents\visual studio 2012\Projects\Y\P\Assets\SmallLogo.targetsize-32.png' does not exist.
Error 1 Payload file
'C:\Users\Mert\documents\visual studio 2012\Projects\Y\P\Assets\SmallLogo.scale-100.png' does not exist.
我知道问题是不可理解的,但我没有找到不同的方式来解释。
清单文件:
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
<Identity Name="" Publisher="CN=Mert" Version="1.0.0.0" />
<Properties>
<DisplayName>Y</DisplayName>
<PublisherDisplayName>Mert</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.2.1</OSMinVersion>
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Y.App">
<VisualElements DisplayName="Y" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="Y" ForegroundText="light" BackgroundColor="#464646">
<DefaultTile ShowName="allLogos" />
<SplashScreen Image="Assets\SplashScreen.png" />
</VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
</Capabilities>
</Package>
您的资产文件夹中的所有图像都是默认的;那名字是不是用.scale-xxx?装饰的?一旦你有一个明确的比例因子,非装饰的不会自动被视为默认值(100)。这至少可以解释第一种情况。 –
@ JimO'Neil我不添加缩放图像,我只添加需要的图像,但是:错误有效载荷文件'C:\ Users \ Mert \ Documents \ Visual Studio 2012 \ Projects \ Y \ Y \ Assets \ StoreLogo.scale-100 .png'不存在。应用程序是好的,我会发布,但这个错误烦人! – mert
很奇怪......你是否也在File> New Project> Grid App上得到这个结果? –