Quantcast
Channel: Visual Studio Integrate forum
Viewing all 4410 articles
Browse latest View live

How to show the Toolbox control after install the NuGet package in Xamarin platform

$
0
0

Hi

I am trying to add the Toolbox controls along with default Microsoft Visual Studio toolbox window for Xamarin, after install the Custom NuGet packages instead of install the custom Tool Box Extension since the toolbox has been enable for the Xaml pages.

I have tried add the tools folder with the VisualStudioToolSDKmanifest.xml file along with my sample NuGet package. But don't have luck. The controls are showing in the default Visual Studio Xamarin Toolbox. But I can't drag and Drop the control in the XAML file since the controls are disabled in the toolbox window.

The above method has been worked on the WPF and UWP Xaml pages. But not working in the Xamarin project xaml pages.

Is there any problem in xamarin XAML file to show the toolbox control through the NuGet packages?
Could you please any one suggestion to achieve this?

Thanks,
Ganesan R.


InvokMember from VSIX

$
0
0

Hi,

How can invok the method of the current open project from VSIX, thanks?

Best,

_Abd

UI unresponsiveness message shows in our custom extension

$
0
0

installed our custom extensions like project template in VS, created project from that extension. After creation of project the report message on top "Visual Studio Stopped responding for 9 seconds. disabling the custom extension it might help"

Also shows in  UnResponsive UI tab fromhelp->Visual Studio Performance Manager 

How to avoid this report while install our extensions? How to remove from Ui Unresponsive tab?

SDK Package: Trying to get correct id for XAML editor context menu

$
0
0

I am writing a VS 2012 package and I want to add a new option to the XAML code editor window.  I am using EnableVSIPLogging to find the ids for the menus.

I have done the same with the code editor context menu and it works, my new option appears ok on the menu:
The logging info shows the CmdID = 1037 which in hex is 40D and looking in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Inc\vsshlids.h this is IDM_VS_CTXT_CODEWIN

<Group guid="guidAJCVSWPFCodeCmdSet" id="MyCodeGroup" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/></Group>

Now I try and do the same with the XAML code editor context menu:
The logging info shows the CmdID = 259 which in hex is 103 and looking in vsshlids.h this is IDG_VS_MM_BUILDDEBUGRUN which does not sound correct to me.  I try it and it does not work, my new option does not appear on the XAML code editor context menu.

Why does this logging info not work for the XAML editor context menu?

How can I find the correct ID to use for the XAML editor menu?

Thanks

An internal error occurred during: "Connecting to Team Foundation Server" to eclipse

$
0
0

Please Help me to fix the issue

I have installed "Team Explorer Everywhere" in eclipse and restarted eclipse following "Visual Studio Team Explorer Everywhere for Eclipse(Azure DevOps Services and TFS)" file, but I'm getting following error every time I restart my eclipse.

Connecting to Team Foundation Server has encounter a problem

An internal error occurred during: "Connecting to Team Foundation Server".
com/microsoft/tfs/client/eclipse/util/TeamUtils

I was also trying to follow this "Connect to Azure DevOps Services(include TFS)" file, but at the end of the step 2 I'm getting following exception

Plug-in "com.microsoft.tfs.client.common.ui" was unable to instantiate class "com.microsoft.tfs.client.common.ui.views.TeamExplorerView"

org.eclipse.core.runtime.CoreException: Plug-in "com.microsoft.tfs.client.common.ui" was unable to instantiate class "com.microsoft.tfs.client.common.ui.views.TeamExplorerView".
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:206)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:61)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:103)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:300)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:338)
at jdk.internal.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$1.run(PartRenderingEngine.java:560)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:544)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:73)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1294)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.lambda$0(LazyStackRenderer.java:75)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4580)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:652)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:616)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:791)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:762)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1231)
at org.eclipse.ui.internal.WorkbenchPage.showPart(WorkbenchPage.java:1263)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1251)
at org.eclipse.ui.internal.WorkbenchPage.lambda$10(WorkbenchPage.java:4263)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4261)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4243)
at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:135)
at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:114)
at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:81)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95)
at jdk.internal.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:498)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:392)
at org.eclipse.ui.internal.ShowViewMenu$1.run(ShowViewMenu.java:135)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:412)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204)
... 115 more
Caused by: java.lang.RuntimeException: Could not instantiate provider for extension point id com.microsoft.tfs.client.common.ui.productPluginProvider
at com.microsoft.tfs.client.common.util.ExtensionLoader.loadSingleExtensionClass(ExtensionLoader.java:88)
at com.microsoft.tfs.client.common.util.ExtensionLoader.loadSingleExtensionClass(ExtensionLoader.java:30)
at com.microsoft.tfs.client.common.ui.TFSCommonUIClientPlugin.getProductPlugin(TFSCommonUIClientPlugin.java:221)
at com.microsoft.tfs.client.common.ui.teamexplorer.TeamExplorerContext.getDefaultRepository(TeamExplorerContext.java:50)
at com.microsoft.tfs.client.common.ui.teamexplorer.TeamExplorerContext.isConnectedToCollection(TeamExplorerContext.java:328)
at com.microsoft.tfs.client.common.ui.teamexplorer.TeamExplorerContext.isConnected(TeamExplorerContext.java:324)
at com.microsoft.tfs.client.common.ui.teamexplorer.TeamExplorerContext.getSourceControlCapability(TeamExplorerContext.java:336)
at com.microsoft.tfs.client.common.ui.teamexplorer.TeamExplorerContext.<init>(TeamExplorerContext.java:42)
at com.microsoft.tfs.client.common.ui.views.TeamExplorerView.<init>(TeamExplorerView.java:64)
... 121 more
Caused by: org.eclipse.core.runtime.CoreException: Plug-in com.microsoft.tfs.client.eclipse.ui was unable to load class com.microsoft.tfs.client.eclipse.ui.productplugin.EclipseProductPluginProvider.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at com.microsoft.tfs.client.common.util.ExtensionLoader.loadSingleExtensionClass(ExtensionLoader.java:74)
... 129 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle com.microsoft.tfs.client.eclipse.ui (521).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:330)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:396)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:474)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.WorkbenchPlugin.lambda$0(WorkbenchPlugin.java:288)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:286)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:123)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:119)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:237)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:105)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:360)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:346)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:333)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:300)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.osgi.framework.BundleException: Error loading bundle activator.
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:786)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:598)
at org.eclipse.osgi.container.Module.start(Module.java:462)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
... 27 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:825)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:778)
... 33 more
Caused by: java.lang.NoClassDefFoundError: com/microsoft/tfs/client/eclipse/ui/connectionconflict/EclipseUIConnectionConflictHandler
at com.microsoft.tfs.client.eclipse.ui.TFSEclipseClientUIPlugin.<init>(TFSEclipseClientUIPlugin.java:62)
... 40 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle com.microsoft.tfs.client.eclipse (519).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:330)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:396)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:474)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 41 more
Caused by: org.osgi.framework.BundleException: Exception in com.microsoft.tfs.client.eclipse.TFSEclipseClientPlugin.start() of bundle com.microsoft.tfs.client.eclipse.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:598)
at org.eclipse.osgi.container.Module.start(Module.java:462)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
... 49 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.microsoft.applicationinsights.internal.config.TelemetryConfigurationFactory.<init>(TelemetryConfigurationFactory.java:65)
at com.microsoft.applicationinsights.internal.config.TelemetryConfigurationFactory.<clinit>(TelemetryConfigurationFactory.java:54)
at com.microsoft.applicationinsights.TelemetryConfiguration.getActive(TelemetryConfiguration.java:72)
at com.microsoft.tfs.core.telemetry.TfsTelemetryHelper.initializeTelemetryChannel(TfsTelemetryHelper.java:43)
at com.microsoft.tfs.core.telemetry.TfsTelemetryHelper.getTelemetryClient(TfsTelemetryHelper.java:58)
at com.microsoft.tfs.core.telemetry.TfsTelemetryHelper.sendSessionBegins(TfsTelemetryHelper.java:138)
at com.microsoft.tfs.client.eclipse.TFSEclipseClientPlugin.start(TFSEclipseClientPlugin.java:113)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:552)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
... 56 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException cannot be found by com.microsoft.tfs.core_14.134.0.201804261732
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:512)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 67 more

Get selected pending files in 2012

$
0
0

Hi.

In a small addin for VS2012, i want to add a new command 'Compare' to every pending file. The work is already done for SolutionExplorer files and it works. The command is also added in contexts of included/excluded trees, but i dont find any way to get the right selected item list ! The _applicationObject.SelectedItems refers to solution explorer items... How can i get 'Pending changes included' and 'Pending changes excluded' selected lists ?


Temporatily suspend default mouse events in the text editor's View.ViewElement?

$
0
0

I had to hook the mouse down/move events on the View.VisualElement to adjust some adornment settings. Without suspending the default editor behaviour and whilst in this 'adornment adjustment' state behaviours for example text selection will still be active.

What would be the correct way to temporarily suspend the default text editor functionality so mouse downs/moves can be used freely without affecting the current editor state?

FYI - I'm currently hacking this by using arg.Handled = true.

VSPackage: Is it possible to use TypeConverter in option pages?

$
0
0

Hi.

I am using the OptionsPage mechanism of Visual Studio in order to display options for my package. It works fine. However, there is a minor problem.

I am using the type of options page that displays a property grid, not custom UserControl. In this property grid all properties from my class are displayed. This is all fine. The problem is that I want to use a TypeConverter for some of the properties. I used the TypeConverterAttribute on a property but it does not appear to be used. I am using my own TypeConvertor class (inherits directly from TypeConverter). I am not very familiar with type converters but I followed an example and it seems pretty simple.

Am I doing something wrong or is this just not supported?

Thanks.


System.invalidcastexception error in Visual Studio 2017

$
0
0

Am seeing error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsBuildPropertyStorage'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E7355FDF-A118-48F5-9655-7EFD9D2DC352}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)) in below code:

 IVsBuildPropertyStorage buildProps = (IVsBuildPropertyStorage)project where project is of type IVsHierarchy.

This is similar to code base as mentioned here: https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-an-attribute-to-a-project-item. However we still see the error in Visual Studio 2017. The same code works file till Visual Studio 2015. 

Any pointers would be helpful.


Vinita

In C#, what and how to pass IServiceProvider in ErrorListProvider(IServiceProvider isp)?

$
0
0

I am creating a vsix project where I need to add some custom errors in Error List window. Now I am stuck in IServiceProvider. What it contains and why I need this and how I can get this? In my code, I need to initialize with a service provider. How can I do this? Following is code :

internal class ErrorListManager
{
    public static ErrorListProvider errorListProvider;

    public static void Initialize(IServiceProvider serviceProvider) 
    {
        errorListProvider = new ErrorListProvider(serviceProvider);

    }

    public static void AddError(string errorMsg) {
        AddTask(errorMsg, TaskErrorCategory.Error);
    }

    private static void AddTask(string errorMsg, TaskErrorCategory category)
    {
        errorListProvider.Tasks.Add(new ErrorTask
        {
            Category = TaskCategory.User,
            ErrorCategory = category,
            Text = errorMsg
        });
    }
}

Please help. I am a beginner for C# and VSIX. Thanks!

Implementing a C# text editor in a separate WPF application

$
0
0

I am adding an interactive C# component to an existing WPF application. I feel (fairly) confident in the backend work: I know how to programmatically use the Scripting APIs to evaluate the code, etc. But I don't know WPF at all and don't know how to just get a text window that will give me the hooks to do things like Intellisense (e.g., a callback that is executed whenever the user types a "."). I would love to start with a simple example if someone can point me to it.

Thanks!

Mike


Mike Barnett

Get selected items from the locals / autos / watch window

$
0
0

Hi, I'm trying to write an extension that lets you right click an item in the watch window to create a conditional or data breakpoint from it.  To do this, I need to get the thing that was clicked on, or at least the current selection.  I've spent a while reading docs and trying out ideas, but so far nothing has worked.  Is there any way to do it?  Thanks for your help!

One Click Publish for Python

$
0
0

On my development Windows server 2019 Standard I have Visual Studio 2019 Community 

SQL server 2019 Express with advanced services and Python 3.8.1 flask web application.

Is it possible to create release version with One Click Publish locally on IIS?

Best Regards, Ivan Verdonik

CreatePkgDef : error : ReflectionTypeLoadException while building VS Extension

$
0
0

I have created simple VSIX project, and added class that implements IDkmCallStackFilter interface from \Microsoft.VisualStudio.Debugger.Engine.dll that is included within Microsoft.VisualStudio.SDK nuget package referenced by project.

How to guide CreatePkgDef utility to read types from that library, and succefully create pkgdef file ?

Modeling SDK (DSL Project) Validation Errors when using multiple IsEmbedded references

$
0
0

Hi all,

I suspect that I'm trying to use the Modeling SDK Domain-Specific Language Project type wrong...  But there doesn't appear to be many good references for its usage.

So, I want to create a Visual Studio add-in that would allow for the creation of Fault Tree Models within Visual Studio, and then to allow these to be exported out into OpenPSA XML or to have analysis performed over them to come up with reliability data.

I'm trying to create the model framework for them, and as part of this have two items, Gates and Events.  Each of these have a value output from them, which I'm trying to represent with an OutPort, allowing them to be connected to either an upstream Gate or similar.

