If I remember correctly, it's the name of the assembly plus the full name of the file (extension included), with a dot between them.
A quick way to find out for sure: use the Assembly.GetManifestResourceNames method:
string[] result = myAssembly.GetManifestResourceNames();
... and inspect the contents of result
in the debugger.
ETA: Heck, if you only have one resource, you could just use this code to get the name:
string name = myAssembly.GetManifestResourceNames()[0];
I don't recommend that, though: I've found that sometimes VS will create empty resource files and compile them into the assembly, so you might have more assembly resources than you think.
ETA 2018-06-26: Here's another way I'm surprised I didn't think of in 2013. This will give you the resource name based on the name of the original resource:
string resourceFileName = "myResource.xsd";
string resourceName = myAssembly.GetManifestResourceNames()
.Where(name => name.Contains(resourceFileName))
.FirstOrDefault();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…