From 1bad8ce6d1a69b956a839b3843affe87455c408f Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 25 Aug 2015 12:56:23 -0700 Subject: [PATCH] Ensure that assembly path is specified in Roslyn MetadataReference. --- .../Compilation/RoslynCompilationService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs index 942e0084a5..e183d1b799 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs @@ -14,11 +14,11 @@ using Microsoft.AspNet.Mvc.Razor.Internal; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Emit; -using Microsoft.Framework.Internal; -using Microsoft.Framework.OptionsModel; -using Microsoft.Dnx.Runtime; using Microsoft.Dnx.Compilation; using Microsoft.Dnx.Compilation.CSharp; +using Microsoft.Dnx.Runtime; +using Microsoft.Framework.Internal; +using Microsoft.Framework.OptionsModel; namespace Microsoft.AspNet.Mvc.Razor.Compilation { @@ -258,7 +258,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation } }); - return metadata.GetReference(); + return metadata.GetReference(filePath: path); } private static bool IsError(Diagnostic diagnostic)