Browse Source

fix build and project options panel.

4.1
Eusebiu Marcu 15 years ago
parent
commit
c21b361fa6
  1. 3
      src/AddIns/Analysis/SourceAnalysis/SharpDevelop.SourceAnalysis.targets
  2. 2
      src/AddIns/Analysis/SourceAnalysis/Src/AnalysisProjectOptionsPanel.cs

3
src/AddIns/Analysis/SourceAnalysis/SharpDevelop.SourceAnalysis.targets

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="StyleCopTask"
<UsingTask Condition="'$(StyleCopFile)' != ''"
TaskName="StyleCopTask"
AssemblyFile="$(StyleCopFile)"/>
<PropertyGroup>

2
src/AddIns/Analysis/SourceAnalysis/Src/AnalysisProjectOptionsPanel.cs

@ -63,7 +63,7 @@ namespace MattEverson.SourceAnalysis { @@ -63,7 +63,7 @@ namespace MattEverson.SourceAnalysis {
string styleCopPath = StyleCopWrapper.FindStyleCopPath();
string executable;
if (styleCopPath != null)
executable = Path.Combine(styleCopPath, "StyleCopSettingsEditor.exe");
executable = Path.Combine(Path.GetDirectoryName(styleCopPath), "StyleCopSettingsEditor.exe");
else
executable = null;
string parameters = "\"" + settingsFile + "\"";

Loading…
Cancel
Save