From 079fe5749db1ae05732b18a56b73c28ff78db3d7 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 13 Aug 2014 09:30:01 -0700 Subject: [PATCH] Added comment about the source of the Covert method --- .../Compilation/RoslynCompilationService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs index 7caa22fb85..d162fccb5b 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/Compilation/RoslynCompilationService.cs @@ -119,6 +119,9 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation foreach (var metadataReference in export.MetadataReferences) { + // Taken from https://github.com/aspnet/KRuntime/blob/757ba9bfdf80bd6277e715d6375969a7f44370ee/src/Microsoft.Framework.Runtime.Roslyn/RoslynCompiler.cs#L164 + // We don't want to take a dependency on the Roslyn bit directly since it pulls in more dependencies + // than the view engine needs (Microsoft.Framework.Runtime) for example references.Add(ConvertMetadataReference(metadataReference)); }