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

Investigate why AD0001 fails for ConvenienceUpdate-TypeSpec #3708

Closed
m-nash opened this issue Sep 1, 2023 · 1 comment · Fixed by Azure/azure-sdk-tools#7222 or #3948
Closed

Investigate why AD0001 fails for ConvenienceUpdate-TypeSpec #3708

m-nash opened this issue Sep 1, 2023 · 1 comment · Fixed by Azure/azure-sdk-tools#7222 or #3948
Assignees
Labels
DPG v3 Version 3 of AutoRest C# generator.

Comments

@m-nash
Copy link
Member

m-nash commented Sep 1, 2023

Currently this following projects fail with the following error if we don't suppress AD0001.

CSC : error AD0001: Analyzer 'Azure.ClientSdk.Analyzers.ClientConstructorAnalyzer' threw an exception of type 'System.InvalidOperationException' with message 'Sequence contains more than one matching element'. [...\autorest.csharp\test\TestProjects\ConvenienceUpdate-TypeSpec\src\ConvenienceInCadl.csproj::TargetFramework=netstandard2.0]
  • ConvenienceUpdate-TypeSpec
  • Parameter-TypeSpec
  • Customization-TypeSpec
@m-nash m-nash added the v3 Version 3 of AutoRest C# generator. label Sep 1, 2023
@chunyu3 chunyu3 added the DPG label Sep 6, 2023
@pshao25
Copy link
Member

pshao25 commented Nov 1, 2023

We generate static properties in clients, so there will be a static constructor without any parameters implicitly added, which should not be in the searching scope of a constructor equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DPG v3 Version 3 of AutoRest C# generator.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants