2017-06-22 228 views
1

我試着安裝VS 2017,併爲Windows Mobile開發選擇了選項。 VS 2017已安裝,但安裝Windows Mobile仿真器時出現錯誤。錯誤是「像素格式無效」? 。 我該如何解決這個問題? 這是我的日誌文件: 「 該產品未能上市的工作量和組件安裝由於一個或多個包失敗在VS 2017上安裝Windows模擬器

不完整的工作負載 使用.NET Mobile開發(Microsoft.VisualStudio.Workload.NetCrossPlat,版本= 15.0.26228.0) 通用Windows平臺開發(Microsoft.VisualStudio.Workload.Universal,版本= 15.0.26208.0)

不完整的部件 通用Windows平臺工具(2.0)(Microsoft.VisualStudio.Component.UWP.Support,版本= 15.0.26208.0) 科爾多瓦通用Windows平臺工具(2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,版本= 15.0.26208.0) Xamarin通用Windows平臺工具(2.0)(Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,版本= 15.0.26208.0) Windows 10 Mobile Emulator(週年紀念版)(Microsoft.VisualStudio.Component.Phone.Emulator,版本= 15.0.26208.0) 的Windows 10 SDK(10.0.14393.0)(Microsoft.VisualStudio.Component.Windows10SDK.14393,版本= 15.0.26208.0)

您可以使用以下信息搜索解決方案,修改上述工作負載和組件的選擇,然後重試安裝,或者從機器中刪除產品。

以下是導致上述不完整工作負載和組件出現的各個程序包故障的集合。要搜索這些具體問題的現有報告,請將每個包失敗的URL複製並粘貼到Web瀏覽器中。如果問題已經被報告,您可以在那裏找到解決方案或解決方法。如果問題尚未報告,您可以在其他人能夠找到解決方案或解決方法的情況下創建新問題。

Package'Win10SDK_10.0.14393.795,version = 10.0.14393.79501''未能安裝。 搜索網址:https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.14393.795;PackageAction=Install;ReturnCode=2000 受影響的工作負載 使用.NET Mobile開發(Microsoft.VisualStudio.Workload.NetCrossPlat,版本= 15.0.26228.0) 通用Windows平臺開發(Microsoft.VisualStudio.Workload.Universal,版本= 15.0.26208.0) 受影響的組件 通用Windows平臺工具(2.0)(Microsoft.VisualStudio.Component.UWP.Support,版本= 15.0.26208.0) Cordova通用Windows平臺工具(2.0)(Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version = (2.0)(Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,版本= 15.0.26208.0) Windows 10 SDK(10.0.14393.0)(Microsoft.VisualStudio.Component。 Windows10SDK.14393,版本= 15.0.26208.0) 登錄 C:\用戶\ eskan \應用程序數據\本地的\ Temp \ dd_setup_20170623143603_001_Win10SDK_10.0.14393.795.log 詳細 執行的命令:「C:\ WINDOWS \ SysWow64資料\ windowspowershell \ V1 .0 \ powershell.exe「-NoLogo -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command」&「」「」C:\ Users \ eskan \ Downloads \ Compressed \ Visual.Studio.Enterprise.Pro.Community.2017_p30download.com \ Visual .Studio.Enterprise.Pro.Community.2017_p30download.com \ Win10SDK_10.0.14393.795,version = 10.0.14393.79501 \ WinSdkInstall.ps1「」「-SetupExe sdksetup.exe -SetupLogFolder standalonesdk -PackageId Win10SDK_10.0.14393.795 -LogFile」「 「C:\ Users \ eskan \ AppData \ Local \ Temp \ dd_setup_20170623143603_001_Win10SDK_10.0.14393.795.log」「」-SetupParameters「」「/ features OptionId.AvrfExternal OptionId。WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit/quiet/norestart/OriginalSource「」「」「」C:\ Users \ eskan \ Downloads \ Compressed \ Visual.Studio.Enterprise.Pro.Community.2017_p30download.com \ Visual.Studio.Enterprise。 Pro.Community.2017_p30download.com \ Win10SDK_10.0.14393.795,版本= 10.0.14393.79501 \ sdksetup.exe 「」 「」 「」 「」;退出$ LastExitCode」 返回代碼:2000 返回代碼的詳細信息:像素格式是無效

包‘Win10_Emulator_10.0.14393.0,版本= 10.0.14393.4,芯片= 64’安裝失敗 搜索網址: https://aka.ms/VSSetupErrorReports?q=PackageId=Win10_Emulator_10.0.14393.0;PackageAction=Install;ReturnCode=2000 受影響的工作負載 使用.NET Mobile開發(Microsoft.VisualStudio.Workload.NetCrossPlat,版本= 15.0.26228.0) 通用Windows平臺開發(Microsoft.VisualStudio.Workload.Universal,版本= 15.0.26208.0) 受影響的部件 的Windows 10移動模擬器(週年紀念版)(Microsoft.VisualStudio.Component.Phone.Emulator,版本= 15.0.26208.0) L og C:\ Users \ eskan \ AppData \ Local \ Temp \ dd_setup_20170623143603_002_Win10_Emulator_10.0.14393.0.log 詳細信息 執行的命令:「c:\ windows \ syswow64 \ windowspowershell \ v1.0 \ powershell.exe」-NoLogo-NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command「&」「」C:\ Users \ eskan \ Downloads \ Compressed \ Visual.Studio.Enterprise.Pro.Community.2017_p30download.com \ Visual.Studio.Enterprise.Pro.Community.2017_p30download。 com \ Win10_Emulator_10.0.14393.0,version = 10.0.14393.4,chip = x64 \ WinSdkInstall.ps1「」「-SetupExe EmulatorSetup.exe -SetupLogFolder emulator -PackageId Win10_Emulator_10.0.14393.0 -LogFile」「」C:\ Users \ eskan \ AppData \ Local \ Temp \ dd_setup_20170623143603_002_Win10_Emulator_10.0.14393.0.log「」「-SetupParameters」「」/ quiet/norestart/OriginalSource「」「」「」C:\ Users \ eskan \ Downloads \ Compressed \ Visual.Studio.Enterprise .Pro.Community.2017_p30download.com \ Visual.Stu dio.Enterprise.Pro.Community.2017_p30download.com \ Win10_Emulator_10.0.14393.0,版本= 10.0.14393.4,芯片= 64 \ EmulatorSetup.exe 「」 「」 「」 「」;退出$ LastExitCode 「 返回代碼:2000 返回代碼細節:像素格式無效

。」

回答

3

它是Windows系統錯誤。從WinError.h SDK文件:

// 
// MessageId: ERROR_INVALID_PIXEL_FORMAT 
// 
// MessageText: 
// 
// The pixel format is invalid. 
// 
#define ERROR_INVALID_PIXEL_FORMAT  2000L 

它屬於一組爲OpenGL保留的錯誤代碼。這在Windows上並沒有太多的用處,但是由於它是DirectX的Unix等價物,所以它的確迴歸了。您正在嘗試安裝的模擬器會啓動Unix。

所以最明顯的結論是從字面上看,你的視頻適配器運行在一個不尋常的模式。現在很難做,大多數人的適配器每像素運行32位,我不認爲現代Windows版本(> = 8)甚至不允許修改它。 Win7做到了。模擬器肯定需要32bpp才能完成他們的工作。

如果這根本不匹配,那麼「2000」完全是一個很好的數字,它可能意味着什麼。遠射要穿過trouble-shooter。我沒有看到很多程序員遇到這個問題,你會接近得出結論說機器不能勝任這項工作。我的錢在視頻適配器設置上。

1

您應該在沒有Microsoft Mobile Emulator for Windows 10的情況下安裝並遵循以下說明。

  1. 用提升的CMD修復您的系統並輸入sfc /scannowDISM.exe /Online /Cleanup-image /Restorehealth
  2. 如果有錯誤重新安裝Windows 10 - 保持設置和應用程序。
  3. 再次運行sfc /scannowDISM.exe /Online /Cleanup-image /Restorehealth直到沒有錯誤。也許在互聯網上搜索運行這些應用的更多提示。
  4. 下載仿真器安裝文件:https://go.microsoft.com/fwlink/p/?LinkId=822928
  5. 選擇第二個選項並下載所有安裝文件。
  6. 使用管理權限啓動EmulatorSetup.exe

VS2015模擬器存在類似的問題。請參考https://social.msdn.microsoft.com/Forums/vstudio/en-US/ecd38931-63dd-42ac-b3f2-30768db2e50a/vs-2015-emulators-for-windows-mobile-10010240-cannot-be-installed-error-2000?forum=vssetup

或者根據https://msdn.microsoft.com/en-us/library/ms838863.aspx,更新圖形驅動程序,因爲錯誤代碼(= 2000)是由圖形驅動程序引起的。此鏈接有幫助:https://help.mojang.com/customer/portal/articles/928493