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);
}
}