However, when I try to embed an OutPort into both a Gate, and an Event class I get complaints from the Validation Engine saying that I need to have 0..1 multiplicity on them.  I actually want 1..1 on each, each Gate MUST have an OutPort, and each Event MUST have an OutPort (it's a compositional relationship more than anything else).

I have however relented, and attempted to configure these as directed by the Validation Engine, however it still produces the same complaint.


Does anyone have a source of good background info on the Domain-Specific Language toolset / Modeling SDK?

Or have any direction for how to resolve this particular Validation error (that differs from how I've shown in the screenshot above)?

Regards,

Bevan Weiss


Can I install a SSMS extension with the VSIX installer

$
0
0

Is it possible to install an SSMS extension by using a .vsix file?  In my VS project I have a source.extension.vsixmanifest file:

<?xml version="1.0" encoding="utf-8"?>
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
  <Identifier Id="56f92f34-58ad-4185-8b21-a832de1b3559">
    <Name>MySSMSAddin VSIX manifest</Name>
    <Author>My Software Company</Author>
    <Version>15.0</Version>
    <Description xml:space="preserve">My SSMS Addin for SQL Server Management Studio 2018</Description>
    <Locale>1033</Locale>
    <InstalledByMsi>false</InstalledByMsi>
    <SupportedProducts>
      <IsolatedShell Version="15.0">ssms</IsolatedShell>
    </SupportedProducts>
    <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
    <SystemComponent>true</SystemComponent>
  </Identifier>
  <References />
  <Content>
    <VsPackage>MySSMSAddin2018.pkgdef</VsPackage>
  </Content>
</Vsix>

This gets built into a MySSMSAddin2018.vsix file.  But when I execute this .vsix file the VSIX Installer displays a message box, stating:

   The install of CvSSMSAddin VSIX manifest" was not successful for all of the selected products.  For more information, click on the install log link at the bottom of the dialog.

I have 3 different versions of SSMS installed on my system.  I want to install my extension on SQL Server Management Studio version 18.1 (internal version 15.0).  I assume that the message box was telling me that I cannot install on the other two SSMS versions because it did successfully install the files in the .vsix into C:\Users\RonaldWright\AppData\Local\Microsoft\SQL Server Management Studio\18.0\Extensions\qgmpi40j.ccu\.  But even with this apparent install, the resulting MySSMSAddin2018.pkgfile still has some path macros ($WinDir$ and $PackageFolder$) which were not expanded.  Also, when I launch SSMS.exe (the 18.1) version, SSMS does not attempt to load the MySSMSAddin2018.pkgdef file.

Is there a resolution to this problem?


Thanks for the outstanding help.

Migrating Project from IBM Rational clear case to TFS with full history

$
0
0

Hi, 

We are planning to all on-premises projects to Azure DevOps cloud. there are some projects which are manged in ClearCase version control tool and ClearQuest Change Management tool.

I have found that there is tool called TFS Integration which will support to migrate from CC to TFS.So please share us the guide or document to migrate and your support in migrating the source code and records from IBM rational Clear case, ClearQuest to TFS. Later we can migrate to Azure DevOps Cloud. 

Also let us know is their any direct way to migrate from CC to Azure DevOps cloud.

Changing Tools->Options programatically

$
0
0

Hello, is it possible to change Text Editor options via a VSIX plugin? I've added a couple of buttons to a toolbar but have struggled to find where I can change the options in the documentation.

Tools->Options->Text Editor->C#->Code Style->Formatting->New Lines->Place open brace on new line for types

Any help greatly appreciated!


IVsEditorFactory and other interfaces - SDK Question

$
0
0
Hi, my team has created a custom editor for VS2019 making use of the following interfaces (IVsEditorFactory, IVsDeferredDocView, and IVsMultiViewDocumentView). Things work but our question is, in the SDK documentation on Microsoft, at the bottom of the respective pages, it only says 'Applies to Visual Studio SDK 2017, 2015' and not 2019. Is the documentation out of date and should also list 2019 in the 'Applies to'? Or it is not part of the 2019 SDK and still OK to use these interfaces in our VS2019 extension? Or should we be using a different approach or different interfaces for our custom editor? The concern from the team is that these interfaces may be or become obsolete and could we find ourselves with a broken VS extension?

Creating extensions - Add .svg format to the Asset generator

$
0
0

Now Visual Studio AppManifestDesigner supports asset generation from the vector image formats - .ai and .pdf.

I'd like to add .svg format to existing. Is it possible?



Viewing all 4410 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>