Skip to content

Commit bbb278c

Browse files
committed
Add vs2022 to DevEnv targets and customize solution names by version
1 parent 953c10c commit bbb278c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

main.sharpmake.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Common() : base(typeof(CustomTarget))
4141
AddTargets(new CustomTarget
4242
{
4343
Platform = Platform.win64,
44-
DevEnv = DevEnv.vs2026,
44+
DevEnv = DevEnv.vs2026 | DevEnv.vs2022,
4545
Optimization = Optimization.Release,
4646
Mode = Mode.Debug | Mode.Profile | Mode.Retail
4747
});
@@ -391,7 +391,7 @@ public SpectrumSolution()
391391
AddTargets(new CustomTarget
392392
{
393393
Platform = Platform.win64,
394-
DevEnv = DevEnv.vs2026,
394+
DevEnv = DevEnv.vs2026 | DevEnv.vs2022,
395395
Optimization = Optimization.Release,
396396
Mode = Mode.Debug | Mode.Profile | Mode.Retail
397397
});
@@ -400,7 +400,8 @@ public SpectrumSolution()
400400
[Configure()]
401401
public void ConfigureAll(Configuration conf, CustomTarget target)
402402
{
403-
conf.SolutionFileName = "Spectrum";
403+
string solutionNameSuffix = target.DevEnv == DevEnv.vs2022 ? "_vs2022" : "";
404+
conf.SolutionFileName = $"Spectrum{solutionNameSuffix}";
404405
conf.SolutionPath = @"[solution.SharpmakeCsPath]\projects\";
405406
string platformName = string.Empty;
406407
/*

0 commit comments

Comments
 (0)