Remove obsolete RazorProject ViewEngine based create method.
aspnet/AspNetCoredotnet/aspnetcore-tooling#4876
\n\nCommit migrated from 57df0ea9cf
This commit is contained in:
parent
ceb4d0853a
commit
7eb90cbbbd
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue