From 4d1541aa1d0561839e751d8b36637843be2fdcea Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 27 Oct 2024 23:27:10 +0100 Subject: [PATCH] Another blind fix #3018 --- .../VisualStudioCode/VisualStudioCodeProjectGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Projects/VisualStudioCode/VisualStudioCodeProjectGenerator.cs b/Source/Tools/Flax.Build/Projects/VisualStudioCode/VisualStudioCodeProjectGenerator.cs index 68faf3178..8adde26b3 100644 --- a/Source/Tools/Flax.Build/Projects/VisualStudioCode/VisualStudioCodeProjectGenerator.cs +++ b/Source/Tools/Flax.Build/Projects/VisualStudioCode/VisualStudioCodeProjectGenerator.cs @@ -301,7 +301,7 @@ namespace Flax.Build.Projects.VisualStudioCode json.BeginArray("configurations"); { var cppProject = solution.Projects.FirstOrDefault(x => x.BaseName == solution.Name || x.Name == solution.Name); - var mainProjectModule = solution.MainProject?.Targets?.Length != 0 ? solution.MainProject.Targets[0].Modules[0] : null; + var mainProjectModule = solution.MainProject?.Targets?.Length != 0 ? solution.MainProject.Targets[0]?.Modules[0] : null; var csharpProject = mainProjectModule != null ? solution.Projects.FirstOrDefault(x => x.BaseName == mainProjectModule || x.Name == mainProjectModule) : null; if (cppProject != null)