Skip to content

Commit 15d87f0

Browse files
authored
Multi-target the Models project (#124)
This will make it possible to use the json-stat2 model in PCAxis.Serializers Co-authored-by: Rune Johansen <6797636+runejo@users.noreply.github.com>
1 parent 58cbfe8 commit 15d87f0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/PxWeb.Api2.Server.Models/PxWeb.Api2.Server.Models.csproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<Description>Server library for PxWeb API 2.0</Description>
44
<Copyright>No Copyright</Copyright>
55
<Authors>SCB &amp; SSB</Authors>
6-
<TargetFramework>net8.0</TargetFramework>
6+
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
7+
<LangVersion>8.0</LangVersion>
78
<GenerateDocumentationFile>true</GenerateDocumentationFile>
89
<PreserveCompilationContext>true</PreserveCompilationContext>
910
<Version>1.0.0</Version>
@@ -14,9 +15,13 @@
1415
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
1516
</PropertyGroup>
1617
<ItemGroup>
17-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0"/>
18+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
1819
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
19-
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.4.0"/>
20+
<PackageReference Include="Nullable" Version="1.3.1">
21+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
22+
<PrivateAssets>all</PrivateAssets>
23+
</PackageReference>
24+
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.4.0" />
2025
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.4.0" />
2126
<PackageReference Include="JsonSubTypes" Version="1.8.0" />
2227
</ItemGroup>

0 commit comments

Comments
 (0)