Microsoft.SourceBrowser.BuildLogParser.LogAnalyzer.FixOutputPaths C# (CSharp) Method

FixOutputPaths() private static method

private static FixOutputPaths ( LogAnalyzer analyzer ) : void
analyzer LogAnalyzer
return void
        private static void FixOutputPaths(LogAnalyzer analyzer)
        {
            foreach (var invocation in analyzer.Invocations)
            {
                // TypeScript
                if (invocation.OutputAssemblyPath == null)
                {
                    continue;
                }

                if (invocation.OutputAssemblyPath.StartsWith(".") || invocation.OutputAssemblyPath.StartsWith("\\"))
                {
                    invocation.OutputAssemblyPath = Path.GetFullPath(
                        Path.Combine(
                            Path.GetDirectoryName(invocation.ProjectFilePath),
                            invocation.OutputAssemblyPath));
                }

                invocation.OutputAssemblyPath = Path.GetFullPath(invocation.OutputAssemblyPath);
                invocation.ProjectFilePath = Path.GetFullPath(invocation.ProjectFilePath);
            }
        }