fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

Resx provider looks for incorrect resource name #146

Open btrepp opened 5 years ago

btrepp commented 5 years ago

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 commented 4 years ago

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