diff --git a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationException.cs b/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationException.cs
deleted file mode 100644
index ba9102a35b..0000000000
--- a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationException.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System.Collections.Generic;
-using Microsoft.Framework.Runtime;
-
-namespace Microsoft.AspNet.Diagnostics
-{
- ///
- /// Specifies the contract for an exception representing compilation failure.
- ///
- [AssemblyNeutral]
- public interface ICompilationException
- {
- ///
- /// Gets a sequence of with compilation failures.
- ///
- IEnumerable CompilationFailures { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationFailure.cs b/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationFailure.cs
deleted file mode 100644
index bf16458fc6..0000000000
--- a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationFailure.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System.Collections.Generic;
-using Microsoft.Framework.Runtime;
-
-namespace Microsoft.AspNet.Diagnostics
-{
- ///
- /// Specifies the contract for a file that fails compilation.
- ///
- [AssemblyNeutral]
- public interface ICompilationFailure
- {
- ///
- /// Path of the file that produced the compilation exception.
- ///
- string SourceFilePath { get; }
-
- ///
- /// Contents of the file.
- ///
- string SourceFileContent { get; }
-
- ///
- /// Contents being compiled.
- ///
- ///
- /// For templated files, the represents the original content and
- /// represents the transformed content. This property can be null if
- /// the exception is encountered during transformation.
- ///
- string CompiledContent { get; }
-
- ///
- /// Gets a sequence of produced as a result of compilation.
- ///
- IEnumerable Messages { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationMessage.cs b/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationMessage.cs
deleted file mode 100644
index ed3ca5fed8..0000000000
--- a/src/Microsoft.AspNet.Mvc.Razor/Diagnostics/ICompilationMessage.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using Microsoft.Framework.Runtime;
-
-namespace Microsoft.AspNet.Diagnostics
-{
- ///
- /// Specifies the contract for diagnostic messages produced as result of compiling an instance
- /// of .
- ///
- [AssemblyNeutral]
- public interface ICompilationMessage
- {
- ///
- /// Gets the error message.
- ///
- string Message { get; }
-
- ///
- /// Gets the zero-based line index for the start of the compilation error.
- ///
- int StartLine { get; }
-
- ///
- /// Gets the zero-based column index for the start of the compilation error.
- ///
- int StartColumn { get; }
-
- ///
- /// Gets the zero-based line index for the end of the compilation error.
- ///
- int EndLine { get; }
-
- ///
- /// Gets the zero-based column index for the end of the compilation error.
- ///
- int EndColumn { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Razor/IBeforeCompileContext.cs b/src/Microsoft.AspNet.Mvc.Razor/IBeforeCompileContext.cs
deleted file mode 100644
index b7a5979fd0..0000000000
--- a/src/Microsoft.AspNet.Mvc.Razor/IBeforeCompileContext.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System.Collections.Generic;
-using Microsoft.CodeAnalysis;
-using Microsoft.CodeAnalysis.CSharp;
-
-namespace Microsoft.Framework.Runtime
-{
- [AssemblyNeutral]
- public interface IBeforeCompileContext
- {
- CSharpCompilation CSharpCompilation { get; set; }
-
- IList Resources { get; }
-
- IList Diagnostics { get; }
- }
-}
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Services/IRoslynMetadataReference.cs b/src/Microsoft.AspNet.Mvc.Razor/Services/IRoslynMetadataReference.cs
deleted file mode 100644
index b9c9f152f8..0000000000
--- a/src/Microsoft.AspNet.Mvc.Razor/Services/IRoslynMetadataReference.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using Microsoft.CodeAnalysis;
-
-namespace Microsoft.Framework.Runtime
-{
- [AssemblyNeutral]
- public interface IRoslynMetadataReference : IMetadataReference
- {
- MetadataReference MetadataReference { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Razor/project.json b/src/Microsoft.AspNet.Mvc.Razor/project.json
index c3e5bff9cf..303b1e02e8 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/project.json
+++ b/src/Microsoft.AspNet.Mvc.Razor/project.json
@@ -5,12 +5,14 @@
"warningsAsErrors": false
},
"dependencies": {
+ "Microsoft.AspNet.Diagnostics.Interfaces": "1.0.0-*",
"Microsoft.AspNet.Mvc.Common": { "version": "6.0.0-*", "type": "build" },
"Microsoft.AspNet.Mvc.Core": "6.0.0-*",
"Microsoft.AspNet.Mvc.Razor.Host": "6.0.0-*",
"Microsoft.AspNet.PageExecutionInstrumentation" : "1.0.0-*",
"Microsoft.CodeAnalysis.CSharp": "1.0.0-rc1-*",
- "Microsoft.Framework.Runtime.Roslyn.Common": "1.0.0-*"
+ "Microsoft.Framework.Runtime.Roslyn.Common": "1.0.0-*",
+ "Microsoft.Framework.Runtime.Roslyn.Interfaces": "1.0.0-*"
},
"frameworks": {
"aspnet50": {
diff --git a/src/Microsoft.AspNet.Mvc/IAfterCompileContext.cs b/src/Microsoft.AspNet.Mvc/IAfterCompileContext.cs
deleted file mode 100644
index b5a5b296c1..0000000000
--- a/src/Microsoft.AspNet.Mvc/IAfterCompileContext.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System.Collections.Generic;
-using Microsoft.CodeAnalysis;
-using Microsoft.CodeAnalysis.CSharp;
-
-namespace Microsoft.Framework.Runtime
-{
- [AssemblyNeutral]
- public interface IAfterCompileContext
- {
- CSharpCompilation CSharpCompilation { get; set; }
-
- IList Diagnostics { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc/ICompileModule.cs b/src/Microsoft.AspNet.Mvc/ICompileModule.cs
deleted file mode 100644
index 2ae33db743..0000000000
--- a/src/Microsoft.AspNet.Mvc/ICompileModule.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-namespace Microsoft.Framework.Runtime
-{
- [AssemblyNeutral]
- public interface ICompileModule
- {
- void BeforeCompile(IBeforeCompileContext context);
-
- void AfterCompile(IAfterCompileContext context);
- }
-}
\ No newline at end of file