This project has moved. For the latest updates, please go here.
1

Resolved

Visual Studio crashes on GetSubProjects

description

Visual Studio crashes on this function at tomenglertde.Wax.Model.VisualStudio.DteExtensions.GetSubProjects(System.Collections.IEnumerable, System.Collections.Generic.ICollection`1<EnvDTE.Project>)

I assume that this is a casting issue.
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr)
   at System.Runtime.InteropServices.CustomMarshalers.EnumerableViewOfDispatch.GetEnumerator()
   at System.Collections.IEnumerable.GetEnumerator()
   at System.Linq.Enumerable+<CastIterator>d__1`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
   at tomenglertde.Wax.Model.VisualStudio.DteExtensions.GetSubProjects(System.Collections.IEnumerable, System.Collections.Generic.ICollection`1<EnvDTE.Project>)
   at tomenglertde.Wax.Model.VisualStudio.DteExtensions.GetSubProjects(EnvDTE.ProjectItem, System.Collections.Generic.ICollection`1<EnvDTE.Project>)
   at tomenglertde.Wax.Model.VisualStudio.DteExtensions.GetSubProjects(System.Collections.IEnumerable, System.Collections.Generic.ICollection`1<EnvDTE.Project>)
   at tomenglertde.Wax.Model.VisualStudio.DteExtensions.GetProjects(EnvDTE.Solution)
   at tomenglertde.Wax.Model.VisualStudio.Solution..ctor(EnvDTE.Solution)
   at tomenglertde.Wax.MainViewModel..ctor(EnvDTE.Solution)
   at tomenglertde.Wax.MainView.Refresh()
   at tomenglertde.Wax.MainView.Self_Loaded(System.Object, System.Windows.RoutedEventArgs)
 (rest are system calls)
I think it has something to do with how I set up my solution.
Solution
  SolutionFolder containing some batch files
  SolutionFolder containing 2 WIX isntallers and 2 InstallShield isntallers
  SolutionFolder containing 3 C# Desktop applications (all unloaded)
  1 ASP.NET web application
  1 MVC application (unloaded)
  1 C# Windows service application
Using version 1.0.9.0 of the Wax editor.

comments

wrote Dec 20, 2015 at 3:33 PM

Associated with changeset 36810.

wrote Dec 28, 2015 at 3:30 PM