Skip to content

Commit 699205a

Browse files
committed
Fixing issue with project.json file name comparison
1 parent 189cd9d commit 699205a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebJobs.Script/Description/DotNet/DotNetFunctionInvoker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected override void OnScriptFileChanged(FileSystemEventArgs e)
106106
{
107107
_reloadScript();
108108
}
109-
else if (string.Compare(DotNetConstants.ProjectFileName, e.Name, StringComparison.OrdinalIgnoreCase) == 0)
109+
else if (string.Compare(DotNetConstants.ProjectFileName, Path.GetFileName(e.Name), StringComparison.OrdinalIgnoreCase) == 0)
110110
{
111111
_restorePackages();
112112
}

0 commit comments

Comments
 (0)