I'm trying to compile a project that requires the dnlib library. The library itself is specified in References, the project's frameworks and libraries coincide (.NET Framework 2.0), however, an error occurs during compilation

Can you not be found a directive?

on the line using dnlib.DotNet;

If you open the library through Object Inspector, then the dnlib.DotNet namespace can be seen there.

enter image description here

Where am i stupid

  • and where is the project de4dot.blocks? What are his references? - Grundy

1 answer 1

Good day. You have a large number of errors and not the fact that this error is the first. See what error appears first in the Output window when building a project. It is possible that you do not have permission to copy the library to the target folder or some other problems.

  • a large number of errors says nothing, it could be the same attempts to use classes from a project that did not compile - Grundy