Compiler Error CS1507

Cannot link resource file 'file' when building a module

/linkresource was used in the same compilation with /target:module, which is not allowed. For example, the following options would generate CS1507:

csc /linkresource:rf.resource /target:module in.cs

Embeding resourrces (/resource), however, is allowed.