Hi,
I want to use the EditControl for C# scripting with IntelliSense.
For this I have to add the "System" and children namespaces to get these types also.
How can I add these?
I tried it with:
Assembly assembly = Assembly.GetAssembly(typeof(System.Int16));
string path = assembly.Location;
uriList.Add(new Uri(path));
It doesn't work and I get an Exception:
FileLoadException: Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
So how can I add the assembly for using it?
Best regards,
Jürgen
Hi,
I forgot, that I use .Net5 instead of .Net Framework 4.x.
I tried it with both and got the same result:
If using .Net Framework - it works
If using .Net5 - The exeption occurs
Attached is the sample for both Frameworks I tried.
Best regards,
Jürgen
Hi again,
Isn't it possible to provide a property of used Assemblies directly instead of the list of URIs?
In that case I can use
typeof(int).Assembly
instead of trying to load the assembly.
Best regards,
Jürgen
|
Recommended approach – exe will perform automatic configuration
Please find the patch setup here:
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from:
Please find the Nugets from the below location:
|