diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/Internal/TaskCache.cs b/src/Microsoft.AspNetCore.Razor.Runtime/Internal/TaskCache.cs
deleted file mode 100644
index c10fd7852e..0000000000
--- a/src/Microsoft.AspNetCore.Razor.Runtime/Internal/TaskCache.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// 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.Threading.Tasks;
-
-namespace Microsoft.AspNetCore.Razor.Internal
-{
- public static class TaskCache
- {
-
- ///
- /// A that's already completed successfully.
- ///
- ///
- /// We're caching this in a static readonly field to make it more inlinable and avoid the volatile lookup done
- /// by Task.CompletedTask.
- ///
-#if NET451
- public static readonly Task CompletedTask = Task.FromResult(0);
-#else
- public static readonly Task CompletedTask = Task.CompletedTask;
-#endif
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/Runtime/TagHelpers/TagHelperExecutionContext.cs b/src/Microsoft.AspNetCore.Razor.Runtime/Runtime/TagHelpers/TagHelperExecutionContext.cs
index 03969b28e0..469c59efb1 100644
--- a/src/Microsoft.AspNetCore.Razor.Runtime/Runtime/TagHelpers/TagHelperExecutionContext.cs
+++ b/src/Microsoft.AspNetCore.Razor.Runtime/Runtime/TagHelpers/TagHelperExecutionContext.cs
@@ -6,8 +6,8 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Razor.Internal;
using Microsoft.AspNetCore.Razor.TagHelpers;
+using Microsoft.Extensions.Internal;
namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers
{
diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelper.cs b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelper.cs
index bd1dd4d4b3..7c1a9b1d1c 100644
--- a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelper.cs
+++ b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelper.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Razor.Internal;
+using Microsoft.Extensions.Internal;
namespace Microsoft.AspNetCore.Razor.TagHelpers
{
diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/project.json b/src/Microsoft.AspNetCore.Razor.Runtime/project.json
index 2db6421bc6..9a01f612ea 100644
--- a/src/Microsoft.AspNetCore.Razor.Runtime/project.json
+++ b/src/Microsoft.AspNetCore.Razor.Runtime/project.json
@@ -37,6 +37,10 @@
"Microsoft.Extensions.HashCodeCombiner.Sources": {
"type": "build",
"version": "1.1.0-*"
+ },
+ "Microsoft.Extensions.TaskCache.Sources": {
+ "version": "1.1.0-*",
+ "type": "build"
}
},
"frameworks": {