diff --git a/lib/modules/manager/nuget/package-tree.spec.ts b/lib/modules/manager/nuget/package-tree.spec.ts
index e16f5a223cc40ff48f993cbc77496d8fb2a4dda0..d200483f6e2862bf8fc6dd6c5efab91d309a567a 100644
--- a/lib/modules/manager/nuget/package-tree.spec.ts
+++ b/lib/modules/manager/nuget/package-tree.spec.ts
@@ -155,12 +155,10 @@ describe('modules/manager/nuget/package-tree', () => {
       );
     });
 
-    it('throws error on invalid xml file', async () => {
+    it('skips on invalid xml file', async () => {
       git.getFileList.mockResolvedValue(['foo/bar.csproj']);
       Fixtures.mock({ '/tmp/repo/foo/bar.csproj': '<invalid' });
-      await expect(getDependentPackageFiles('foo/bar.csproj')).rejects.toThrow(
-        'Invalid xml file: foo/bar.csproj'
-      );
+      expect(await getDependentPackageFiles('foo/bar.csproj')).toEqual([]);
     });
   });
 });
diff --git a/lib/modules/manager/nuget/package-tree.ts b/lib/modules/manager/nuget/package-tree.ts
index db23febed63e676f4f5a37bff6d36eaf9b8e9f8f..e1bafc9c30880ec7ac3949a6098083367e6b7b3d 100644
--- a/lib/modules/manager/nuget/package-tree.ts
+++ b/lib/modules/manager/nuget/package-tree.ts
@@ -40,7 +40,7 @@ export async function getDependentPackageFiles(
   for (const f of packageFiles) {
     const doc = await readFileAsXmlDocument(f);
     if (!doc) {
-      throw new Error(`Invalid xml file: ${f}`);
+      continue;
     }
 
     const projectReferenceAttributes = doc