Skip to content

Commit 6bea49f

Browse files
committed
Only use FileModificationTimeUtc when the file exists.
1 parent 8285bed commit 6bea49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReSharper.FSharp/src/FSharp/FSharp.Common/src/Checker/FcsProjectBuilder.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ type FcsProjectBuilder(checkerService: FcsCheckerService, itemsContainer: IFShar
237237
else
238238
Some ({
239239
Path = path.FullPath
240-
LastModified = path.FileModificationTimeUtc
240+
LastModified = if path.ExistsFile then path.FileModificationTimeUtc else DateTime.MinValue
241241
} : ProjectSnapshot.ReferenceOnDisk))
242242
)
243243
|> Seq.toList

0 commit comments

Comments
 (0)