In your C# code I saw follwing …
public const string CppFunctionsDLL = @"DycareAPIBLE\Dependencies\Dll1.dll";

Does it mean your DLL is in ‘DycareAPIBLE\Dependencies’ ?
You could try using just  [DllImport(“Dll1.dll”)] and place the dll in the root folder along the pytorch DLLs