Skip to content

Commit e0e0ba7

Browse files
authored
Merge pull request #7 from Chavoshi/master
.Net Standard & .Net Core Support Added
2 parents 9244937 + 4d802c9 commit e0e0ba7

File tree

3 files changed

+38
-23
lines changed

3 files changed

+38
-23
lines changed

package.sln

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio 15
43
VisualStudioVersion = 15.0.27004.2002
@@ -16,8 +15,8 @@ Global
1615
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1716
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1817
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
19-
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Package|Any CPU.ActiveCfg = Package|Any CPU
20-
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Package|Any CPU.Build.0 = Package|Any CPU
18+
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Package|Any CPU.ActiveCfg = Release|Any CPU
19+
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Package|Any CPU.Build.0 = Release|Any CPU
2120
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
2221
{F2DD03D8-1088-41AE-A284-EAEA9808ADE8}.Release|Any CPU.Build.0 = Release|Any CPU
2322
{CD512E14-F7B8-4E9A-B2FF-EB90FC3DD7F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

src/Unity.Configuration.csproj

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
<SignAssembly>true</SignAssembly>
2020
<AssemblyOriginatorKeyFile>package.snk</AssemblyOriginatorKeyFile>
2121
<DelaySign>false</DelaySign>
22+
<TargetFrameworks>netstandard2.0;net47;net46;net45;netcoreapp2.0</TargetFrameworks>
2223
</PropertyGroup>
23-
24-
<ItemGroup>
25-
<Reference Include="System.Configuration" />
26-
</ItemGroup>
2724

2825
<ItemGroup>
2926
<Compile Update="Properties\Resources.Designer.cs">
@@ -40,19 +37,17 @@
4037
</EmbeddedResource>
4138
</ItemGroup>
4239

43-
40+
4441
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
4542
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
46-
<TargetFrameworks>net47;net46;net45;</TargetFrameworks>
4743
<OutputPath>$(SolutionDir)lib</OutputPath>
4844
</PropertyGroup>
4945

5046
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
51-
<DebugType>Full</DebugType>
5247
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
53-
<TargetFramework>net47</TargetFramework>
48+
<DebugType>Full</DebugType>
5449
</PropertyGroup>
55-
50+
5651

5752
<PropertyGroup>
5853
<UnityAbstractions>..\..\Abstractions\src\Unity.Abstractions.csproj</UnityAbstractions>
@@ -66,4 +61,30 @@
6661
<PackageReference Include="Unity.Abstractions" Version="$(UnityAbstractionsVersion)" />
6762
</ItemGroup>
6863

64+
<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
65+
<Reference Include="System.Configuration" />
66+
</ItemGroup>
67+
68+
<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
69+
<Reference Include="System.Configuration" />
70+
</ItemGroup>
71+
72+
<ItemGroup Condition="'$(TargetFramework)' == 'net47'">
73+
<PackageReference Include="System.Configuration.ConfigurationManager">
74+
<Version>4.4.1</Version>
75+
</PackageReference>
76+
</ItemGroup>
77+
78+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
79+
<PackageReference Include="System.Configuration.ConfigurationManager">
80+
<Version>4.4.1</Version>
81+
</PackageReference>
82+
</ItemGroup>
83+
84+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
85+
<PackageReference Include="System.Configuration.ConfigurationManager">
86+
<Version>4.4.1</Version>
87+
</PackageReference>
88+
</ItemGroup>
89+
6990
</Project>

tests/Configuration.Tests.csproj

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\package.props" />
44

55
<PropertyGroup>
6-
<TargetFramework>net47</TargetFramework>
6+
<TargetFrameworks>net47;netcoreapp2.0</TargetFrameworks>
77
<IsPackable>false</IsPackable>
88
<RootNamespace>Microsoft.Practices.Unity.Configuration.Tests</RootNamespace>
99
</PropertyGroup>
@@ -22,10 +22,6 @@
2222
<EmbeddedResource Include="ConfigFiles\*.config" />
2323
</ItemGroup>
2424

25-
<ItemGroup>
26-
<Reference Include="System.Configuration" />
27-
</ItemGroup>
28-
2925
<ItemGroup>
3026
<ProjectReference Include="..\src\Unity.Configuration.csproj" />
3127
</ItemGroup>
@@ -36,11 +32,6 @@
3632
<UnityContainer>..\..\Container\src\Unity.Container.csproj</UnityContainer>
3733
</PropertyGroup>
3834

39-
40-
<ItemGroup Condition="Exists('$(UnityAbstractions)')">
41-
<ProjectReference Include="$(UnityAbstractions)" />
42-
</ItemGroup>
43-
4435
<ItemGroup Condition="Exists('$(UnityContainer)')">
4536
<ProjectReference Include="$(UnityContainer)" />
4637
</ItemGroup>
@@ -53,5 +44,9 @@
5344
<ItemGroup Condition="!Exists('$(UnityContainer)')">
5445
<PackageReference Include="Unity.Container" Version="$(UnityContainerVersion)" />
5546
</ItemGroup>
56-
47+
48+
<ItemGroup>
49+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
50+
</ItemGroup>
51+
5752
</Project>

0 commit comments

Comments
 (0)