一个小插曲,安装插件的时候遇到问题,先记录下来。
can't use QT_VS_Addin 1.1.9 with Visual Studio 2010
I'm trying to run QT_VS_Addin 1.1.9(is latest version), with Visual Studio 2010, When i run VS the following error occures.
Couldn't register all Qt4VSAddin commands. : Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarButton.CreateInstance(CommandBar parent, MsoControlType controlType, ControlCustomizer customizer)
at Microsoft.VisualStudio.PlatformUI.CommandBars.ButtonDataSource.CreateControl(CommandBar parent, ControlCustomizer customizer)
at Microsoft.VisualStudio.PlatformUI.Automation.DynamicCommandBarControls.get_Controls()
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls.get_Count()
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls.Marshaler.b_e()
at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls._Marshaler.get_Count()
at Qt4VSAddin.AddinInit.registerCommands()
As a workaround you can call
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" -i "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\PublicAssemblies\stdole.dll"
After that the AddIn should work as expected.
The installer should already do this for you. Maybe it cannot run gacutil on your machine?