Hi All,

I have added an xsd to a resource file of my solution.

I now want to get to the xsd file, but am having difficulty. When I added the file to the resource file, the Persistence type is set to Linked at compile time.

My resource file is called Resources.resx and the xsd file resides physically in a subdirectory of the solution. The file is called RBGENERIC.xsd.

So, my code so far looks like this:

Code:
string filePath = System.AppDomain.CurrentDomain.BaseDirectory.ToString();
            ResourceManager resourceManager = ResourceManager.CreateFileBasedResourceManager("Resources", filePath, null);
            string res = resourceManager.GetString("RBGENERIC");
my code fails tring to set the res string with:

Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.
baseName: Resources locationInfo: <null> fileName: Resources.resources


I then want to add this to a Schema set in the form:

Code:
 XmlSchemaSet sc = new XmlSchemaSet();
            sc.Add("http://www.mytargetname", res);
I had this working fine using a path with the xsd being stored outside the project. But I now need to embed the xsd as a resource.