简体   繁体   English

Windows 10的最低SDK版本(UWP)

[英]Minimum Sdk Version Windows 10 (UWP)

I'm using VS2015 with SDK 10240 . 我正在将VS2015与SDK 10240一起使用。

I've build my application already (with C# ) ... But I can't run it on my windows 10 mobile cause it's build 10130. 我已经使用C#构建了我的应用程序...但是由于它的版本是10130,所以我无法在Windows 10移动版上运行它。

How can I change min SDK of my application ? 如何更改应用程序的min SDK

Do I've to download and install the old SDK ? 我必须下载并安装旧的SDK吗?

Can I debug it on my Windows 10 mobile? 我可以在Windows 10移动版上对其进行调试吗?

To manually work around this (don't forget, the app may break on phone), you can do the following: 要手动解决此问题(请记住,该应用可能会在电话上断开),您可以执行以下操作:

  1. Right click on your project in the solution explorer 在解决方案资源管理器中右键单击您的项目
  2. Click "Unload Project" 点击“卸载项目”
  3. Right click again and edit [yourapp].csproj 再次右键单击并编辑[yourapp] .csproj
  4. Find TargetPlatformMinVersion and change it (in this case, to 10.0.10130.0 or lower) 查找TargetPlatformMinVersion并将其更改(在这种情况下,为10.0.10130.0或更低)
  5. Save the file and reload the project (right click on the project in solution explorer, "Reload project") 保存文件并重新加载项目(右键单击解决方案资源管理器中的项目“重新加载项目”)

Your mileage may vary with this as 10130 is a prerelease build of Windows.Mobile. 由于10130是Windows.Mobile的预发布版本,因此您的里程可能会有所不同。 If you need to test/debug on Windows.Mobile, I recommend using the Windows 10 10.0.10240.0 emulators, but I recognize there are some advantages to trying on a real phone. 如果您需要在Windows.Mobile上进行测试/调试,建议您使用Windows 10 10.0.10240.0仿真器,但是我知道在真实手机上尝试使用某些优势。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM