Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resx provider looks for incorrect resource name #146

Open
btrepp opened this issue Nov 21, 2018 · 1 comment
Open

Resx provider looks for incorrect resource name #146

btrepp opened this issue Nov 21, 2018 · 1 comment

Comments

@btrepp
Copy link

btrepp commented Nov 21, 2018

type private res = FSharp.Configuration.ResXProvider<file="LogStrings.resx">
Project.fsproj

    <EmbeddedResource Update="LogStrings.resx">
    </EmbeddedResource>

Compiles and detects things, but throws the below at runtime.

Unhandled Exception: System.Exception: Exception raised by job ---> System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "LogStrings.resources" was correctly embedded or linked into assembly

This is because resources are now appear to be embedded as "Project.LogStrings.resources"
I know this wasn't the case before. I believe this is some sort of change in how things are being compiled/pulled in.

A workaround is

    <EmbeddedResource Update="LogStrings.resx">
      <LogicalName>LogStrings.resources</LogicalName>
    </EmbeddedResource>
@danabr
Copy link

danabr commented Aug 6, 2019

I also ran into this. Would a second, optional parameter for specifying the name of the compiled resource file be an OK solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants