diff options
author | Miguel de Icaza <miguel@gnome.org> | 2016-05-18 17:14:17 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2016-05-18 17:15:17 +0300 |
commit | 567628709703447f30ebee1e50043d94c2b89779 (patch) | |
tree | f8a7cb734bdc5f33dafa3e19c2407c0c84499d92 /msvc/scripts/genproj.cs | |
parent | 4c466bc3183781fd4e16e6a2f00f1782f80d0ddc (diff) |
Graduate the csproj/solution to completed - you can now build with the toplevel net_4_x.sln
Diffstat (limited to 'msvc/scripts/genproj.cs')
-rw-r--r-- | msvc/scripts/genproj.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs index b8f01a62291..e220a95a506 100644 --- a/msvc/scripts/genproj.cs +++ b/msvc/scripts/genproj.cs @@ -70,11 +70,15 @@ class SlnGenerator { public void Write (string filename) { + var fullPath = Path.GetDirectoryName (filename) + "/"; + using (var sln = new StreamWriter (filename)) { sln.WriteLine (); sln.WriteLine (header); foreach (var proj in libraries) { - sln.WriteLine (project_start, proj.library, proj.csProjFilename, proj.projectGuid); + var unixProjFile = proj.csProjFilename.Replace ("\\", "/"); + var fullProjPath = Path.GetFullPath (unixProjFile); + sln.WriteLine (project_start, proj.library, MsbuildGenerator.GetRelativePath (fullPath, fullProjPath), proj.projectGuid); sln.WriteLine (project_end); } sln.WriteLine ("Global"); @@ -1103,7 +1107,7 @@ public class Driver { Console.WriteLine (sb.ToString ()); } - WriteSolution (four_five_sln_gen, MakeSolutionName (MsbuildGenerator.profile_4_x)); + WriteSolution (four_five_sln_gen, Path.Combine ("..", "..", MakeSolutionName (MsbuildGenerator.profile_4_x))); if (makefileDeps){ const string classDirPrefix = "./../../"; |