Custom resource provider considerations
If you use a custom resource provider, which implements the IResourceProvider interface, you must include the following code at the beginning of the GetObject method:
This is required, because some resources are dynamic and cannot be resolved during compilation