Add -genproject -rider option for generating Rider compatible solution files
This commit is contained in:
@@ -179,7 +179,7 @@ namespace Flax.Build
|
||||
using (new ProfileEventScope("GenerateProjects"))
|
||||
{
|
||||
// Pick the project format
|
||||
List<ProjectFormat> projectFormats = new List<ProjectFormat>();
|
||||
HashSet<ProjectFormat> projectFormats = new HashSet<ProjectFormat>();
|
||||
|
||||
if (Configuration.ProjectFormatVS2022)
|
||||
projectFormats.Add(ProjectFormat.VisualStudio2022);
|
||||
@@ -191,6 +191,8 @@ namespace Flax.Build
|
||||
projectFormats.Add(ProjectFormat.VisualStudio2015);
|
||||
if (Configuration.ProjectFormatVSCode)
|
||||
projectFormats.Add(ProjectFormat.VisualStudioCode);
|
||||
if (Configuration.ProjectFormatRider)
|
||||
projectFormats.Add(ProjectFormat.VisualStudio2022);
|
||||
if (!string.IsNullOrEmpty(Configuration.ProjectFormatCustom))
|
||||
projectFormats.Add(ProjectFormat.Custom);
|
||||
|
||||
|
||||
@@ -213,6 +213,12 @@ namespace Flax.Build
|
||||
[CommandLine("vscode", "Generates Visual Studio Code project format files. Valid only with -genproject option.")]
|
||||
public static bool ProjectFormatVSCode = false;
|
||||
|
||||
/// <summary>
|
||||
/// Generates Visual Studio 2022 project format files for Rider. Valid only with -genproject option.
|
||||
/// </summary>
|
||||
[CommandLine("rider", "Generates Visual Studio 2022 project format files for Rider. Valid only with -genproject option.")]
|
||||
public static bool ProjectFormatRider = false;
|
||||
|
||||
/// <summary>
|
||||
/// Generates code project files for a custom project format type. Valid only with -genproject option.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user