diff --git a/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs
index bc08dd81c5..cd36649dc8 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs
@@ -28,8 +28,6 @@ namespace Microsoft.AspNetCore.Razor.Language
public override bool Exists => File.Exists;
- public override string FileName => File.Name;
-
public override string PhysicalPath => File.FullName;
public override Stream Read() => File.OpenRead();
diff --git a/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs
index a6c4b63e7e..ecbb8dce32 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Razor.Language
///
/// A that does not exist.
///
- public class NotFoundProjectItem : RazorProjectItem
+ internal class NotFoundProjectItem : RazorProjectItem
{
///
/// Initializes a new instance of .
diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs
index 602f1cc5c5..6928158752 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs
@@ -41,7 +41,7 @@ namespace Microsoft.AspNetCore.Razor.Language
///
/// The root relative path of the item.
///
- public virtual string CombinedPath
+ public string CombinedPath
{
get
{
@@ -59,7 +59,7 @@ namespace Microsoft.AspNetCore.Razor.Language
///
/// The extension of the file.
///
- public virtual string Extension
+ public string Extension
{
get
{
@@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Razor.Language
///
/// The name of the file including the extension.
///
- public virtual string FileName
+ public string FileName
{
get
{
@@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Razor.Language
///
/// Path relative to without the extension.
///
- public virtual string PathWithoutExtension
+ public string PathWithoutExtension
{
get
{