Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 918e682

Browse files
committed
CodeQuality: Really check for project output assembly to prevent exception
1 parent 58fddcc commit 918e682

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using System;
2020
using System.Collections.Generic;
2121
using System.Collections.ObjectModel;
22+
using System.IO;
2223
using System.Windows;
2324
using System.Windows.Controls;
2425

@@ -72,7 +73,7 @@ void AddCurrentProjectAssemblyClick(object sender, RoutedEventArgs e)
7273
return;
7374

7475
string fileName = ProjectService.CurrentProject.OutputAssemblyFullPath;
75-
if (string.IsNullOrEmpty(fileName))
76+
if (!File.Exists(fileName))
7677
{
7778
MessageBox.Show("Project output assembly not found! Please build it first!");
7879
return;

0 commit comments

Comments
 (0)