diff --git a/src/SlnParser/Helper/ProjectDefinitionParser.cs b/src/SlnParser/Helper/ProjectDefinitionParser.cs index 8a58a9d..4e61a35 100644 --- a/src/SlnParser/Helper/ProjectDefinitionParser.cs +++ b/src/SlnParser/Helper/ProjectDefinitionParser.cs @@ -43,6 +43,10 @@ public bool TryParseProjectDefinition( if (solutionDirectory == null) throw new UnexpectedSolutionStructureException("Solution-Directory could not be determined"); + // NOTE: the path to the project-file is usually separated using '\' - this does not work under linux + projectPath = projectPath.Replace('/', Path.DirectorySeparatorChar); + projectPath = projectPath.Replace('\\', Path.DirectorySeparatorChar); + var projectFileCombinedWithSolution = Path.Combine(solutionDirectory, projectPath); var projectFile = new FileInfo(projectFileCombinedWithSolution);