.NET Core 2.1

.NET Core 2.1

BestFriendCZ
Advocate Advocate
1,875 Views
3 Replies
Message 1 of 4

.NET Core 2.1

BestFriendCZ
Advocate
Advocate

 

Hi all,

i would like to create addin to AutoCAD. Does anybody experience with that? Does support AutoCAD this type of technology? When i try to load addin AutoCAD throws error like this. Classic .NET framework library works.

 

Command: NETLOAD

Cannot load assembly. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

File name: 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

   at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)

   at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)

   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)

   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)

   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)

   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)

   at Autodesk.AutoCAD.ApplicationServices.AutoCADApplicationHolder.Initialize(Assembly assembly)

   at Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.ProcessAssembly(Assembly assembly)

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

...
0 Likes
Accepted solutions (1)
1,876 Views
3 Replies
Replies (3)
Message 2 of 4

norman.yuan
Mentor
Mentor
Accepted solution

AutoCAD .NET API requires full .NET framework. One cannot use .NET Core/.NET Standard for AutoCAD .NET API programming (the latest .NET technology naming is very confusing and is very difficult to follow/explain/understand Man Sad

 

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 4

BestFriendCZ
Advocate
Advocate

thak you for information


@norman.yuan wrote:

AutoCAD .NET API requires full .NET framework. One cannot use .NET Core/.NET Standard for AutoCAD .NET API programming (the latest .NET technology naming is very confusing and is very difficult to follow/explain/understand Man Sad

 

 


 

...
0 Likes
Message 4 of 4

laubscher.stefan
Community Visitor
Community Visitor

When will AutoCAD .NET support .NET Core/.NET6+ ???