Xamarin.forms 如何从生成中排除WinPhone

Xamarin.forms 如何从生成中排除WinPhone,xamarin.forms,uwp,Xamarin.forms,Uwp,我有一个Xamarin.Forms应用程序,它支持iOS、Android和UWP。当我试图使用Azure管道将其提交到Windows应用商店时,我对后者有一个问题。我一直收到一个错误: 状态400:{“代码”:“InvalidParameterValue”,“数据”:[],“详细信息”:[],“消息”:“AllowTargetFutureDeviceFamilies未使用所有支持的平台更新:[桌面、移动设备、Xbox、全息],“源”:“摄取Api”,“目标”:“AllowTargetFuture

我有一个Xamarin.Forms应用程序,它支持iOS、Android和UWP。当我试图使用Azure管道将其提交到Windows应用商店时,我对后者有一个问题。我一直收到一个错误:

状态400:{“代码”:“InvalidParameterValue”,“数据”:[],“详细信息”:[],“消息”:“AllowTargetFutureDeviceFamilies未使用所有支持的平台更新:[桌面、移动设备、Xbox、全息],“源”:“摄取Api”,“目标”:“AllowTargetFutureDeviceFamilies”}关联ID:d6b9d6a2-6906-4908-9832-28c8f3c45a36

以下是这对合作伙伴中心的看法:

问题似乎与app.xap和Windows Phone有关。我们不支持Windows Phone,因此下面是它在我们的软件包中的外观。appxmanifest:

<Dependencies>
   <TargetDeviceFamily Name="Windows.Mobile" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
   <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>

如何提交我的应用程序?如果这是问题所在,我如何摆脱Windows Phone?

UWP项目中有哪个
TargetPlatformVersion
TargetPlatformMinVersion
呢?@PavelAnikhouski不是我在问题中提到的吗?如果不是那样的话,我在哪里能找到它?我不认为它是一样的。打开UWP项目的属性并检查
应用程序
选项卡下的
目标
部分。或者在
csproj
file@PavelAnikhouski哦,我明白了。10.0.18362.0 10.0.16299.0您需要检查
零售
配置,可能有问题(与
调试
发布
相比)
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
steps:
- task: richardfennellBM.BM-VSTS-Versioning-Task.Version-APPX-Task.VersionAPPX@2
displayName: 'Bump UWP Versions'
inputs:
  VersionNumber: '$(Build.BuildNumber).0'
  InjectVersion: true

variables:
   BuildConfiguration: 'Release'

steps:
  - task: VSBuild@1
  displayName: 'Build project **\*UWP.csproj'
  inputs:
     solution: '**\*UWP.csproj'
     msbuildArgs: '/p:AppxBundlePlatforms=x86 
 /p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\AppxPackages\\" 
 /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
     platform: x86
     configuration: '$(BuildConfiguration)'
     clean: true