Have you built the link.xml file through NodeCanvas Preferred Types Editor? If so, this can be the reason since the link.xml file avoids stripping code, so that reflection based (ScriptControl) tasks are able to work without an issue. If you are not after using those tasks, you can safely delete link.xml file though.