Skip to content

Use nameof(SRID.PropertyName) syntax instead of depending on GenerateResxSource.GenerateResourcesCodeAsConstants #1

Closed

Description

@vatsan-madhavan

The codebase currently uses SRID.PropertyName syntax pervasively. This is supplied by an Arcade build task GenerateResxSource to which I have added an additional support for this particular case via GenerateResourcesCodeAsConstants.

There are ~7k instances across the codebase, and ~1k instances of these are likely coming from generated code. Once we have all the code generators ported over to .NET Core, we need to clean up everything and switch them over to use nameof(SRID.PropertyName) syntax.

Activity

  1. dotMorten commented on Nov 2, 2018

    @dotMorten
    Contributor

    I actually have a code analyzer that can do that work for us automatically so I'd be happy to do that bit.
    image

  2. vatsan-madhavan commented on Nov 2, 2018

    @vatsan-madhavan
    MemberAuthor

    Thanks for the offer - that would be helpful. We will likely take this up post Preview 2 once the code generators have been onboarded (possibly rewritten in T4) and fully functional in the netcore codebase.

  3. karelz commented on Nov 2, 2018

    @karelz
    Member

    I assume it is must have for 3.0, right? (setting milestone to 3.0)
    It sounds like something easy for community to help with (with @dotMorten as first volunteer :))

  4. added this to the 3.0 milestone on Nov 2, 2018
  5. added
    Enhancement Requested
    on Nov 2, 2018
  6. vatsan-madhavan commented on Nov 2, 2018

    @vatsan-madhavan
    MemberAuthor

    No, this is not a must-have for 3.0 - only nice-to-have. I opened this issue as a convenient way to reference it elsewhere in code. There are lots of other things that take precedence that will slowly show up here on GitHub as we start opening them now that we have created this repo here.

  7. modified the milestones: 3.0, Future on Nov 2, 2018
  8. karelz commented on Nov 2, 2018

    @karelz
    Member

    Great, I recommend to set the milestone to Future right away in such case to communicate the urgency ;) (thanks @rladuca for doing that!)

  9. added a commit that references this issue on Jan 2, 2021
  10. 26 remaining items

  11. added a commit that references this issue on Apr 1, 2023
    064dcd7
  12. added a commit that references this issue on Apr 27, 2023
    bdb48e0
  13. ghost removed this from the Future milestone on Apr 27, 2023
  14. ghost locked as resolved and limited conversation to collaborators on May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚧 work in progressEnhancement Requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions