C
C#3w ago
Ruttie

Resx file problems

I'm trying to generate a designer file for my resx resources in vscode on linux, but my Language class is internal instead of public, what is wrong? My code:
<ItemGroup>
<EmbeddedResource Update="Localization/Language.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<!--<LastGenOutput>Language.Designer.cs</LastGenOutput>-->
<StronglyTypedFileName>$(MSBuildProjectDirectory)\Localization\Language.Designer.cs</StronglyTypedFileName>
<StronglyTypedLanguage>CSharp</StronglyTypedLanguage>
<StronglyTypedNamespace>TestProject.Localization</StronglyTypedNamespace>
<StronglyTypedClassName>Language</StronglyTypedClassName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Localization/Language.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<!--<LastGenOutput>Language.Designer.cs</LastGenOutput>-->
<StronglyTypedFileName>$(MSBuildProjectDirectory)\Localization\Language.Designer.cs</StronglyTypedFileName>
<StronglyTypedLanguage>CSharp</StronglyTypedLanguage>
<StronglyTypedNamespace>TestProject.Localization</StronglyTypedNamespace>
<StronglyTypedClassName>Language</StronglyTypedClassName>
</EmbeddedResource>
</ItemGroup>
0 Replies
No replies yetBe the first to reply to this messageJoin