c# - 为 Visual Studio 安装 Hyper-V 模拟器时出错

标签 c# android visual-studio xamarin visual-studio-2015

我在 Win 10 64 位操作系统上安装了 Visual Studio 2015 Community Edition。

已下载并尝试安装 Visual Studio Emulator for Android 但失败并出现以下异常。

[1450:1814][2016-10-01T21:56:43]e000: MUX: ERROR: Could not load file or assembly 'Microsoft.VisualStudio.Utilities.Internal.Net35, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

[1450:1814][2016-10-01T21:56:43]e000: MUX: Stack: at Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings) at Microsoft.VisualStudio.Telemetry.TelemetryService.get_DefaultSession() at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.AppInsightsStartSession(BundleInformation bundle) at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.Initialize(Boolean IsBackFromReboot, BundleInformation bundle, ICommand command, CommandLineArgumentsStore commandLine) [1450:1814][2016-10-01T21:56:43]i000: MUX: Ux Initialized [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\vsemu' with a timeout of 0 ms [1450:1814][2016-10-01T21:56:43]i000: MUX: Mutex 'Global\vsemu' ownership: True [1450:1814][2016-10-01T21:56:43]i000: MUX: Seen existing cache mutex 'Global\vsemu CacheMutex': False [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\vsemu CacheMutex' with a timeout of 60000 ms [1450:1814][2016-10-01T21:56:43]i000: MUX: Mutex 'Global\vsemu CacheMutex' ownership: True [1450:1EC8][2016-10-01T21:56:43]i100: Detect begin, 15 packages [1450:1814][2016-10-01T21:56:43]i000: MUX: Wait for Detect to complete [1450:1EC8][2016-10-01T21:56:43]i000: MUX: Detection Phase

最佳答案

Simsons ,您说您正在“寻找来自可靠和/或官方来源的答案。”

我读过 here一个回答说:

First check if Hyper-V is enabled on your machine in "Turn Windows features on or off". You may also need to enable the settings for this in your BIOS (VT-x and SLAT).

Installing the Windows 10 tools separately may be faster than re-running the full installer, https://dev.windows.com/en-us/downloads/install-dev-tools-visual-studio-2015

Use the "If you've already installed Visual Studio 2015 RC" option to "Add the tools", this will offer the option to add the visual studio emulator for android during setup.

EDIT:

Further to this, it seems that it's not possible to enable Hyper-V on my iMac 27" Late 2013 on Insider Preview Build 10074 as VT-x becomes disabled every time the machine reboots after selecting to install Hyper-V from "Turn Windows features on or off". This causes the installation to rollback after the reboot, very frustrating!

EDIT:

This problem occurred after doing a machine refresh, however doing a full reset from the recovery options seems to have fixed the issue and have now successfully installed Hyper-V.

In this case I have not installed any of the Bootcamp software, I initiated the Hyper-V install as soon as the machine booted into the desktop environment.

Visual Studio Community 2015 RC is currently installing, I will report back if this is also successful

EDIT: SUCCESS!

这是对类似问题的旧答案。

希望对你有帮助。

胡安

关于c# - 为 Visual Studio 安装 Hyper-V 模拟器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39809212/

相关文章:

c# - 在 Entity Framework 5 中重新创建和处理 dbcontext

java - ArrayList 重复元素出现在 ListView 中

android - 不同设备上的listview空指针异常

jquery - jQuery 智能感知插件现在可用于 Visual Studio 吗?

visual-studio - 找不到引用的组件 'System'。 (或与此相关的任何其他组件)

visual-studio-2010 - 无法导入 key 文件 'blah.pfx' - 错误 'The keyfile may be password protected'

c# - 这行来自 ILSpy 反编译器的代码是否有效?

c# - SerialPort UnauthorizedAccessException

c# - 无法使用 SetModelValue 修改 ModelState

Android - 如何在录音时添加增益控制