2012-12-19 20 views
5

这些图像默认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> 
+1

您的资产文件夹中的所有图像都是默认的;那名字是不是用.scale-xxx?装饰的?一旦你有一个明确的比例因子,非装饰的不会自动被视为默认值(100)。这至少可以解释第一种情况。 –

+0

@ JimO'Neil我不添加缩放图像,我只添加需要的图像,但是:错误有效载荷文件'C:\ Users \ Mert \ Documents \ Visual Studio 2012 \ Projects \ Y \ Y \ Assets \ StoreLogo.scale-100 .png'不存在。应用程序是好的,我会发布,但这个错误烦人! – mert

+0

很奇怪......你是否也在File> New Project> Grid App上得到这个结果? –

回答

10

我昨天也有这个问题。我注意到,当我从断言中删除图像时,它不会从解决方案资源管理器中删除它的出现Visual Studio。从解决方案资源管理器中删除这些文件修复了问题
干杯......!

3

我只是碰到了这个自己。

看来Visual Studio无法处理标识的试错法。

我摆脱了它通过手动编辑.csproj文件并从那里删除丢失的资产。

2

将“生成应用程序包”设置设置为“从不”可解决此问题。

相关问题