Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue - ComputerSesionProcessor does not have a parameter named doLocalAdminSessionEnum #79

Closed
ArnCo opened this issue Nov 29, 2023 · 2 comments

Comments

@ArnCo
Copy link

ArnCo commented Nov 29, 2023

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

@JonasBK
Copy link
Collaborator

JonasBK commented Nov 30, 2023

Hi!

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

dotnet restore
dotnet build

@ArnCo
Copy link
Author

ArnCo commented Dec 1, 2023

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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants