How attach dll for debug release versions x64
Hello, I have got a c# Class Library, .Net framework is 4.7.1. This library uses dll files with different CPU configuration and Build settings.
Actually, I use the x64 version and set project configuration (.csproj file) according to debug/release building like this:
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<Reference Include="dllName">
<HintPath>.\dlls\debug\dllName.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' == 'Release'">
<Reference Include="dllName">
<HintPath>.\dlls\release\dllName.dll</HintPath>
</Reference>
</ItemGroup>
After building, it, I want to use these libraries in my Windows Unity project. But I have got a lot of problems with it.
First is - I can't set CPU configuration for unity VS project - there is ANY CPU only, how can I change it (when I change it and close VS, after opening it's ANY CPU again)?
Second is - How can I set Unity to use debug/release versions of my library?
The problem is that when I try to build the application it throws an exception that unity can't use or can't find dllName.dll. Help me, please
Your answer
![](https://koobas.hobune.stream/wayback/20220612175654im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Visual studio from unity not recognizing imported c++ CLR DLL 1 Answer
Import libnodave.dll .net into Unity3D "DllNotFoundException: libnodave.dll" Siemens PLC 0 Answers
using Google.Protobuf & ZeroMQ 0 Answers
Why fileID of a class is changed when it is renamed in an external library? 1 Answer
MS SQL Database and System.Data dll 2 Answers