Browse Source

CodeQuality: Really check for project output assembly to prevent exception

pull/376/head
Linquize 12 years ago
parent
commit
918e682d49
  1. 3
      src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs

3
src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Windows;
using System.Windows.Controls;
@ -72,7 +73,7 @@ namespace ICSharpCode.CodeQuality.Gui @@ -72,7 +73,7 @@ namespace ICSharpCode.CodeQuality.Gui
return;
string fileName = ProjectService.CurrentProject.OutputAssemblyFullPath;
if (string.IsNullOrEmpty(fileName))
if (!File.Exists(fileName))
{
MessageBox.Show("Project output assembly not found! Please build it first!");
return;

Loading…
Cancel
Save