Skip to content

Commit 91cd199

Browse files
committed
Releasing Unity Core
1 parent 8d1ddc9 commit 91cd199

File tree

6 files changed

+8
-82
lines changed

6 files changed

+8
-82
lines changed

src/Container/ReadOnlyPolicyList.cs

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/Unity.Container.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<PackageId>Unity.Container</PackageId>
55
<Description>Unity Core Engine</Description>
6-
<Version>5.0.0-RC3</Version>
6+
<Version>5.0.0</Version>
77
<AssemblyVersion>5.0.0.0</AssemblyVersion>
88
<FileVersion>5.0.0.0</FileVersion>
99
<Copyright>Copyright © Microsoft 2008</Copyright>
@@ -53,7 +53,7 @@
5353
</ItemGroup>
5454

5555
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
56-
<PackageReference Include="Unity.Abstractions" Version="2.0.0-RC3" />
56+
<PackageReference Include="Unity.Abstractions" Version="2.0.0" />
5757
</ItemGroup>
5858

5959
</Project>

src/UnityContainer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
using Unity.Builder;
99
using Unity.Container.Registration;
1010
using Unity.Events;
11+
using Unity.Exceptions;
1112
using Unity.Extension;
1213
using Unity.Lifetime;
14+
using Unity.ObjectBuilder;
1315
using Unity.ObjectBuilder.Policies;
1416
using Unity.Policy;
1517
using Unity.Registration;
@@ -181,7 +183,7 @@ public object Resolve(Type type, string name, params ResolverOverride[] resolver
181183
/// <param name="resolverOverrides">Any overrides for the buildup.</param>
182184
/// <returns>The resulting object. By default, this will be <paramref name="existing"/>, but
183185
/// container extensions may add things like automatic proxy creation which would
184-
/// cause this to return a different object (but still type compatible with <paramref name="type"/>).</returns>
186+
/// cause this to return a different object (but still type compatible with <paramref name="typeToBuild"/>).</returns>
185187
public object BuildUp(Type typeToBuild, object existing, string name, params ResolverOverride[] resolverOverrides)
186188
{
187189
var type = typeToBuild ?? throw new ArgumentNullException(nameof(typeToBuild));

tests/Performance/Unity.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
17-
<PackageReference Include="Unity.Abstractions" Version="2.0.0-RC3" />
17+
<PackageReference Include="Unity.Abstractions" Version="2.0.0" />
1818
</ItemGroup>
1919

2020
</Project>

tests/Unity.Tests/ContainerBuildUpFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void BuildNullObject3()
4242
UnityContainer uc = new UnityContainer();
4343
object myNullObject = null;
4444

45-
AssertHelper.ThrowsException<ArgumentNullException>(() => uc.BuildUp(typeof(object), myNullObject), "Null object is not allowed");
45+
AssertHelper.ThrowsException<ArgumentNullException>(() => uc.BuildUp(null, myNullObject), "Null object is not allowed");
4646
}
4747

4848
[TestMethod]
@@ -51,7 +51,7 @@ public void BuildNullObject4()
5151
UnityContainer uc = new UnityContainer();
5252
object myNullObject = null;
5353

54-
AssertHelper.ThrowsException<ArgumentNullException>(() => uc.BuildUp(typeof(object), myNullObject, "myNullObject"), "Null object is not allowed");
54+
AssertHelper.ThrowsException<ArgumentNullException>(() => uc.BuildUp(null, myNullObject, "myNullObject"), "Null object is not allowed");
5555
}
5656

5757
[TestMethod]

tests/Unity.Tests/Unity.Tests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
1212
</ItemGroup>
1313

14-
<ItemGroup Condition="'$(TargetFramework)' != '' AND '$(TargetFramework)' == 'net45' ">
15-
<PackageReference Include="Unity" Version="4.0.1" />
16-
</ItemGroup>
17-
1814
<ItemGroup>
1915
<Reference Include="System.Configuration" />
2016
</ItemGroup>

0 commit comments

Comments
 (0)