Skip to content

Commit a93ea81

Browse files
author
Bart Koelman
committed
Fixed warning when building documentation
When running docfx, it builds only the JsonApiDotNetCore project, not the entire solution. Because of this, the use of $(SolutionDir) msbuild variable produces the next warning: Could not find rule set file "CodingGuidelines.ruleset" This commit replaces $(SolutionDir) with the magical $(MSBuildThisFileDirectory) msbuild variable, which evaluates to: "the directory where the file exists that references this variable".
1 parent 1157dde commit a93ea81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<AspNetCoreVersion>3.1.*</AspNetCoreVersion>
55
<EFCoreVersion>3.1.*</EFCoreVersion>
66
<NpgsqlPostgreSQLVersion>3.1.*</NpgsqlPostgreSQLVersion>
7-
<CodeAnalysisRuleSet>$(SolutionDir)CodingGuidelines.ruleset</CodeAnalysisRuleSet>
7+
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)CodingGuidelines.ruleset</CodeAnalysisRuleSet>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="JetBrains.Annotations" Version="2020.3.0" PrivateAssets="All" />
1212
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.6.0" PrivateAssets="All" />
13-
<AdditionalFiles Include="$(SolutionDir)CSharpGuidelinesAnalyzer.config" Visible="False" />
13+
<AdditionalFiles Include="$(MSBuildThisFileDirectory)CSharpGuidelinesAnalyzer.config" Visible="False" />
1414
</ItemGroup>
1515

1616
<PropertyGroup Condition="'$(Configuration)'=='Release'">

0 commit comments

Comments
 (0)