diff --git a/src/compute.geometry/Program.cs b/src/compute.geometry/Program.cs index 76fd94b3..85878adf 100644 --- a/src/compute.geometry/Program.cs +++ b/src/compute.geometry/Program.cs @@ -25,7 +25,7 @@ static void Main(string[] args) Logging.Init(); RhinoInside.Resolver.Initialize(); - RhinoInside.Resolver.UseLatest = true; + RhinoInside.Resolver.UseLatest = false; #if DEBUG // Uncomment the following to debug with core Rhino source. This // tells compute to use a different RhinoCore than what RhinoInside thinks @@ -40,10 +40,11 @@ static void Main(string[] args) StartTime = DateTime.Now; Shutdown.RegisterStartTime(StartTime); Log.Information($"Child process started at " + StartTime.ToLocalTime().ToString()); + ParseCommandLineArgs(args); RhinoInside.Resolver.LoadRhino(); - + LogVersions(); var host = Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { @@ -124,8 +125,21 @@ static void ParseCommandLineArgs(string[] args) } } } + private static void LogVersions() + { + string compute_version = null, rhino_version = null; + try + { + compute_version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + rhino_version = typeof(Rhino.RhinoApp).Assembly.GetName().Version.ToString(); + } + catch { } + Log.Information("Compute {ComputeVersion}, Rhino {RhinoVersion}", compute_version, rhino_version); + Log.Debug("Rhino system directory: {Path}", RhinoInside.Resolver.RhinoSystemDirectory); + } } + public class RhinoGetModule : ICarterModule { public void AddRoutes(IEndpointRouteBuilder app) diff --git a/src/compute.geometry/compute.geometry.csproj b/src/compute.geometry/compute.geometry.csproj index d458b0ea..2f334152 100644 --- a/src/compute.geometry/compute.geometry.csproj +++ b/src/compute.geometry/compute.geometry.csproj @@ -13,6 +13,7 @@ False False True + 8.0.0 ..\bin\Debug\$(AssemblyName)