C#: Improvements to buildless extraction, particularly for .NET Core.

This commit is contained in:
Calum Grant
2020-01-07 18:21:23 +00:00
parent 376779421d
commit 87970337ae
20 changed files with 1140 additions and 151 deletions

View File

@@ -11,6 +11,7 @@ namespace Semmle.BuildAnalyser
class SolutionFile
{
readonly Microsoft.Build.Construction.SolutionFile solutionFile;
public string FullPath { get; }
/// <summary>
/// Read the file.
@@ -19,8 +20,8 @@ namespace Semmle.BuildAnalyser
public SolutionFile(string filename)
{
// SolutionFile.Parse() expects a rooted path.
var fullPath = Path.GetFullPath(filename);
solutionFile = Microsoft.Build.Construction.SolutionFile.Parse(fullPath);
FullPath = Path.GetFullPath(filename);
solutionFile = Microsoft.Build.Construction.SolutionFile.Parse(FullPath);
}
/// <summary>