c# System.Resources.MissingManifestResourceException error

C#
//Add this to your csproj file
<EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention>
Source

Also in C#: