SharpGen icon indicating copy to clipboard operation
SharpGen copied to clipboard

shargen.dll error

Open jmaravi opened this issue 6 years ago • 1 comments

When running shargen.dll I get: C:\Users\PC\SharpGen\bin\Release\netcoreapp2.1>SharpGen.dll

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

My attacking machine and my target use Net 4.0.3019, not sure why I am getting this

jmaravi avatar Jul 14 '19 23:07 jmaravi

Hi @jmaravi , SharpGen is written for dotnet core, and you'll have to use the dotnet core CLI to execute it. You don't execute the SharpGen.dll directly by itself.

It should look something like this: PS C:\Users\PC\SharpGen > dotnet ./bin/Release/netcoreapp2.1/SharpGen.dll <insert arguments>

cobbr avatar Jul 15 '19 15:07 cobbr