c# System.Resources.MissingManifestResourceException error

//Add this to your csproj file
<EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention>