Skip to content

Commit 3e66870

Browse files
committed
fix(csproj): correct IsWindows condition check
1 parent 16a1b4e commit 3e66870

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@
1313
<RepositoryType>git</RepositoryType>
1414
<RepositoryUrl>https://github.com/json-api-dotnet/JsonApiDotNetCore</RepositoryUrl>
1515
</PropertyGroup>
16-
<PropertyGroup>
17-
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
18-
</PropertyGroup>
19-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
20-
<DocumentationFile>bin\Release\netstandard2.0\JsonApiDotNetCore.xml</DocumentationFile>
21-
</PropertyGroup>
22-
<ItemGroup Condition="$(IsWindows)">
23-
<PackageReference Include="docfx.console" Version="2.33.0" />
24-
</ItemGroup>
16+
2517
<ItemGroup>
2618
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="$(AspNetCoreVersion)" />
2719
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="$(AspNetCoreVersion)" />
@@ -31,4 +23,15 @@
3123
<PackageReference Include="System.ValueTuple" Version="$(TuplesVersion)" />
3224
</ItemGroup>
3325

26+
<!-- XML documentation -->
27+
<PropertyGroup>
28+
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
29+
</PropertyGroup>
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
31+
<DocumentationFile>bin\Release\netstandard2.0\JsonApiDotNetCore.xml</DocumentationFile>
32+
</PropertyGroup>
33+
<ItemGroup Condition="$(IsWindows)=='true'">
34+
<PackageReference Include="docfx.console" Version="2.33.0" />
35+
</ItemGroup>
36+
3437
</Project>

0 commit comments

Comments
 (0)