Skip to content

Unable to use GenerateResxSource #7741

@softwaretirol

Description

@softwaretirol

I am trying to use the "GenerateResxSource" and "GenerateResxSourceEmitFormatMethods" property.
Just defined a default console application, throwed a Resources.resx in there and activated the flags.

But there is no class generated? Do i miss anything? Tryed to explicitly set the GenerateSource Attribute an all resx in addition - also not working.

Thanks for any hint.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <PropertyGroup>
    <GenerateResxSource>true</GenerateResxSource>
    <GenerateResxSourceEmitFormatMethods>true</GenerateResxSourceEmitFormatMethods>
  </PropertyGroup>
  <ItemGroup>
    <EmbeddedResource Update="*.resx" GenerateSource="true"  />
  </ItemGroup>
</Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions