为 Windows 10 个 UWP 应用程序向 Visual Studio 模拟器添加解决方案

Add Resolutions to Visual Studio Simulator for Windows 10 UWP Apps

如何在 win 10 的默认分辨率列表中添加/更改分辨率 Visual Studio 2015 Simulator

您可以通过像这样创建 XML 配置来为模拟器添加更多分辨率:

<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfHardwareConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <HardwareConfiguration>
        <Name>Surface55</Name>
        <DisplayName>Surface 55"</DisplayName>
        <Resolution>
            <Height>1080</Height>
            <Width>1920</Width>
        </Resolution>
        <DeviceSize>55</DeviceSize>
        <DeviceScaleFactor>100</DeviceScaleFactor>
    </HardwareConfiguration>
</ArrayOfHardwareConfiguration>

您需要按如下方式命名文件:

HardwareConfigurations-{Name}.xml

在我的示例中,这将是:

HardwareConfigurations-Surface55.xml

然后将 XML 文件弹出到以下文件夹中,将 {version} 替换为您安装的版本:

C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\{version}\HardwareConfigurations

创建名为 HardwareConfigurations 的文件夹(如果尚不存在)