Browse Source

Merge pull request #376 from linquize/codequality-thisproject-exist

CodeQuality: Really check for project output assembly to prevent exception
pull/374/merge
Matt Ward 12 years ago
parent
commit
e53dd0cfab
  1. 3
      src/AddIns/Analysis/CodeQuality/Gui/MainView.xaml.cs

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

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

Loading…
Cancel
Save