Fix generating project files for VSCode on Mac without .NET x64 SDK installed

This commit is contained in:
Wojtek Figat
2024-06-28 09:51:29 +02:00
parent dbbc2b70bf
commit 7f482219ef
2 changed files with 2 additions and 3 deletions

View File

@@ -179,8 +179,7 @@ namespace Flax.Build
using (new ProfileEventScope("GenerateProjects"))
{
// Pick the project format
HashSet<ProjectFormat> projectFormats = new HashSet<ProjectFormat>();
var projectFormats = new HashSet<ProjectFormat>();
if (Configuration.ProjectFormatVS2022)
projectFormats.Add(ProjectFormat.VisualStudio2022);
if (Configuration.ProjectFormatVS2019)
@@ -195,7 +194,6 @@ namespace Flax.Build
projectFormats.Add(ProjectFormat.VisualStudio2022);
if (!string.IsNullOrEmpty(Configuration.ProjectFormatCustom))
projectFormats.Add(ProjectFormat.Custom);
if (projectFormats.Count == 0)
projectFormats.Add(Platform.BuildPlatform.DefaultProjectFormat);