Skip to content

Commit 3fd0be0

Browse files
author
Ruben Schmidmeister
authored
Merge pull request #17 from messerli-informatik-ag/deps
Explicitly target .NET Core to remove dependency on System.Collections.Immutable
2 parents 2b36590 + 6367a44 commit 3fd0be0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CompositionRoot/CompositionRoot.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Messerli.CompositionRoot</RootNamespace>
77
</PropertyGroup>
88
<PropertyGroup>
9-
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
9+
<TargetFrameworks>netcoreapp3.1;netstandard2.1;netstandard2.0</TargetFrameworks>
1010
<LangVersion>8.0</LangVersion>
1111
<Nullable>enable</Nullable>
1212
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -23,6 +23,6 @@
2323
</PropertyGroup>
2424
<ItemGroup>
2525
<PackageReference Include="Autofac" />
26-
<PackageReference Include="System.Collections.Immutable" />
26+
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'" />
2727
</ItemGroup>
2828
</Project>

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212

1313
## 0.2.1
1414
* Add compatibility for Autofac 6.x.
15+
* Only depend on `System.Collections.Immutable` when targeting .NET Standard.

0 commit comments

Comments
 (0)