Skip to content

Commit

Permalink
skip non existing files (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast authored Feb 25, 2025
1 parent 08513de commit 00a0f6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/MonoGame.Content.Builder/PackageReferencesCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public static PackageReferencesCollection LoadBinary(string filePath)
{
try
{
if (!File.Exists(filePath))
return null;

using (Stream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.None))
using (var writer = new PackageReferencesCollectionBinaryReader(stream))
{
Expand Down

0 comments on commit 00a0f6b

Please sign in to comment.