Edit

Share via


Compiler Error CS1906

Invalid option 'option'; Resource visibility must be either 'public' or 'private'

This error indicates an invalid Resources (Embed Resource File to Output) or LinkResources (Link to .NET Framework Resource) command line option. Check the syntax of the /resource or /linkresource command line option, and make sure that the accessibility modifier used is either public or private.