Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emitter-output-dir/Generated/src now instead of emitter-output-dir/Generated #4610

Closed
cataggar opened this issue Apr 19, 2024 · 1 comment
Closed
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. DPG v3 Version 3 of AutoRest C# generator.

Comments

@cataggar
Copy link
Member

I am upgrading from "@azure-tools/typespec-csharp": "0.2.0-beta.20230723.1" to "@azure-tools/typespec-csharp": "0.2.0-beta.20240418.4". It now generates to emitter-output-dir/Generated/src instead of emitter-output-dir/Generated. Why was src added? Is this change in behavior on purpose?

The tspconfig.yaml is this:

emit:
  - "@azure-tools/typespec-csharp"
options:
  "@azure-tools/typespec-csharp":
    # Output will be in a "Generated" folder under.
    emitter-output-dir: "{project-root}/../clients/dotnet"
    namespace: "ConveyorApi"
    clear-output-folder: true
    model-namespace: false
@cataggar cataggar added the v3 Version 3 of AutoRest C# generator. label Apr 19, 2024
@lirenhe lirenhe added DPG customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Apr 22, 2024
@ArcturusZhang
Copy link
Member

Hi @cataggar Yeah this is by-design right now because we will generate the whole solution - a sln file, a src directiry with your source code csproj, a tests directory with your test csproj.
If you do not want to generate the test project, you could add an option: generate-test-project: false.

But the structure change is by-design

cc @m-nash

@cataggar cataggar closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. DPG v3 Version 3 of AutoRest C# generator.
Projects
None yet
Development

No branches or pull requests

3 participants