Reacting to DNX changes

This commit is contained in:
Pranav K 2015-09-10 17:51:59 -07:00
parent 14bdaf2db6
commit bc10a17107
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
/// </summary>
public class RazorCompilationService : IRazorCompilationService
{
private const string RazorErrorCode = "RZ1001";
private readonly ICompilationService _compilationService;
private readonly IMvcRazorHost _razorHost;
private readonly IFileProvider _fileProvider;
@ -102,6 +103,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
private DiagnosticMessage CreateDiagnosticMessage(RazorError error, string filePath)
{
return new DiagnosticMessage(
RazorErrorCode,
error.Message,
$"{error} ({error.Location.LineIndex},{error.Location.CharacterIndex}) {error.Message}",
filePath,