Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.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
Cordova config.xml中的Windows 10图标_Windows_Visual Studio_Cordova_Sencha Touch_Phonegap Cli - Fatal编程技术网

Cordova config.xml中的Windows 10图标

Cordova config.xml中的Windows 10图标,windows,visual-studio,cordova,sencha-touch,phonegap-cli,Windows,Visual Studio,Cordova,Sencha Touch,Phonegap Cli,我正在使用cordova为windows 10构建sencha touch应用程序。 对于iOS和Android,它很好地解释了如何配置各种图标和屏幕。 但是对于windows,示例中显示的图标很少,我尝试按照示例中的方式配置它们,但是当我使用visual studio打开windows 10内置解决方案时,我看到所有图标都是默认的cordova图标,而不是我配置的图标 我已经在config.xml中添加了这些行 <platform name="wp8"> <splas

我正在使用cordova为windows 10构建sencha touch应用程序。 对于iOS和Android,它很好地解释了如何配置各种图标和屏幕。 但是对于windows,示例中显示的图标很少,我尝试按照示例中的方式配置它们,但是当我使用visual studio打开windows 10内置解决方案时,我看到所有图标都是默认的cordova图标,而不是我配置的图标

我已经在config.xml中添加了这些行

<platform name="wp8">
    <splash src="../resources/splashscreen/wp8/SplashScreenImage.png" width="768" height="1280"/>
    <icon src="../resources/icons/wp8/ApplicationIcon.png" width="99" height="99" />
    <!-- tile image -->
    <icon src="../resources/icons/wp8/Background.png" width="159" height="159" />
</platform>

<platform name="windows8">
    <splash src="../resources/splashscreen/windows8/SplashScreenImage.png" width="620" height="300"/>

    <icon src="../resources/icons/windows8/logo.png" width="150" height="150" />
    <icon src="../resources/icons/windows8/smalllogo.png" width="30" height="30" />
    <icon src="../resources/icons/windows8/storelogo.png" width="50" height="50" />
</platform>

但在VisualStudio中,我看到了这些图标,它们都来自cordova默认图标,即带有“droid”的图标:

是否有办法在config.xml中配置Windows 10图标? 在cordova的文档中,我找不到关于这个的任何信息


提前感谢您在config.xml中为Windows平台图标添加以下内容:

<platform name="windows">
    <icon src="res/windows/storelogo.png" target="StoreLogo" />
    <icon src="res/windows/smalllogo.png" target="Square30x30Logo" />
    <icon src="res/windows/Square44x44Logo.png" target="Square44x44Logo" />
    <icon src="res/windows/Square70x70Logo.png" target="Square70x70Logo" />
    <icon src="res/windows/Square71x71Logo.png" target="Square71x71Logo" />
    <icon src="res/windows/Square150x150Logo.png" target="Square150x150Logo" />
    <icon src="res/windows/Square310x310Logo.png" target="Square310x310Logo" />
    <icon src="res/windows/Wide310x150Logo.png" target="Wide310x150Logo" />
</platform>

将自定义图标放置在res/windows文件夹中

当您构建应用程序时,它将使用这些图标


还要注意,在代码中使用了platform name=“windows8”,它应该是“windows”

您是使用Visual Studio构建应用程序还是使用Adobe/Phonegap基于云的服务?@JesseMonroy650我使用的是Visual Stidio这不是Phonegap构建Phonegap构建是Adobe/Phonegap基于云的构建服务。此常见问题解答也会有所帮助。有没有想过?新的VisualStudio TACO没有图像资产选项,编辑config.xml文件似乎不起作用。