From 4ef80fabf66624b464e77ac9dd6e8c4461759e0c Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 16 Mar 2016 16:22:16 -0700 Subject: [PATCH] Fixing CI build failure --- samples/IdentitySample.Mvc/Startup.cs | 2 +- samples/IdentitySample.Mvc/project.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/IdentitySample.Mvc/Startup.cs b/samples/IdentitySample.Mvc/Startup.cs index 2cb9b9a7dc..006881becf 100644 --- a/samples/IdentitySample.Mvc/Startup.cs +++ b/samples/IdentitySample.Mvc/Startup.cs @@ -47,7 +47,7 @@ namespace IdentitySample services.AddIdentity(options => { options.Cookies.ApplicationCookie.AuthenticationScheme = "ApplicationCookie"; - options.Cookies.ApplicationCookie.DataProtectionProvider = new DataProtectionProvider(new DirectoryInfo("C:\\Github\\Identity\\artifacts")); + options.Cookies.ApplicationCookie.DataProtectionProvider = DataProtectionProvider.Create(new DirectoryInfo("C:\\Github\\Identity\\artifacts")); options.Cookies.ApplicationCookie.CookieName = "Interop"; }) .AddEntityFrameworkStores() diff --git a/samples/IdentitySample.Mvc/project.json b/samples/IdentitySample.Mvc/project.json index 0be5c11d05..7c9e473219 100644 --- a/samples/IdentitySample.Mvc/project.json +++ b/samples/IdentitySample.Mvc/project.json @@ -26,7 +26,8 @@ "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.NETCore.Platforms": "1.0.1-*" + "Microsoft.NETCore.Platforms": "1.0.1-*", + "System.IO": "4.1.0-*" }, "compilationOptions": { "emitEntryPoint": true