From 6d4b2e504a88d3155e21b14b31f9eb3adbe1514e Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 31 Oct 2022 14:37:05 +0200 Subject: FSE Procedures .net developer pack elimination. --- .../Scripting/Tango.Scripting.Basic/ReferenceAssembly.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Basic') diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/ReferenceAssembly.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/ReferenceAssembly.cs index 665bd7ab1..13c3ae569 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/ReferenceAssembly.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Basic/ReferenceAssembly.cs @@ -12,6 +12,8 @@ namespace Tango.Scripting.Basic { public class ReferenceAssembly { + public static String DotNetFrameworkFolder { get; set; } = AssemblyHelper.GetAssemblyTargetFrameworkFolder(Assembly.GetExecutingAssembly()); + private static Dictionary _assembliesCache; static ReferenceAssembly() @@ -65,7 +67,7 @@ namespace Tango.Scripting.Basic { try { - String dotNetPath = AssemblyHelper.GetAssemblyTargetFrameworkFolder(Assembly.GetExecutingAssembly()); + String dotNetPath = DotNetFrameworkFolder; String dotNetAsm = Path.Combine(dotNetPath, Name + ".dll"); loaded = Assembly.LoadFrom(dotNetAsm); _assembliesCache.Add(Name, loaded); -- cgit v1.3.1