Skip to content

Commit d0c0a52

Browse files
author
Kristian Hellang
committed
Add support for netstandard2.0
1 parent 3f905be commit d0c0a52

File tree

3 files changed

+34
-7
lines changed

3 files changed

+34
-7
lines changed

src/StructureMap.AspNetCore/StructureMap.AspNetCore.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Description>StructureMap.AspNetCore</Description>
44
<VersionPrefix>1.3.1</VersionPrefix>
55
<Authors>khellang</Authors>
6-
<TargetFrameworks>net451;netstandard1.3</TargetFrameworks>
6+
<TargetFrameworks>net451;netstandard1.3;netstandard2.0</TargetFrameworks>
77
<NoWarn>$(NoWarn);CS1591</NoWarn>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -18,7 +18,15 @@
1818
<ProjectReference Include="..\StructureMap.Microsoft.DependencyInjection\StructureMap.Microsoft.DependencyInjection.csproj" />
1919
</ItemGroup>
2020

21-
<ItemGroup>
21+
<ItemGroup Condition="'$(TargetFramework)' == 'net451'">
22+
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="1.1.2" />
23+
</ItemGroup>
24+
25+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
26+
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="1.1.2" />
27+
</ItemGroup>
28+
29+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
2230
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="1.1.2" />
2331
</ItemGroup>
2432
</Project>

src/StructureMap.Microsoft.DependencyInjection/StructureMap.Microsoft.DependencyInjection.csproj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Description>StructureMap.Microsoft.DependencyInjection</Description>
44
<VersionPrefix>1.3.1</VersionPrefix>
55
<Authors>khellang</Authors>
6-
<TargetFrameworks>net451;netstandard1.3</TargetFrameworks>
6+
<TargetFrameworks>net451;netstandard1.3;netstandard2.0</TargetFrameworks>
77
<NoWarn>$(NoWarn);CS1591</NoWarn>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -15,7 +15,18 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="1.1.1" />
1918
<PackageReference Include="StructureMap" Version="4.5.0" />
2019
</ItemGroup>
20+
21+
<ItemGroup Condition="'$(TargetFramework)' == 'net451'">
22+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="1.1.1" />
23+
</ItemGroup>
24+
25+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
26+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="1.1.1" />
27+
</ItemGroup>
28+
29+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
30+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.0.0" />
31+
</ItemGroup>
2132
</Project>
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
3+
<TargetFrameworks>netcoreapp1.1;netcoreapp2.0</TargetFrameworks>
44
</PropertyGroup>
55

66
<ItemGroup>
77
<ProjectReference Include="..\..\src\StructureMap.Microsoft.DependencyInjection\StructureMap.Microsoft.DependencyInjection.csproj" />
88
</ItemGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
13+
<PackageReference Include="xunit" Version="2.2.0" />
14+
</ItemGroup>
15+
16+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp1.1'">
1317
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="1.1.1" />
1418
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="1.1.1" />
15-
<PackageReference Include="xunit" Version="2.2.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
22+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
23+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="2.0.0" />
1624
</ItemGroup>
1725
</Project>

0 commit comments

Comments
 (0)