BloodHoundAD/SharpHound

Build issue - ComputerSesionProcessor does not have a parameter named doLocalAdminSessionEnum

ArnCo opened this issue · 2 comments

Hello, when trying to build for master, the following stacktrace occurs (only the relevant bits):

nd.AssemblyInfo.cs /warnaserror+:NU1605
C:\builder\SharpHound\src\Sharphound.cs(130,34): warning CS0168: The variable 'e' is declared but never used [C:\builder\SharpHound\Sharphound.csproj]
C:\builder\SharpHound\src\Runtime\ObjectProcessors.cs(41,89): error CS1739: The best overload for 'ComputerSessionProcessor' does not have a parameter named 'doLocalAdminSessionEnum' [C:\builder\SharpHound\Sharphound.csproj]
  CompilerServer: server - server processed compilation - b4b18880-9e52-4df7-8cc6-f9874b0d4069
Done Building Project "C:\builder\SharpHound\Sharphound.csproj" (default targets) -- FAILED.
Done Building Project "C:\builder\SharpHound\Sharphound.sln" (default targets) -- FAILED.
Build FAILED.
"C:\builder\SharpHound\Sharphound.sln" (default target) (1) ->
"C:\builder\SharpHound\Sharphound.csproj" (default target) (2) ->
(CoreCompile target) -> 
  C:\builder\SharpHound\src\Sharphound.cs(130,34): warning CS0168: The variable 'e' is declared but never used [C:\builder\SharpHound\Sharphound.csproj]
"C:\builder\SharpHound\Sharphound.sln" (default target) (1) ->
"C:\builder\SharpHound\Sharphound.csproj" (default target) (2) ->
(CoreCompile target) -> 
  C:\builder\SharpHound\src\Runtime\ObjectProcessors.cs(41,89): error CS1739: The best overload for 'ComputerSessionProcessor' does not have a parameter named 'doLocalAdminSessionEnum' [C:\builder\SharpHound\Sharphound.csproj]
    1 Warning(s)
    1 Error(s)
Time Elapsed 00:00:02.96

Is there an easy way to work around this ?

Cheers,
ArnCo

Hi!

We recently updated the SharpHoundCommon lib on the main branch (2.X). So it should work if you run:

dotnet restore
dotnet build

Hi @JonasBK!

Thanks for the quick answer 👍 . My project was indeed in a weird state, I had to do a fresh git clone for it to work again.

I'm closing.

Cheers 🙂