Changeset 17097 for stable/HeuristicLab.Scripting
- Timestamp:
- 07/07/19 23:40:10 (5 years ago)
- Location:
- stable
- Files:
-
- 11 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Scripting/3.3/CompilationException.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Scripting/3.3/ExecutableScript.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Attic; 27 27 28 28 namespace HeuristicLab.Scripting { 29 29 [Item("Executable Script", "An executable script.")] 30 [Storable Class]30 [StorableType("206BFDFE-A829-424E-BFAD-BB7993830325")] 31 31 public abstract class ExecutableScript : Script { 32 32 private Thread scriptThread; … … 47 47 #region Construction & Cloning 48 48 [StorableConstructor] 49 protected ExecutableScript( bool deserializing) : base(deserializing) { }49 protected ExecutableScript(StorableConstructorFlag _) : base(_) { } 50 50 protected ExecutableScript(ExecutableScript original, Cloner cloner) 51 51 : base(original, cloner) { -
stable/HeuristicLab.Scripting/3.3/HeuristicLab.Scripting-3.3.csproj
r13277 r17097 10 10 <RootNamespace>HeuristicLab.Scripting</RootNamespace> 11 11 <AssemblyName>HeuristicLab.Scripting-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 14 <TargetFrameworkProfile /> … … 81 81 </PropertyGroup> 82 82 <ItemGroup> 83 <Reference Include="Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL"> 84 <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath> 85 </Reference> 86 <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 87 <HintPath>..\..\packages\HEAL.Attic.1.0.0-pre02\lib\net461\HEAL.Attic.dll</HintPath> 88 </Reference> 83 89 <Reference Include="Microsoft.CSharp" /> 84 90 <Reference Include="System" /> 85 91 <Reference Include="System.Core" /> 86 92 <Reference Include="System.Drawing" /> 93 <Reference Include="System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> 94 <HintPath>..\..\packages\System.Drawing.Common.4.5.1\lib\net461\System.Drawing.Common.dll</HintPath> 95 </Reference> 87 96 <Reference Include="System.Xml.Linq" /> 88 97 <Reference Include="System.Data.DataSetExtensions" /> … … 102 111 <Compile Include="Variables.cs" /> 103 112 <Compile Include="VariableStore.cs" /> 113 <None Include="packages.config" /> 104 114 <None Include="Plugin.cs.frame" /> 105 115 <Compile Include="Script.cs" /> -
stable/HeuristicLab.Scripting/3.3/Plugin.cs.frame
r15587 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Scripting/3.3/Properties/AssemblyInfo.cs.frame
r15587 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Scripting/3.3/Script.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 using HeuristicLab.Common.Resources; 33 33 using HeuristicLab.Core; 34 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;34 using HEAL.Attic; 35 35 using Microsoft.CSharp; 36 36 37 37 namespace HeuristicLab.Scripting { 38 [Storable Class]38 [StorableType("0FA4F218-E1F5-4C09-9C2F-12B32D4EC373")] 39 39 public abstract class Script : NamedItem, IProgrammableItem { 40 40 #region Fields & Properties … … 66 66 #region Construction & Initialization 67 67 [StorableConstructor] 68 protected Script( bool deserializing) : base(deserializing) { }68 protected Script(StorableConstructorFlag _) : base(_) { } 69 69 protected Script(Script original, Cloner cloner) 70 70 : base(original, cloner) { -
stable/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScript.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 28 28 29 29 namespace HeuristicLab.Scripting { 30 30 [Item("C# Script", "An empty C# script.")] 31 31 [Creatable(CreatableAttribute.Categories.Scripts, Priority = 100)] 32 [Storable Class]32 [StorableType("1630933C-AB5B-44EC-A967-C299CC57E4E3")] 33 33 public class CSharpScript : ExecutableScript, IStorableContent { 34 34 #region Fields & Properties … … 49 49 #region Construction & Cloning 50 50 [StorableConstructor] 51 protected CSharpScript( bool deserializing) : base(deserializing) { }51 protected CSharpScript(StorableConstructorFlag _) : base(_) { } 52 52 protected CSharpScript(CSharpScript original, Cloner cloner) 53 53 : base(original, cloner) { -
stable/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScriptBase.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
stable/HeuristicLab.Scripting/3.3/Scripts/Templates/CSharpScriptTemplate.cs
r11937 r17097 6 6 // use 'variables' to work with IEnumerable<T> extension methods on the script's variable store 7 7 8 using System;9 using System.Linq;10 using System.Collections.Generic;11 8 12 using HeuristicLab.Core;13 using HeuristicLab.Common;14 9 //using HeuristicLab.Collections; 15 10 //using HeuristicLab.Data; -
stable/HeuristicLab.Scripting/3.3/VariableStore.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using HeuristicLab.Common.Resources; 28 28 using HeuristicLab.Core; 29 using HeuristicLab.Persistence.Core; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HEAL.Attic; 31 30 using HeuristicLab.Persistence.Default.Xml; 32 31 33 32 namespace HeuristicLab.Scripting { 34 33 [Item("VariableStore", "Represents a variable store.")] 35 [Storable Class]34 [StorableType("DDE415E7-99FD-4C10-9B5E-63334876FFDE")] 36 35 public class VariableStore : ObservableDictionary<string, object>, IItem { 37 36 #region Properties … … 55 54 #region Constructors & Cloning 56 55 [StorableConstructor] 57 protected VariableStore( bool deserializing) : base(deserializing) { }56 protected VariableStore(StorableConstructorFlag _) : base(_) { } 58 57 protected VariableStore(VariableStore original, Cloner cloner) { 59 58 cloner.RegisterClonedObject(original, this); … … 82 81 protected T CloneByPersistence<T>(T value) { 83 82 using (var serializerStream = new MemoryStream()) { 84 XmlGenerator.Serialize(value, serializerStream); 83 var serializer = new ProtoBufSerializer(); 84 serializer.Serialize(value, serializerStream, disposeStream: false); 85 85 var bytes = serializerStream.GetBuffer(); 86 86 using (var deserializerStream = new MemoryStream(bytes)) { 87 return XmlParser.Deserialize<T>(deserializerStream);87 return (T)serializer.Deserialize(deserializerStream); 88 88 } 89 89 } -
stable/HeuristicLab.Scripting/3.3/packages.config
r16565 r17097 2 2 <packages> 3 3 <package id="Google.Protobuf" version="3.6.1" targetFramework="net461" /> 4 <package id="HEAL.Attic" version="1.0.0-pre0 1" targetFramework="net461" />4 <package id="HEAL.Attic" version="1.0.0-pre02" targetFramework="net461" /> 5 5 <package id="System.Drawing.Common" version="4.5.1" targetFramework="net461" /> 6 6 </packages>
Note: See TracChangeset
for help on using the changeset viewer.