Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorMarcos Henrich <marcos.henrich@xamarin.com>2015-01-13 19:43:42 +0300
committerMarcos Henrich <marcos.henrich@xamarin.com>2015-01-13 20:47:48 +0300
commitd19f5dc228537594ea4377d61f68f1eaefabcba2 (patch)
treed964c12e1a779bf26fc5968c1dda0d4db201908e /msvc
parent5b851f03a2cdd1cba10fd226b447e4cff526063e (diff)
Fixed msvc/scripts/genproj.cs file seperator issue on UNIX.
On UNIX '\\' is a valid file name character. In this case we have to replace '\\' for Path.GetFileNameWithoutExtension to work as expected.
Diffstat (limited to 'msvc')
-rw-r--r--msvc/scripts/genproj.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs
index b3e6b0d6715..c61e89c19bb 100644
--- a/msvc/scripts/genproj.cs
+++ b/msvc/scripts/genproj.cs
@@ -908,7 +908,7 @@ class MsbuildGenerator {
{
refs.AppendFormat (" <ProjectReference Include=\"{0}\">{1}", GetRelativePath (result.csProjFilename, match.CsprojFilename), NewLine);
refs.Append (" <Project>" + match.projectGuid + "</Project>" + NewLine);
- refs.Append (" <Name>" + Path.GetFileNameWithoutExtension (match.CsprojFilename) + "</Name>" + NewLine);
+ refs.Append (" <Name>" + Path.GetFileNameWithoutExtension (match.CsprojFilename.Replace ('\\', Path.DirectorySeparatorChar)) + "</Name>" + NewLine);
if (alias != null)
refs.Append (" <Aliases>" + alias + "</Aliases>");
refs.Append (" </ProjectReference>" + NewLine);