Edit

Share via


Compiler Error CS1507

Cannot link resource file 'file' when building a module

LinkResources was used in the same compilation with the module option on the TargetType, which is not allowed. For example, the following options would generate CS1507:

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

Embedding resources (Resources), however, is allowed.