You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SDK repo, change the path in sdk\compute\Azure.ResourceManager.Compute\src\autorest.md to the local azure-rest-api-specs\specification\compute\resource-manager\readme.md.
Run generation.
Error:
fatal | System.ArgumentException: An item with the same key has already been added. Key: AutomaticallyApprove
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpressionForObjectType(ObjectType objectType, IReadOnlyDictionary`2 valueDict) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.C
Sharp\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 418
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpressionForTypeProvider(CSharpType type, InputExampleValue exampleValue) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp
\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 346
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpression(CSharpType type, InputExampleValue exampleValue, SerializationFormat serializationFormat, Boolean includeCollectionIn
itialization) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 38
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpressionForObjectType(ObjectType objectType, IReadOnlyDictionary`2 valueDict) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.C
Sharp\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 417
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpressionForTypeProvider(CSharpType type, InputExampleValue exampleValue) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp
\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 346
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpression(CSharpType type, InputExampleValue exampleValue, SerializationFormat serializationFormat, Boolean includeCollectionIn
itialization) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 38
at AutoRest.CSharp.Common.Output.Models.Samples.ExampleValueSnippets.GetExpression(ExampleParameterValue exampleParameterValue, SerializationFormat serializationFormat) in D:\a\_work\1\s\autorest.csha
rp\src\AutoRest.CSharp\Common\Output\Expressions\Samples\Snippets.ExampleValues.cs:line 221
The text was updated successfully, but these errors were encountered:
Repro steps:
sdk\compute\Azure.ResourceManager.Compute\src\autorest.md
to the localazure-rest-api-specs\specification\compute\resource-manager\readme.md
.Error:
The text was updated successfully, but these errors were encountered: