Browse Source

Switch to use \ as Visual Studio is still sensitive about this in some cases

Josh Engebretson 9 years ago
parent
commit
9c3cb24bec
1 changed files with 7 additions and 5 deletions
  1. 7 5
      Source/ToolCore/NETTools/NETProjectGen.cpp

+ 7 - 5
Source/ToolCore/NETTools/NETProjectGen.cpp

@@ -165,16 +165,18 @@ namespace ToolCore
 
 
                 compile.SetAttribute("Include", path.CString());
                 compile.SetAttribute("Include", path.CString());
 
 
+                String link = result[j];
+
                 // put generated files into generated folder
                 // put generated files into generated folder
                 if (sourceFolder.Contains("Generated") && sourceFolder.Contains("CSharp") && sourceFolder.Contains("Packages"))
                 if (sourceFolder.Contains("Generated") && sourceFolder.Contains("CSharp") && sourceFolder.Contains("Packages"))
                 {
                 {
-                    compile.CreateChild("Link").SetValue("Generated\\" + result[j]);
-                }
-                else
-                {
-                    compile.CreateChild("Link").SetValue(result[j]);
+                    link = "Generated\\" + result[j];
                 }
                 }
 
 
+                link.Replace('/', '\\');
+
+                compile.CreateChild("Link").SetValue(link);
+
             }
             }
 
 
         }
         }