diff options
author | Jean-Michel Perraud <jean-michel.perraud@csiro.au> | 2013-01-11 02:55:57 +0400 |
---|---|---|
committer | Jean-Michel Perraud <jean-michel.perraud@csiro.au> | 2013-01-11 02:55:57 +0400 |
commit | 009f6521b3ac80f76d962626bc3cdd576549b90a (patch) | |
tree | f08c4b607ce6507afd3770a1759f09b800e4279c /msvc/scripts/genproj.cs | |
parent | 81ad8b58bb694879b0830f16b01ce33f196c7da9 (diff) |
minor refactor for solution files names generation
Diffstat (limited to 'msvc/scripts/genproj.cs')
-rw-r--r-- | msvc/scripts/genproj.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs index f6a1371e874..ec1dde2fed5 100644 --- a/msvc/scripts/genproj.cs +++ b/msvc/scripts/genproj.cs @@ -936,10 +936,10 @@ public class Driver { } Console.WriteLine (sb.ToString ()); - writeSolution (two_sln_gen, "net_2_0.sln"); - writeSolution (three_five_sln_gen, "net_3_5.sln"); - writeSolution (four_sln_gen, "net_4_0.sln"); - writeSolution (four_five_sln_gen, "net_4_5.sln"); + writeSolution (two_sln_gen, mkSlnName (MsbuildGenerator.profile_2_0)); + writeSolution (three_five_sln_gen, mkSlnName (MsbuildGenerator.profile_3_5)); + writeSolution (four_sln_gen, mkSlnName (MsbuildGenerator.profile_4_0)); + writeSolution (four_five_sln_gen, mkSlnName (MsbuildGenerator.profile_4_5)); // A few other optional solutions // Solutions with 'everything' and the most common libraries used in development may be of interest //writeSolution (sln_gen, "mcs_full.sln"); @@ -949,6 +949,11 @@ public class Driver { //writeSolution (build_sln_gen, "mcs_build.sln"); } + private static string mkSlnName (string profileTag) + { + return "net" + profileTag + ".sln"; + } + private static void fillSolution (SlnGenerator solution, string profileString, List<MsbuildGenerator.VsCsproj> projects, Func<MsbuildGenerator.VsCsproj, bool> additionalFilter = null) { foreach (var vsCsproj in projects) { |