I have a schema that I have added to my Sequential Workflow solution. Currently, when I access the schema it is hard coded to a location on my c drive.
doc.Schemas.Add(@"http://usdoj.gov/leisp/lexs/publishdiscover/3.1", @"C:\Code\NSI\xsd\lexs\publish-discover\3.1\publish-discover.xsd");
I would like to upload this schema to a library for future use. However, this sequential workflow has to be used on many different computers, all of which will not contain the schema in the location that I have on my computer. So I added the schema to my workflow project but when I try to call on it using a relative path with the following code:
doc.Schemas.Add(@"http://usdoj.gov/leisp/lexs/publishdiscover/3.1", @"..\Schemas\publish-discover.xsd");
I get the error: "c:\windows\system32\Schemas\publish-discover.xsd". I want to be able to access the schema without having to provide a local hard coded path so I can upload it to a library and have the final wsp file work on multiple machines.