Azure / autorest.csharp

Extension for AutoRest (https://github.com/Azure/autorest) that generates C# code
MIT License
140 stars 160 forks source link

[DPG] Change the emitter to use `getLibraryName` instead when getting `projectedName` #3186

Closed ArcturusZhang closed 7 months ago

ArcturusZhang commented 1 year ago

We are currently using functions from the cadl compiler instead of the functions from cadl-dpg. We should change our code to use those in cadl-dpg instead because there are some shimming inside the cadl-dpg package.

ArcturusZhang commented 7 months ago

Because the following reasons:

  1. we will adopt the getAllModels from TCGC, we do not really need to handle this on our side.
  2. this change will not change any generated code We will not do this any more. It gets automatically resolved when we adopt getAllModels from TCGC