Remove obsolete RazorProject ViewEngine based create method.

aspnet/AspNetCoredotnet/aspnetcore-tooling#4876
\n\nCommit migrated from 57df0ea9cf
This commit is contained in:
N. Taylor Mullen 2019-01-15 15:07:18 -08:00
parent ceb4d0853a
commit 7eb90cbbbd
2 changed files with 1 additions and 12 deletions

View File

@ -123,16 +123,5 @@ namespace Microsoft.AspNetCore.Razor.Language
return path;
}
/// <summary>
/// Create a Razor project based on a physical file system.
/// </summary>
/// <param name="rootDirectoryPath">The directory to root the file system at.</param>
/// <returns>A <see cref="RazorProject"/></returns>
[Obsolete("This method is obsolete and will be removed in a future version. Please use " + nameof(RazorProjectFileSystem) + "." + nameof(RazorProjectFileSystem.Create) + " instead.")]
public static RazorProject Create(string rootDirectoryPath)
{
return new DefaultRazorProjectFileSystem(rootDirectoryPath);
}
}
}

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Razor.Language
/// </summary>
/// <param name="rootDirectoryPath">The directory to root the file system at.</param>
/// <returns>A <see cref="RazorProjectFileSystem"/></returns>
public new static RazorProjectFileSystem Create(string rootDirectoryPath)
public static RazorProjectFileSystem Create(string rootDirectoryPath)
{
if (string.IsNullOrEmpty(rootDirectoryPath))
{