Skip to content

Commit

Permalink
Updated everything to DNX RC1 including specification tests. Build no…
Browse files Browse the repository at this point in the history
…w also compiles the sample app to make sure it's kept up to date.
  • Loading branch information
tillig committed Oct 16, 2015
1 parent 368a772 commit 0873f87
Show file tree
Hide file tree
Showing 51 changed files with 73 additions and 76 deletions.
1 change: 0 additions & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<add key="NuGet v3" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources>
<add key="AspNetVNext" value="true" />
<add key="AspNetMaster" value="true" />
<add key="NuGet v2" value="true" />
</disabledPackageSources>
Expand Down
5 changes: 3 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ Remove-PathVariable "*Program Files\Microsoft DNX\DNVM*"
Install-Dnvm

# Install DNX
dnvm install $dnxVersion -r CoreCLR -NoNative
dnvm install $dnxVersion -r CLR -NoNative
dnvm install $dnxVersion -r CoreCLR -NoNative -Unstable
dnvm install $dnxVersion -r CLR -NoNative -Unstable
dnvm use $dnxVersion -r CLR

# Package restore
Expand All @@ -95,6 +95,7 @@ Write-Host "Build number:" $env:DNX_BUILD_VERSION

# Build/package
Get-ChildItem -Path .\src -Filter *.xproj -Recurse | ForEach-Object { Build-Project $_.DirectoryName }
Get-ChildItem -Path .\samples -Filter *.xproj -Recurse | ForEach-Object { Build-Project $_.DirectoryName }

# Publish tests so we can test without recompiling
Get-ChildItem -Path .\test -Filter *.xproj -Exclude Autofac.Test.Scenarios.ScannedAssembly.xproj -Recurse | ForEach-Object -Begin { $TestIndex = 0 } -Process { Publish-TestProject -DirectoryName $_.DirectoryName -Index $TestIndex; $TestIndex++; }
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sdk": { "version": "1.0.0-beta8" },
"sdk": { "version": "1.0.0-rc1-15838" },
"sources": ["src", "test", "samples"]
}
2 changes: 1 addition & 1 deletion samples/AutofacWebApiSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace AutofacWebApiSample
{
Expand Down
12 changes: 6 additions & 6 deletions samples/AutofacWebApiSample/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "1.0.0-*",

"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-beta7",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta7",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta7",
"Autofac": "4.0.0-beta7-*",
"Autofac.Extensions.DependencyInjection": "4.0.0-beta8-*"
"Microsoft.AspNet.Mvc": "6.0.0-rc1-*",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta8",
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-*",
"Autofac": "4.0.0-rc1-*",
"Autofac.Extensions.DependencyInjection": "4.0.0-rc1-*"
},

"commands": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
using System.Collections.Generic;
using System.Reflection;
using Autofac.Builder;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace Autofac.Extensions.DependencyInjection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// OTHER DEALINGS IN THE SOFTWARE.

using System;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace Autofac.Extensions.DependencyInjection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.

using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace Autofac.Extensions.DependencyInjection
{
Expand Down
6 changes: 3 additions & 3 deletions src/Autofac.Extensions.DependencyInjection/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-beta8-*",
"version": "4.0.0-rc1-*",
"authors": ["Autofac Contributors"],
"description": "Autofac implementation of the .NET Framework dependency injection abstraction.",
"projectUrl": "http://autofac.org",
Expand All @@ -14,8 +14,8 @@
"url": "https://github.com/autofac/Autofac"
},
"dependencies": {
"Autofac": "4.0.0-beta8-*",
"Microsoft.Framework.DependencyInjection.Abstractions": "1.0.0-beta8"
"Autofac": "4.0.0-rc1-*",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-*"
},
"frameworks": {
"dnx451": { },
Expand Down
2 changes: 1 addition & 1 deletion src/Autofac/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-beta8-*",
"version": "4.0.0-rc1-*",
"authors": ["Autofac Contributors"],
"description": "Core assembly for the Autofac Inversion of Control container",
"summary": "Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using Autofac.Core;
using Autofac.Core.Lifetime;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;

namespace Autofac.Extensions.DependencyInjection.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
using Xunit;

namespace Microsoft.Framework.DependencyInjection.Tests
namespace Microsoft.Extensions.DependencyInjection.Tests
{
public abstract class AllContainerTestsBase
{
Expand All @@ -24,7 +24,6 @@ public void SingleServiceCanBeResolved()
Assert.Equal("FakeServiceSimpleMethod", service.SimpleMethod());
}

[Fact]
public void ServiceInstanceCanBeResolved()
{
var container = CreateContainer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;

namespace Microsoft.Framework.DependencyInjection.Tests
namespace Microsoft.Extensions.DependencyInjection.Tests
{
public class AutofacContainerTests : ScopingContainerTestBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public abstract class AbstractClass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class AnotherClass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class AnotherClassAcceptingData
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithAmbiguousCtors
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection
namespace Microsoft.Extensions.DependencyInjection
{
public class ClassWithInternalConstructor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithNestedReferencesToProvider : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithOptionalArgsCtor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithPrivateCtor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection
namespace Microsoft.Extensions.DependencyInjection
{
public class ClassWithProtectedConstructor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithStaticCtor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithThrowingCtor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class ClassWithThrowingEmptyCtor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Threading;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class CreationCountFakeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class DependOnNonexistentService : IDependOnNonexistentService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection
namespace Microsoft.Extensions.DependencyInjection
{
public class DependsOnServiceWithoutImplementation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class FakeOpenGenericService<T> : IFakeOpenGenericService<T>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class FakeOuterService : IFakeOuterService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public class FakeService : IFakeEveryService, IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IDependOnNonexistentService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFactoryService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
interface IFakeEveryService :
IFakeService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFakeMultipleService : IFakeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFakeOpenGenericService<T>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFakeOuterService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFakeScopedService : IFakeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
public interface IFakeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
{
interface IFakeServiceInstance : IFakeService
{
Expand Down
Loading

0 comments on commit 0873f87

Please sign in to comment.