Skip to content

Enable dotnet-resgen-<lang> support for CLI #4782

@gkhanna79

Description

@gkhanna79

There is a need to allow dotnet-resgen to generate .NET Core compliant and strongly typed resource access code as part of the CLI infrastructure. The high-level principle is to ensure that there is an extensible way to generate the strongly type code for resource access as CLI is extended to support new languages. In this paradigm:

  1. Each language compiler that supports CLI will also support a dotnet-resgen- (e.g. Dotnet-resgen-cs) that will generate the language specific source code
  2. Dot net compile/build will support invoking dotnet-resgen- with the required inputs to generate the code
  3. The generated code will then be fed into the dotnet-compile pipeline where the language compiler is invoked to perform the actual app-source->IL compilation.

This will allow us to keep the model simple, support the scenario and extensible for future language support (e.g. F#).

This issue should be used to track the initial implementation for C#.

CC @piotrpMSFT @davidfowl @weshaggard @Petermarcu @jaredpar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions