Skip to content

Commit 4c23dd7

Browse files
committed
Merge pull request #94 from pver/issue_86
Added tool selection help
2 parents cf7e8e7 + cfaadda commit 4c23dd7

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

OpenCover.UI/Views/SettingsControl.xaml

+14-3
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,29 @@
1212
<Grid.RowDefinitions>
1313
<RowDefinition Height="Auto"></RowDefinition>
1414
<RowDefinition Height="Auto"></RowDefinition>
15+
<RowDefinition Height="Auto"></RowDefinition>
16+
<RowDefinition Height="Auto"></RowDefinition>
1517
</Grid.RowDefinitions>
1618
<Grid.ColumnDefinitions>
1719
<ColumnDefinition Width="Auto"></ColumnDefinition>
1820
<ColumnDefinition Width="*"></ColumnDefinition>
1921
<ColumnDefinition Width="Auto"></ColumnDefinition>
2022
</Grid.ColumnDefinitions>
23+
2124
<Label Margin="0,0,5,5" Grid.Row="0" Grid.Column="0" Width="100" HorizontalContentAlignment="Right" >NUnit Path:</Label>
2225
<TextBox Margin="0,5,0,0" Grid.Row="0" Grid.Column="1" Text="{Binding Path=NUnitExePath, Mode=TwoWay}" HorizontalContentAlignment="Stretch" MinWidth="150"/>
2326
<Button Margin="5,5,0,0" Grid.Row="0" Grid.Column="2" Width="20" Command="{Binding ProcessSelectNUnitExe}">...</Button>
24-
<Label Margin="0,1,5,4" Grid.Row="1" Grid.Column="0" Width="100" HorizontalContentAlignment="Right">OpenCover Path:</Label>
25-
<TextBox Margin="0,5,0,0" Grid.Row="1" Grid.Column="1" Text="{Binding Path=OpenCoverExePath, Mode=TwoWay}" HorizontalContentAlignment="Stretch" MinWidth="150" />
26-
<Button Margin="5,5,0,0" Grid.Row="1" Grid.Column="2" Width="20" Command="{Binding ProcessSelectOpenCoverExe}" >...</Button>
2727

28+
<Label Margin="0,0,5,5" Grid.Row="1" Grid.Column="1" FontStyle="Italic" FontSize="12">
29+
<TextBlock Text="Select nunit-console.exe or nunit-console-x86.exe depending on your architecture" TextWrapping="Wrap" />
30+
</Label>
31+
32+
<Label Margin="0,1,5,4" Grid.Row="2" Grid.Column="0" Width="100" HorizontalContentAlignment="Right">OpenCover Path:</Label>
33+
<TextBox Margin="0,5,0,0" Grid.Row="2" Grid.Column="1" Text="{Binding Path=OpenCoverExePath, Mode=TwoWay}" HorizontalContentAlignment="Stretch" MinWidth="150" />
34+
<Button Margin="5,5,0,0" Grid.Row="2" Grid.Column="2" Width="20" Command="{Binding ProcessSelectOpenCoverExe}" >...</Button>
35+
36+
<Label Margin="0,0,5,5" Grid.Row="3" Grid.Column="1" FontStyle="Italic" FontSize="12">
37+
<TextBlock Text="Select opencover.console.exe of your OpenCover installation" TextWrapping="Wrap" />
38+
</Label>
2839
</Grid>
2940
</UserControl>

OpenCover.UI/Views/SettingsControl.xaml.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public SettingsControl()
2323

2424
void SelectOpenCoverExeEvent(object sender, System.EventArgs e)
2525
{
26-
var dialog = new OpenFileDialog { Filter = "Executables (*.exe)|*.exe" };
26+
var dialog = new OpenFileDialog { Filter = "OpenCover Executable (opencover.console.exe)|opencover.console.exe" };
2727
if (dialog.ShowDialog() == true)
2828
{
2929
_vm.OpenCoverExePath = dialog.FileName;
@@ -32,7 +32,7 @@ void SelectOpenCoverExeEvent(object sender, System.EventArgs e)
3232

3333
void SelectNunitExeEvent(object sender, System.EventArgs e)
3434
{
35-
var dialog = new OpenFileDialog {Filter = "Executables (*.exe)|*.exe"};
35+
var dialog = new OpenFileDialog { Filter = "Nunit Executable (nunit-console*.exe)|nunit-console*.exe" };
3636
if (dialog.ShowDialog() == true)
3737
{
3838
_vm.NUnitExePath = dialog.FileName;

0 commit comments

Comments
 (0)