Skip to content

Resx provider looks for incorrect resource name #146

@btrepp

Description

@btrepp

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions