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