Switch to build-time generation for Resx Files

Open
#94 16 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp

Research direction

Start with the default .csproj template and its ItemGroup entries for Compile and EmbeddedResource, then investigate how ResXFileCodeGenerator is invoked during builds. Done means build-time generation works for ResX files and provides a straightforward way for developers to access the resources.

Written by the indexing model from the issue text.

Description

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

Dominant language
C#
Stars
3.2k
Forks
1.3k
Avg merge
4d 1h
Merged PRs (30d)
235

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/sdk

All issues in dotnet/sdk

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.