SharpGen is a .NET Core console application that utilizes the Rosyln C# compiler to quickly cross-compile .NET Framework console applications or libraries.
This logic in Common.cs does not work well when the user has "bin" in their username or more precisely has the letters "bin" anywhere in the path that the execution is occurring from.
public static string SharpGenDirectory = SplitFirst(SplitFirst(Assembly.GetExecutingAssembly().Location, "bin"), "SharpGen.dll");
Here is an example of the error received when my path had "cbin" in it:
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\cReferences\references.yml'.
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