Skip to content

Commit efcf8f0

Browse files
chore: add net 6 as TFM to make STJ conditional (LEGO#163)
1 parent 6169554 commit efcf8f0

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Common.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Common Properties used by all assemblies -->
33
<PropertyGroup>
44
<LangVersion>10</LangVersion>
5-
<TargetFramework>netstandard2.0</TargetFramework>
5+
<TargetFrameworks>netstandard2.0;net6</TargetFrameworks>
66
<ImplicitUsings>disable</ImplicitUsings>
77
<Company>The LEGO Group</Company>
88
<PackageProjectUrl>https://github.com/LEGO/AsyncAPI.NET</PackageProjectUrl>

src/LEGO.AsyncAPI/LEGO.AsyncAPI.csproj

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,29 @@
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="System.Text.Json" Version="8.0.2" />
22+
<PackageReference Include="System.Text.Json" Version="8.0.2" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
2323

2424
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2525
<_Parameter1>$(MSBuildProjectName).Tests</_Parameter1>
2626
</AssemblyAttribute>
2727
</ItemGroup>
28-
28+
2929
<ItemGroup>
30-
<None Include="..\..\README.md">
31-
<Pack>True</Pack>
32-
<PackagePath>\</PackagePath>
33-
</None>
30+
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
3431
</ItemGroup>
35-
32+
3633
<ItemGroup>
3734
<InternalsVisibleTo Include="LEGO.AsyncAPI.Tests" />
3835
</ItemGroup>
39-
36+
4037
<ItemGroup>
4138
<Compile Update="Resource.Designer.cs">
4239
<DesignTime>True</DesignTime>
4340
<AutoGen>True</AutoGen>
4441
<DependentUpon>Resource.resx</DependentUpon>
4542
</Compile>
4643
</ItemGroup>
47-
44+
4845
<ItemGroup>
4946
<EmbeddedResource Update="Resource.resx">
5047
<Generator>ResXFileCodeGenerator</Generator>

0 commit comments

Comments
 (0)