Switch to build-time generation for Resx Files
See original GitHub issueWhen using our default .csproj template:
<ItemGroup>
<Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
<EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
<None Include="project.json" />
</ItemGroup>
We don’t get the ResXFileCodeGenerator executed, so there isn’t a nice developer experience of how to get access to the resources.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Working with .resx Files Programmatically - .NET
At compile time, Visual Studio uses the Resource File Generator (Resgen.exe) to convert the .resx file to a binary resource (.resources) ...
Read more >Create resource files - .NET
Create an XML resource (.resx) file that contains string, image, or object data. You can use Resource File Generator (resgen.exe) to convert the ......
Read more >Change CodeGenerator for resource file in Visual Studio ...
My code regenerates on build and when saving the template which was enough for me. It builds by using a variation of this...
Read more >Stop Generating Designer.cs for .resx files in .NET Core
NET Core project, you will find a ".Designer.cs" file is automatically generated and updated whenever the resource content changes. This file ...
Read more >New resx item does not exist in the runtime even after ...
New resx item does not exist in the runtime even after compiling and "generating" the resx ... I can confirm pressing "Generate Resource"...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tmat Can this issue get prioritized? All of the Microsoft teams are using this via arcade as though the feature is just a normal part of a clean SDK project, but no one else has access to it. An acceptable interim alternative would be disabling the use of the arcade feature in roslyn and other open source projects to align the experiences.
Note that @AArnott and I are actively working on ResxSourceGenerator usability validation: https://github.com/dotnet/roslyn-analyzers/pull/6560