Skip to content

Commit

Permalink
Fix version serialize error
Browse files Browse the repository at this point in the history
net48 and net7 do not work same in Version serialize
  • Loading branch information
NATSUME Hiroaki committed May 13, 2024
1 parent 19c4fbc commit c8bbff1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tunny.Core/Settings/TSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Tunny.Core.Settings
{
public class TSettings
{
public Version Version { get; set; } = TEnvVariables.Version;
public string Version { get; set; } = TEnvVariables.Version.ToString();
public Optimize Optimize { get; set; } = new Optimize();
public Result Result { get; set; } = new Result();
public string StudyName { get; set; } = string.Empty;
Expand Down
2 changes: 1 addition & 1 deletion Tunny/Component/Optimizer/BoneFishComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override void SolveInstance(IGH_DataAccess DA)
CheckArtifactsInput(Params.Input[3].Sources.Select(ghParam => ghParam.InstanceGuid));

var settings = TSettings.LoadFromJson();
Version tunnyAssembleVersion = TEnvVariables.Version;
string tunnyAssembleVersion = TEnvVariables.Version.ToString();
if (settings.CheckPythonLibraries || settings.Version != tunnyAssembleVersion)
{
AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "The optimization environment has not been built; launch the UI of the Tunny component once and install Python.");
Expand Down
2 changes: 1 addition & 1 deletion Tunny/UI/OptimizationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public OptimizationWindow(FishingComponent component)
private void RunPythonInstaller()
{
TLog.MethodStart();
Version tunnyAssembleVersion = TEnvVariables.Version;
string tunnyAssembleVersion = TEnvVariables.Version.ToString();
if (_settings.CheckPythonLibraries || _settings.Version != tunnyAssembleVersion)
{
TLog.Info("Run Python installer");
Expand Down

0 comments on commit c8bbff1

Please sign in to comment.