Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-477

If a solution has content files outside "regular" projects, several first-chance exceptions occur in Connect.cs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-incubating
    • 1.5.0-incubating
    • Visual Studio Add-in
    • None

    Description

      A solution containing one or more files outside any projects (e.g. a new mavenized solution, where I unhide the files and include the parent pom) will crash the addin with several first-chance exceptions (but these are swallowed by COM). The solution has a (I believe hidden) project called "Solution Items", which is not handled properly.

      1. ProjectItemEvents_ItemAdded creates new PomHelperUtility(_applicationObject.Solution, CurrentSelectedProject), where CurrentSelectedProject is null which crashes with NullReferenceException in PomHelperUtility's ctor.
      2. SigningEvents_SignatureAdded crashes in doc.Load(project.FullName) with ArgumentException, because FullName is an empty string.
      3. attachReferenceEvent crashes with InvalidCastException at VSProject2 classProject = (VSProject2)project.Object

      I suggest developers debug the addin every now and then with first-chance exceptions enabled to catch such errors.

      Attachments

        Activity

          People

            brett Brett Porter
            stoyan Stoyan Damov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: