In C#, the default behaviour of embedded resource name is like this:
<default namespace.><extended namespace.><filename>
Without changing the default namespace of the project, can I control the name of embedded resource?
Join Stack Overflow to learn, share knowledge, and build your career.
In C#, the default behaviour of embedded resource name is like this:
<default namespace.><extended namespace.><filename>
Without changing the default namespace of the project, can I control the name of embedded resource?
The way to do this is quite simple, but you will have to edit the Visual Studio Project (csproj or vbproj) file in a text editor. See this MSDN blog post.
Here is the relevant XML snippet:
<ItemGroup>
<EmbeddedResource Include="bar.resx">
<LogicalName>notfoo.bar.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>
If you're still having a bit of a hard time after trying @JustinDearing's answer, try this: