question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch to build-time generation for Resx Files

See original GitHub issue

When 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.

/cc @davkean @srivatsn @natidea @nguerrera

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
sharwellcommented, May 27, 2020

@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.

4reactions
sharwellcommented, Apr 10, 2023

Note that @AArnott and I are actively working on ResxSourceGenerator usability validation: https://github.com/dotnet/roslyn-analyzers/pull/6560

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found