Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0601
The DllImport attribute must be specified on a method marked 'static' and 'extern'