Skip to content

Commit

Permalink
Hardcoded namespace
Browse files Browse the repository at this point in the history
Fixed bug caused by changing namespace, because embedded resources
couldn't be found until the resource path was updated as well.
  • Loading branch information
gap777 committed Dec 3, 2014
1 parent 389741c commit ff686e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SchemaTron/src/Resources/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static XDocument SchemaPhaseA
{
if (schemaPhaseA == null)
{
schemaPhaseA = LoadXmlDocument("SchemaTron.Resources.schema_phaseA.xml");
schemaPhaseA = LoadXmlDocument("XRouter.SchemaTron.Resources.schema_phaseA.xml");
}
}

Expand All @@ -34,7 +34,7 @@ public static XDocument SchemaPhaseB
{
if (schemaPhaseB == null)
{
schemaPhaseB = LoadXmlDocument("SchemaTron.Resources.schema_phaseB.xml");
schemaPhaseB = LoadXmlDocument("XRouter.SchemaTron.Resources.schema_phaseB.xml");
}
}

Expand All @@ -50,7 +50,7 @@ public static XDocument SchemaPhaseC
{
if (schemaPhaseC == null)
{
schemaPhaseC = LoadXmlDocument("SchemaTron.Resources.schema_phaseC.xml");
schemaPhaseC = LoadXmlDocument("XRouter.SchemaTron.Resources.schema_phaseC.xml");
}
}

Expand Down
2 changes: 1 addition & 1 deletion SchemaTron/test/Resources/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal static class Provider
public static XDocument LoadXmlDocument(string name)
{
Assembly currentAssembly = Assembly.GetExecutingAssembly();
Stream stream = currentAssembly.GetManifestResourceStream(String.Format("SchemaTron.Test.Resources.{0}", name));
Stream stream = currentAssembly.GetManifestResourceStream(String.Format("XRouter.SchemaTron.Test.Resources.{0}", name));
XDocument xDoc = XDocument.Load(stream, LoadOptions.SetLineInfo);
return xDoc;
}
Expand Down

0 comments on commit ff686e4

Please sign in to comment.