We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description: error : Plugin csharpgen reported failure. encountered in .Net automation. The detailed error message is as follows:
error : Plugin csharpgen reported failure.
02:11:32.557 cmdout [.Net] fatal | System.ArgumentException: An item with the same key has already been added. Key: Password 02:11:32.557 cmdout [.Net] at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) 02:11:32.557 cmdout [.Net] at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) 02:11:32.558 cmdout [.Net] at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](TSource[] source, Func2 keySelector, Func2 elementSelector, IEqualityComparer`1 comparer) 02:11:32.558 cmdout [.Net] at AutoRest.CSharp.AutoRest.Plugins.MgmtTarget.ExecuteAsync(GeneratedCodeWorkspace project) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Mgmt\AutoRest\MgmtTarget.cs:line 91 02:11:32.559 cmdout [.Net] at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.ExecuteAsync(CodeModel codeModel) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 46 02:11:32.559 cmdout [.Net] at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.Execute(IPluginCommunication autoRest) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 130 02:11:32.559 cmdout [.Net] at AutoRest.CSharp.AutoRest.Plugins.PluginProcessor.Start(IPluginCommunication autoRest) in D:\a\_work\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\PluginProcessor.cs:line 39 02:11:32.559 cmdout [.Net] fatal | Process() cancelled due to failure 02:11:32.559 cmdout [.Net] EXEC : error | error : Plugin csharpgen reported failure. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.560 cmdout [.Net] error | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing. 02:11:32.612 cmdout [.Net] npm notice 02:11:32.612 cmdout [.Net] npm notice New major version of npm available! 10.8.2 -> 11.1.0 02:11:32.612 cmdout [.Net] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0 02:11:32.612 cmdout [.Net] npm notice To update run: npm install -g [email protected] 02:11:32.612 cmdout [.Net] npm notice 02:11:32.620 cmdout [.Net] /home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/Microsoft.Azure.AutoRest.CSharp.targets(58,5): error MSB3073: The command "npx autorest@ --max-memory-size=8192 --skip-csproj --skip-upgrade-check --version=3.9.7 /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md --use=/home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/../tools/net8.0/any/ --clear-output-folder=true --shared-source-folders="/mnt/vss/_work/1/s/azure-sdk-for-net/eng//../sdk/core/Azure.Core/src/Shared/;/home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/../content/Generator.Shared/" --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated --namespace=Azure.ResourceManager.DataFactory" exited with code 1. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.625 cmdout [.Net] Build FAILED. 02:11:32.626 cmdout [.Net] EXEC : warning : The schema 'ArrayItemschema' is shared by 'Hours' and 'Minutes' which is unexpected. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.626 cmdout [.Net] EXEC : warning : The schema 'ArrayItemschema' is shared by 'MonthDays' and 'Minutes' which is unexpected. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.626 cmdout [.Net] EXEC : error | error : Plugin csharpgen reported failure. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.626 cmdout [.Net] /home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/Microsoft.Azure.AutoRest.CSharp.targets(58,5): error MSB3073: The command "npx autorest@ --max-memory-size=8192 --skip-csproj --skip-upgrade-check --version=3.9.7 /mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md --use=/home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/../tools/net8.0/any/ --clear-output-folder=true --shared-source-folders="/mnt/vss/_work/1/s/azure-sdk-for-net/eng//../sdk/core/Azure.Core/src/Shared/;/home/cloudtest/.nuget/packages/microsoft.azure.autorest.csharp/3.0.0-beta.20250218.1/buildMultiTargeting/../content/Generator.Shared/" --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated --namespace=Azure.ResourceManager.DataFactory" exited with code 1. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj] 02:11:32.626 cmdout [.Net] 2 Warning(s) 02:11:32.627 cmdout [.Net] 2 Error(s) 02:11:32.627 cmdout [.Net] Time Elapsed 00:00:42.97 02:11:32.668 cmdout E [.Net] [ERROR] Failed to generate sdk for package:Azure.ResourceManager.DataFactory. Exit code: False. 02:11:32.669 cmdout E [.Net] [ERROR] Please review the detail errors for potential fixes. 02:11:32.669 cmdout E [.Net] [ERROR] If the issue persists, contact the DotNet language support channel at https://aka.ms/azsdk/donet-teams-channel and include this spec pull request. 02:11:33.168 cmdout [.Net] specName: datafactory, serviceType: resource-manager 02:11:33.717 cmdout [.Net] Updating autorest.md files for all the changed swaggers. 02:11:34.174 error Script return with result [failed] code [0] signal [null] cwd [azure-sdk-for-net]: pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 02:11:34.174 endsection Call generateScript
Additional context: link1: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4578780&view=logs&j=2be18a23-047c-5c9f-61d7-60a33437d1f1&t=90227b5e-3523-5803-3e16-3788cf693a16&l=729 link2: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4587996&view=logs&j=2be18a23-047c-5c9f-61d7-60a33437d1f1&t=90227b5e-3523-5803-3e16-3788cf693a16&l=729
The text was updated successfully, but these errors were encountered:
@welovej , could you help troubleshoot?
Sorry, something went wrong.
Please refer to this screent shot for the cause of "An item with the same key has already been added. Key: Password" error.
No branches or pull requests
Description:
error : Plugin csharpgen reported failure.
encountered in .Net automation. The detailed error message is as follows:Additional context:
link1: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4578780&view=logs&j=2be18a23-047c-5c9f-61d7-60a33437d1f1&t=90227b5e-3523-5803-3e16-3788cf693a16&l=729
link2: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4587996&view=logs&j=2be18a23-047c-5c9f-61d7-60a33437d1f1&t=90227b5e-3523-5803-3e16-3788cf693a16&l=729
The text was updated successfully, but these errors were encountered: