I just updated my Visual Studio 2015 to the latest Tools for Apache Cordova Update 8.1. I am now not able to select any emulators because the debug target dropdown is disabled. How can I get it re-enabled?
I have tried "Clear Cordova Cache" under Options and rebuilding the solution, but it's still disabled. Prior to updating from Update 8 to 8.1, everything was working fine.
This is what my toolbar looks like now:
Update
I have tried repairing VS 2015, then uninstalling TACO, reinstalling TACO Update 8.1. Now when I load up a Cordova project, the Debug Target dropdown is enabled, but only with the Google Android Emulator and Ripple emulators in the list. I cannot add any VS Android Emulators. Upon loading the project, I'm getting this error:
Looking at the ActivityLog.xml, at the very end, I see this error:
<entry>
<record>765</record>
<time>2016/04/19 14:55:50.168</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [ApacheCordovaToolsPackage][Exception has been thrown by the target of an invocation.]:{ at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
 at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, Boolean nonPublic)
 at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
 at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
 at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)}</description>
<guid>{317A330D-8757-4084-8526-E8A1D165433D}</guid>
<hr>80131604</hr>
<errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
</entry>
I tried Michael's suggestion of running the devenv
commands, but I'm still getting the same errors.
Any help would be greatly appreciated.