MigrationsScaffolder.TryGetProjectFile(String, String) Method

Definition

Tries to find a file under the project directory.

protected virtual string TryGetProjectFile (string projectDir, string fileName);
protected virtual string? TryGetProjectFile (string projectDir, string fileName);
abstract member TryGetProjectFile : string * string -> string
override this.TryGetProjectFile : string * string -> string
Protected Overridable Function TryGetProjectFile (projectDir As String, fileName As String) As String

Parameters

projectDir
String

The project directory.

fileName
String

The filename.

Returns

The file path or null if none.

Applies to