BloodHoundAD / SharpHound3

C# Data Collector for the BloodHound Project, Version 3
GNU General Public License v3.0
521 stars 156 forks source link

Build error #49

Open yeti-code opened 2 years ago

yeti-code commented 2 years ago

Targeting .NET Framework 4.5 as said in the README.

Error Output:

Build started...
1>------ Build started: Project: SharpHound3, Configuration: Debug Any CPU ------
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(203,40,203,78): error CS0308: The non-generic method 'Marshal.PtrToStructure(IntPtr, object)' cannot be used with type arguments
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(235,40,235,78): error CS0308: The non-generic method 'Marshal.PtrToStructure(IntPtr, object)' cannot be used with type arguments
1>C:\Users\B*\tools\SharpHound3\SharpHound3\DirectorySearch.cs(173,38,173,39): warning CS0168: The variable 'e' is declared but never used
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(549,41,549,75): error CS0308: The non-generic method 'Marshal.PtrToStructure(IntPtr, object)' cannot be used with type arguments
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(654,27,654,36): warning CS0649: Field 'ResolutionHelpers.WorkstationInfo100.lan_group' is never assigned to, and will always have its default value null
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(652,27,652,40): warning CS0649: Field 'ResolutionHelpers.WorkstationInfo100.computer_name' is never assigned to, and will always have its default value null
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(656,24,656,33): warning CS0649: Field 'ResolutionHelpers.WorkstationInfo100.ver_minor' is never assigned to, and will always have its default value 0
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(650,24,650,35): warning CS0649: Field 'ResolutionHelpers.WorkstationInfo100.platform_id' is never assigned to, and will always have its default value 0
1>C:\Users\B*\tools\SharpHound3\SharpHound3\ResolutionHelpers.cs(655,24,655,33): warning CS0649: Field 'ResolutionHelpers.WorkstationInfo100.ver_major' is never assigned to, and will always have its default value 0
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========