Skip to content

Commit 23db6c0

Browse files
authored
Merge pull request #3251 from mayermart/patch-1
Update Configuration.md
2 parents 5b6d5be + 94b6d26 commit 23db6c0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

documentation/Configuration.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,10 @@ Example `.props` file:
690690
<?xml version="1.0" encoding="utf-8"?>
691691
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
692692
<PropertyGroup>
693-
<CodeAnalysisRuleSetLocation Condition=" '$(NuGetPackageRoot)' != '' ">$(NuGetPackageRoot)\acme.stylecop\1.0.0</CodeAnalysisRuleSetLocation>
694-
<CodeAnalysisRuleSetLocation Condition=" '$(CodeAnalysisRuleSetLocation)' == '' and '$(SolutionDir)' != '' ">$(SolutionDir)\packages\acme.stylecop.1.0.0</CodeAnalysisRuleSetLocation>
695-
<CodeAnalysisRuleSetLocation Condition=" '$(CodeAnalysisRuleSetLocation)' == '' ">$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))\packages\acme.stylecop.1.0.0</CodeAnalysisRuleSetLocation>
696-
</PropertyGroup>
697-
<PropertyGroup>
698-
<CodeAnalysisRuleSet>$(CodeAnalysisRuleSetLocation)\acme.stylecop.ruleset</CodeAnalysisRuleSet>
693+
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)..\acme.stylecop.ruleset</CodeAnalysisRuleSet>
699694
</PropertyGroup>
700695
<ItemGroup>
701-
<AdditionalFiles Include="$(CodeAnalysisRuleSetLocation)\stylecop.json" Link="stylecop.json" />
696+
<AdditionalFiles Include="$(MSBuildThisFileDirectory)..\stylecop.json" Link="stylecop.json" />
702697
</ItemGroup>
703698
</Project>
704699
```

0 commit comments

Comments
 (0)