Fixing formatting in RoslynCompilationService
This commit is contained in:
parent
345021d822
commit
85bb33a62a
|
|
@ -51,7 +51,8 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
||||||
/// The <see cref="ICompilerOptionsProvider"/> that provides Roslyn compilation settings.
|
/// The <see cref="ICompilerOptionsProvider"/> that provides Roslyn compilation settings.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="host">The <see cref="IMvcRazorHost"/> that was used to generate the code.</param>
|
/// <param name="host">The <see cref="IMvcRazorHost"/> that was used to generate the code.</param>
|
||||||
public RoslynCompilationService(IApplicationEnvironment environment,
|
public RoslynCompilationService(
|
||||||
|
IApplicationEnvironment environment,
|
||||||
IAssemblyLoadContextAccessor loaderAccessor,
|
IAssemblyLoadContextAccessor loaderAccessor,
|
||||||
ILibraryExporter libraryExporter,
|
ILibraryExporter libraryExporter,
|
||||||
ICompilerOptionsProvider compilerOptionsProvider,
|
ICompilerOptionsProvider compilerOptionsProvider,
|
||||||
|
|
@ -157,7 +158,11 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
||||||
sourceFileContent = ReadFileContentsSafely(_fileProvider, sourceFilePath);
|
sourceFileContent = ReadFileContentsSafely(_fileProvider, sourceFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
var compilationFailure = new CompilationFailure(sourceFilePath, sourceFileContent, compilationContent, group.Select(d => d.ToDiagnosticMessage(_environment.RuntimeFramework)));
|
var compilationFailure = new CompilationFailure(
|
||||||
|
sourceFilePath,
|
||||||
|
sourceFileContent,
|
||||||
|
compilationContent,
|
||||||
|
group.Select(d => d.ToDiagnosticMessage(_environment.RuntimeFramework)));
|
||||||
|
|
||||||
failures.Add(compilationFailure);
|
failures.Add(compilationFailure);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue