Skip to content

dotnet-resgen #4334

Closed
Closed

Description

@davidfowl

https://msdn.microsoft.com/en-us/library/ccec7sz1(v=vs.110).aspx

We're going to need to either port resgen to coreclr or just write a new command that replicates some of the functionality. Today in the DNX we replicate some of it and pass data to the roslyn APIs. I'd imagine compile would work like this:

dotnet-compile /foo/project.json
dotnet-resgen /foo/project.json
resgen /foo/Resources.resx
resgen /foo/Resources2.resx
dotnet-compile-csc /foo/bin/dnxcore50/dotnet-compile.csc.rsp

I ran into this while trying to compile nuget with dotnet compile

Activity

  1. davidfowl commented on Oct 18, 2015

    @davidfowl
    MemberAuthor

    I'm going to put something temporary together for the sake of dnu parity but we need to think about the responsibilities of each of the tools. The steps are:

    • Get the list of resources
    • Convert resx -> .resources in a temp folder (or intermediate folder)
    • Gather .resources and embedded resources as compiler arguments
    • As part of the conversion, the logical name inferred from the file names are usually language specific (C#/VB etc). We could hand wave this for now but it's worth a mention.
  2. fearthecowboy commented on Nov 19, 2015

    @fearthecowboy

    Does this (or will it one day) provide the second feature of ResGen, that is, to create the strongly typed classes (either generating the .cs files or just emit the code) ?

    (Desperately to know :) )

  3. TheRealPiotrP commented on Dec 1, 2015

    @TheRealPiotrP

    This tool needs to be renamed dotnet-resgen until it's at parity with resgen. It's clashing on paths.

  4. TheRealPiotrP commented on Dec 30, 2015

    @TheRealPiotrP

    @davidfowl what's left here for Beta milestone?

  5. andyleejordan commented on Jan 15, 2016

    @andyleejordan
    Member

    @davidfowl @piotrpMSFT Will strongly typed classes be part of the beta milestone?

  6. TheRealPiotrP commented on Jan 16, 2016

    @TheRealPiotrP

    Beta is basically done. We will be branching soon.

  7. andyleejordan commented on Feb 16, 2016

    @andyleejordan
    Member

    @davidfowl What's the status on strongly typed class generation? I thought we were tracking that here, shall I make a new issue?

  8. davidfowl commented on Feb 16, 2016

    @davidfowl
    MemberAuthor

    Yes, make a new one.

  9. andyleejordan commented on Feb 16, 2016

    @andyleejordan
    Member

    I think dotnet/cli#819 is it.

  10. transferred this issue fromdotnet/clion Jan 31, 2020
  11. added this to the Backlog milestone on Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions