Skip to content

Commit fd1eaee

Browse files
committed
chore(csproj): bump package version
also add build property for docfx targets closes #283
1 parent 8f811e0 commit fd1eaee

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>2.2.3</VersionPrefix>
3+
<VersionPrefix>2.2.4</VersionPrefix>
44
<TargetFrameworks>$(NetStandardVersion)</TargetFrameworks>
55
<AssemblyName>JsonApiDotNetCore</AssemblyName>
66
<PackageId>JsonApiDotNetCore</PackageId>
7+
<LangVersion>7.2</LangVersion>
78
</PropertyGroup>
89

910
<PropertyGroup>
@@ -25,20 +26,16 @@
2526
<PackageReference Include="System.ValueTuple" Version="$(TuplesVersion)" />
2627
</ItemGroup>
2728

28-
<!-- XML documentation -->
29-
<PropertyGroup>
29+
<!--
30+
To generate DocFX documentation on Windows platforms: dotnet build -c Release /p:DocFx=true
31+
-->
32+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
3033
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
31-
</PropertyGroup>
32-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
34+
<GenerateDocumentation Condition="'$(IsWindows)|$(DocFx)' == 'true|true'">true</GenerateDocumentation>
3335
<DocumentationFile>bin\Release\netstandard2.0\JsonApiDotNetCore.xml</DocumentationFile>
3436
</PropertyGroup>
35-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
36-
<LangVersion>7.2</LangVersion>
37-
</PropertyGroup>
38-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
39-
<LangVersion>7.2</LangVersion>
40-
</PropertyGroup>
41-
<ItemGroup Condition="$(IsWindows)=='true'">
37+
38+
<ItemGroup Condition="'$(GenerateDocumentation)' == 'true'">
4239
<PackageReference Include="docfx.console" Version="2.33.0" />
4340
</ItemGroup>
4441

0 commit comments

Comments
 (0)