Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CoverageExt/CoverageExtPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.VisualStudio.VCProjectEngine;
using NubiloSoft.CoverageExt.Data;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Diagnostics;
Expand Down Expand Up @@ -174,7 +175,7 @@ private void ProjectContextMenuItem_BeforeQueryStatus(object sender, EventArgs e

// TODO FIXME: We should probably check if it's a DLL as well.

if (project.FullName.EndsWith(".vcxproj"))
if (project.Object is VCProject)
{
menuCommand.Visible = true;
}
Expand Down Expand Up @@ -238,7 +239,7 @@ private void ContextMenuRunCoverage(object sender, bool merge)
private List<string> GetCodePaths(VCProject vcproj)
{
var filePaths = new List<string>();
foreach (var file in vcproj.Files)
foreach (VCFile file in (IEnumerable)vcproj.Files)
{
var dirName = Path.GetDirectoryName(file.FullPath);
if (!filePaths.Contains(dirName))
Expand Down
Loading