File: TestInfrastructure\NotFoundProjectItem.cs
Web Access
Project: src\src\Mvc\Mvc.Razor.RuntimeCompilation\test\Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test.csproj (Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Razor.Language;
 
internal class NotFoundProjectItem : RazorProjectItem
{
    public NotFoundProjectItem(string basePath, string path)
    {
        BasePath = basePath;
        FilePath = path;
    }
 
    public override string BasePath { get; }
 
    public override string FilePath { get; }
 
    public override bool Exists => false;
 
    public override string PhysicalPath => throw new NotSupportedException();
 
    public override Stream Read() => throw new NotSupportedException();
}