IntelliSense AssemblyReferences
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
Attachment: Intellisense_Test_30c5aa68.zip
Thirupathi B.
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
Thanks for your patience.
We fixed the reported issue “FileLoadException thrown during loading the assembly name in NET50”. We are currently experiencing an issue with our patch portal. So, we will be unable to provide the patch details that we promised. We’ll provide the patch details on December 17, 2021. We appreciate your patience until then.
Regards,
Thirupathi B.
V19.3.0.53
|
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:
|
Thirupathi B.
- 9 Replies
- 3 Participants
-
JS Jürgen Schildmann
- Nov 23, 2021 07:58 PM UTC
- Dec 18, 2021 03:11 PM UTC