Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

add dll reference

$
0
0
Hi I'm trying to add a DLL reference to my project, actually I want to communicate with microchip called MCP2210 that is supported with dll file used in Visual Studio projects. The problem that after adding that dll file to my project through MonoDevelop then I should add "using MCP2210" (based on their instructions in Microchip website) I always get the the following error: error CS0246: The type or namespace name `MCP2210' could not be found. Are you missing a using directive or an assembly reference?. I searched on the internet on how to add VS dll file to unity then I found that the solution is to build a class library project in VS where I can add the proposed dll file plus UnityEngine.dll file then create class in that project and call all the needed methods from that dll file at the end I can add the new dll file which is created by VS studio to unity, so when I did all of that, the error gone in debugging but, when I built unity game I have got another errors saying that: 1- Error building Player: Extracting referenced dlls failed. 2-rgumentException: The Assembly MCP2210DLL-M is referenced by USBDLLCLASS. But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:137) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:140) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:172) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(). (by the way "USBDLLCLASS" is the name of the new dll file created by vs, and "MCP2210DLL-M" is the name of the dll file that supported by microchip for vs projects.(Iam using csharp in unity)). knowing that I re-added the both dll references to Mono-Develop and I pasted the dll references in new folder inside the assets folder called Plugins!! can anyone help me with this?. I know that I didn't add any script with the question cause I think it is not related to that!! Thanks in Advance

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>