Can’t load a manifest resource with GetManifestResourceStream()

The name of the resource is always:

<Base namespace>.<RelativePathInProject>.<FileName>

So if your resource is located in “Resources/Xsd/”, and your default project namespace is “MonitoringAPI.Configuration”, the resource name is:

"MonitoringAPI.Configuration.Resources.Xsd.MonitoringConfiguration.xsd"

Also make sure the build action for your resource is set to “Embedded Resource”

Leave a Comment