RazorEngine icon indicating copy to clipboard operation
RazorEngine copied to clipboard

EmbeddedResourceTemplateManager doesn't work with resources embedded by F# projects

Open marknuzz opened this issue 8 years ago • 1 comments

This is due to the call to GetManifestResourceStream using a RootType, which forces a namespace to be used. F# projects embed resources as simply the name of the file, without a dot prefix.

The solution for this would be to provide a configuration option or property to use GetManifestResourceStream(string) instead of GetManifestResourceStream(Type, string).

marknuzz avatar Jul 27 '17 23:07 marknuzz

Hi, a simple fix would be to be able to create an EmbeddedResourceTemplateManager without Type. Or null.

If null we call the GetManifestResourceStream( string) method

rpallares avatar Jan 29 '20 16:01 rpallares