© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y 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>
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF Image with resource file .resx
C#CC# / help
3y ago
✅ My RESX file still is supposedly invalid
C#CC# / help
2y ago
.resx does not properly generate Design-File
C#CC# / help
2y ago
Wpf Resx files
C#CC# / help
4y ago