C#: Minimal update of relevant code to minimize project dependencies and hide some implementation details behind interfaces.

This commit is contained in:
Michael Nebel
2023-08-18 10:43:58 +02:00
parent f47e59dff1
commit c0d1179c8a
23 changed files with 181 additions and 147 deletions

View File

@@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Xml;
namespace Semmle.Extraction.CSharp
namespace Semmle.Extraction
{
/// <summary>
/// Represents a .csproj file and reads information from it.
@@ -27,7 +27,7 @@ namespace Semmle.Extraction.CSharp
if (directoryName is null)
{
throw new Extraction.InternalError($"Directory of file '{Filename}' is null");
throw new InternalError($"Directory of file '{Filename}' is null");
}
Directory = directoryName;

View File

@@ -12,6 +12,7 @@
<DefineConstants>TRACE;DEBUG;DEBUG_LABELS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build" Version="17.3.2" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.4.0" />
<PackageReference Include="GitInfo" Version="2.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>