diff --git a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs index c2a7d535cf..942e0084a5 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs @@ -182,7 +182,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation // Get the MetadataReference for the executing application. If it's a Roslyn reference, // we can copy the references created when compiling the application to the Razor page being compiled. // This avoids performing expensive calls to MetadataReference.CreateFromImage. - var libraryExport = _libraryExporter.GetLibraryExport(_environment.ApplicationName); + var libraryExport = _libraryExporter.GetExport(_environment.ApplicationName); if (libraryExport?.MetadataReferences != null && libraryExport.MetadataReferences.Count > 0) { Debug.Assert(libraryExport.MetadataReferences.Count == 1, diff --git a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataDictionary.cs b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataDictionary.cs index 3669e8091b..65364354be 100644 --- a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataDictionary.cs +++ b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataDictionary.cs @@ -4,7 +4,7 @@ using System; using System.Collections; using System.Collections.Generic; -using Microsoft.AspNet.Hosting; +using Microsoft.AspNet.Http; using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Mvc