Changeset 11594 for branches/Breadcrumbs/HeuristicLab.Scripting
- Timestamp:
- 11/27/14 11:23:37 (10 years ago)
- Location:
- branches/Breadcrumbs
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/Breadcrumbs
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Breadcrumbs/HeuristicLab.Scripting/3.3/CSharpScript.cs
r11135 r11594 42 42 // use 'vars.Clear()' to remove all variables 43 43 // use 'foreach (KeyValuePair<string, object> v in vars) { ... }' to iterate over all variables 44 // use 'variables' to work with IEnumerable<T> extension methods on the script's variable store 44 45 45 46 using System; … … 134 135 } 135 136 }); 137 scriptThread.SetApartmentState(ApartmentState.STA); 136 138 scriptThread.Start(); 137 139 } -
branches/Breadcrumbs/HeuristicLab.Scripting/3.3/CSharpScriptBase.cs
r10857 r11594 27 27 namespace HeuristicLab.Scripting { 28 28 public abstract class CSharpScriptBase { 29 protected Variables variables; 29 30 protected dynamic vars; 30 31 … … 41 42 42 43 internal void Execute(VariableStore variableStore) { 43 var s = new Variables(variableStore);44 variables = vars = new Variables(variableStore); 44 45 Main(); 45 46 } -
branches/Breadcrumbs/HeuristicLab.Scripting/3.3/Plugin.cs.frame
r10506 r11594 23 23 24 24 namespace HeuristicLab.Scripting { 25 [Plugin("HeuristicLab.Scripting", "3.3. 9.$WCREV$")]25 [Plugin("HeuristicLab.Scripting", "3.3.10.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Scripting-3.3.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/Breadcrumbs/HeuristicLab.Scripting/3.3/Properties/AssemblyInfo.cs.frame
r10506 r11594 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3. 9.$WCREV$")]57 [assembly: AssemblyFileVersion("3.3.10.$WCREV$")] -
branches/Breadcrumbs/HeuristicLab.Scripting/3.3/Script.cs
r10857 r11594 24 24 using System.CodeDom.Compiler; 25 25 using System.Collections.Generic; 26 using System.Diagnostics; 26 27 using System.Drawing; 27 28 using System.IO; … … 142 143 143 144 public virtual IEnumerable<Assembly> GetAssemblies() { 144 var assemblies = new List<Assembly>(); 145 foreach (var a in AppDomain.CurrentDomain.GetAssemblies()) { 146 try { 147 if (File.Exists(a.Location)) assemblies.Add(a); 148 } catch (NotSupportedException) { 149 // NotSupportedException is thrown while accessing 150 // the Location property of the anonymously hosted 151 // dynamic methods assembly, which is related to 152 // LINQ queries 153 } 154 } 145 var assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.IsDynamic && File.Exists(a.Location)).ToList(); 155 146 assemblies.Add(typeof(Microsoft.CSharp.RuntimeBinder.Binder).Assembly); // for dlr functionality 156 147 return assemblies;
Note: See TracChangeset
for help on using the changeset viewer.