Visual Studio Extension Build Solution error 0x

0

I have this code for clean, build and run solution as Visual Studio Extension

Dim dte As DTE = Activator.CreateInstance(Type.GetTypeFromProgID("VisualStudio.DTE.14.0"))
Dim sb As SolutionBuild = dte.Solution.SolutionBuild
sb.Clean(True) ' here
sb.Build(True) ' here too
sb.Run() ' here too

but when I run it it throws on clean or build or run command fatal error 0x8000FFFF

Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)

stack trace is

   at EnvDTE.SolutionBuild.Clean(Boolean WaitForCleanToFinish)
   at VSIXProject1.Command1.MenuItemCallback(Object sender, EventArgs e) in D:\Projects\_VSAddins\VSIXProject1\VSIXProject1\Command1.vb:line 84
   at System.ComponentModel.Design.MenuCommand.Invoke()
   at System.ComponentModel.Design.MenuCommand.Invoke(Object arg)
   at Microsoft.VisualStudio.Shell.OleMenuCommandService.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& commandGroup, UInt32 nCmdId, UInt32  at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr pIn, IntPtr vOut)

Why? how to repair it?

visual-studio-2015
fatal-error
visual-studio-extensions
envdte
rebuild
asked on Stack Overflow Nov 13, 2015 by Misaz

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0