Open
Description
Source Generators
Nuget Package
NuGet Package: Microsoft.CodeAnalysis.ResxSourceGenerator
Version: 3.11.0-beta1.24454.1
Describe the bug
Configuring a Ressource File with Public="true"
makes only the getters public (or rather the class is made public, the getters are always public and format methods are always internal)
Steps To Reproduce
Add a ressource file with arguments and configure the analyzer:
...
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="3.11.0-beta1.24454.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<EmbeddedResource Update="**/*.resx" Public="true" EmitFormatMethods="true"/>
</ItemGroup>
...
Example Ressource string with argument: This {addressType} address does to conform to expected requirements.
Expected behavior
Format Methods are public
Actual behavior
Format Methods are internal
Personal suggestion for fix
Replace internal with public in this line:
Metadata
Metadata
Assignees
Labels
No labels
Activity