Skip to content

[release/10.0.1xx] Source code updates from dotnet/dotnet - #53277

Merged
DonnaChen888 merged 1 commit into
release/10.0.1xxfrom
darc-release/10.0.1xx-a659d329-b5af-4634-9679-4dd7a0c2b15d
Mar 5, 2026
Merged

[release/10.0.1xx] Source code updates from dotnet/dotnet#53277
DonnaChen888 merged 1 commit into
release/10.0.1xxfrom
darc-release/10.0.1xx-a659d329-b5af-4634-9679-4dd7a0c2b15d

Update dependencies from build 304615

eba6775
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis succeeded Mar 5, 2026 in 0s

.NET Result Analysis

Details

All checks completed

[dotnet-sdk-public-ci]

Build Rerun

✔️ Build passed after 1 retries.

(Attempt #1) [link to build]

dotnet-sdk-public-ci / Build / TemplateEngine: macOS (x64) / 🟣 Build

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    expand to see the full error
      src/Layout/redist/targets/RestoreLayout.targets(314,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) HttpRequestException: nodename nor servname provided, or not known (builds.dotnet.microsoft.com:443) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.InjectNewHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequest

Non-Deterministic Test Failures Detected

Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType [Details] [0.12% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configuration

Data Driven SubResults
    Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(testCase: \"console --search --columns type --type item\")
    Exception Message
    Expected value to be 0 because Expected command to exit with 0 but it did not.\nWorking Directory:\nFile Name: /Users/runner/work/1/s/artifacts/bin/redist/Release/dotnet/dotnet\nArguments: new console --search --columns type --type item --debug:custom-hive /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\nExit Code: 103\nStdOut:\nUsing home directory '/Users/runner/work/1/s/artifacts/tmp/Release/testing' set by the 'DOTNET_CLI_HOME' environment variable.\nTelemetry is: Disabled\nGlobal Settings Location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\n[2026-03-05 06:41:39.615] [Debug] [Template Engine] => [Execute]: Execute started\nWarning: use of 'dotnet new --search' is deprecated. Use 'dotnet new search' instead.\nFor more information, run:\n   dotnet new search -h\n\nSearching for the templates...\n[2026-03-05 06:41:40.196] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Initializing search cache...\n[2026-03-05 06:41:40.202] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache file location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595/dotnetcli/10.0.106-ci/nugetTemplateSearchInfo.json.\n[2026-03-05 06:41:40.203] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Updating the search cache...\n[2026-03-05 06:41:40.204] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Checking the age of search cache...\n[2026-03-05 06:41:40.205] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated on 03/05/2026 06:41:01\n[2026-03-05 06:41:40.206] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated less than 1 hours ago, the update will be skipped.\n[2026-03-05 06:41:43.118] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template search cache version\n[2026-03-05 06:41:43.120] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:41:43.121] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template metadata version\n[2026-03-05 06:41:43.122] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:41:43.122] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template list\n[2026-03-05 06:41:43.659] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:41:43.661] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:41:43.713] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 5054 templates.\n[2026-03-05 06:41:43.713] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading package information.\n[2026-03-05 06:41:43.729] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 3090 packages.\n[2026-03-05 06:41:43.730] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading additional information.\nError deserializing the cli host specific template data {}, details:System.InvalidOperationException: Sequence contains no elements\n   at System.Linq.ThrowHelper.ThrowNoElementsException()\n   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\n   at Microsoft.TemplateEngine.Cli.TemplateSearch.CliHostSearchCacheData.<>c.<get_Reader>b__3_0(Object obj) in /_/src/Cli/Microsoft.TemplateEngine.Cli/TemplateSearch/CliHostSearchCacheData.cs:line 23\n[2026-03-05 06:41:43.754] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 1 additional information entries.\n[2026-03-05 06:41:46.048] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache was successfully setup.\n[2026-03-05 06:41:46.066] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 3090 packages matching package search criteria.\n[2026-03-05 06:41:46.434] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 0 packages matching template search criteria.\nMatches from template source: NuGet.org\n\n[2026-03-05 06:41:46.441] [Debug] [Template Engine] => [Execute]: Execute finished, took 6825 ms\nStdErr:\nNo templates found matching: 'console', --type='item'.\n\nFor details on the exit code, refer to https://aka.ms/templating-exit-codes#103\n, but found 103 (difference of 103).
    Stack Trace
       at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
       at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
       at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.ExitWith(Int32 expectedExitCode) in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 21
       at Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(String testCase) in /Users/runner/work/1/s/test/dotnet-new.IntegrationTests/DotnetNewSearchTests.cs:line 327
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(testCase: \"--search console --columns type --type item\")
    Exception Message
    Expected value to be 0 because Expected command to exit with 0 but it did not.\nWorking Directory:\nFile Name: /Users/runner/work/1/s/artifacts/bin/redist/Release/dotnet/dotnet\nArguments: new --search console --columns type --type item --debug:custom-hive /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\nExit Code: 103\nStdOut:\nUsing home directory '/Users/runner/work/1/s/artifacts/tmp/Release/testing' set by the 'DOTNET_CLI_HOME' environment variable.\nTelemetry is: Disabled\nGlobal Settings Location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\n[2026-03-05 06:41:48.047] [Debug] [Template Engine] => [Execute]: Execute started\nWarning: use of 'dotnet new --search' is deprecated. Use 'dotnet new search' instead.\nFor more information, run:\n   dotnet new search -h\n\nSearching for the templates...\n[2026-03-05 06:41:48.289] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Initializing search cache...\n[2026-03-05 06:41:48.290] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache file location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595/dotnetcli/10.0.106-ci/nugetTemplateSearchInfo.json.\n[2026-03-05 06:41:48.290] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Updating the search cache...\n[2026-03-05 06:41:48.290] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Checking the age of search cache...\n[2026-03-05 06:41:48.291] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated on 03/05/2026 06:41:01\n[2026-03-05 06:41:48.291] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated less than 1 hours ago, the update will be skipped.\n[2026-03-05 06:41:51.224] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template search cache version\n[2026-03-05 06:41:51.224] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:41:51.225] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template metadata version\n[2026-03-05 06:41:51.225] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:41:51.226] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template list\n[2026-03-05 06:41:51.780] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:41:51.783] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:41:52.039] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 5054 templates.\n[2026-03-05 06:41:52.040] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading package information.\n[2026-03-05 06:41:52.052] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 3090 packages.\n[2026-03-05 06:41:52.053] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading additional information.\nError deserializing the cli host specific template data {}, details:System.InvalidOperationException: Sequence contains no elements\n   at System.Linq.ThrowHelper.ThrowNoElementsException()\n   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\n   at Microsoft.TemplateEngine.Cli.TemplateSearch.CliHostSearchCacheData.<>c.<get_Reader>b__3_0(Object obj) in /_/src/Cli/Microsoft.TemplateEngine.Cli/TemplateSearch/CliHostSearchCacheData.cs:line 23\n[2026-03-05 06:41:52.077] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 1 additional information entries.\n[2026-03-05 06:41:55.094] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache was successfully setup.\n[2026-03-05 06:41:55.122] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 3090 packages matching package search criteria.\n[2026-03-05 06:41:56.080] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 0 packages matching template search criteria.\nMatches from template source: NuGet.org\n\n[2026-03-05 06:41:56.086] [Debug] [Template Engine] => [Execute]: Execute finished, took 8037 ms\nStdErr:\nNo templates found matching: 'console', --type='item'.\n\nFor details on the exit code, refer to https://aka.ms/templating-exit-codes#103\n, but found 103 (difference of 103).
    Stack Trace
       at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
       at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
       at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.ExitWith(Int32 expectedExitCode) in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 21
       at Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(String testCase) in /Users/runner/work/1/s/test/dotnet-new.IntegrationTests/DotnetNewSearchTests.cs:line 327
       at InvokeStub_DotnetNewSearchTests.CanFilterType(Object, Span`1)
       at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(testCase: \"search console --columns type --type item\")
    Exception Message
    Expected value to be 0 because Expected command to exit with 0 but it did not.\nWorking Directory:\nFile Name: /Users/runner/work/1/s/artifacts/bin/redist/Release/dotnet/dotnet\nArguments: new search console --columns type --type item --debug:custom-hive /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\nExit Code: 103\nStdOut:\nUsing home directory '/Users/runner/work/1/s/artifacts/tmp/Release/testing' set by the 'DOTNET_CLI_HOME' environment variable.\nTelemetry is: Disabled\nGlobal Settings Location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595\n[2026-03-05 06:41:57.167] [Debug] [Template Engine] => [Execute]: Execute started\nSearching for the templates...\n[2026-03-05 06:41:57.666] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Initializing search cache...\n[2026-03-05 06:41:57.667] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache file location: /Users/runner/work/1/s/artifacts/tmp/Release/testing/dotnet-new.IntegrationTests/SharedHomeDirectory/20260305064029595/dotnetcli/10.0.106-ci/nugetTemplateSearchInfo.json.\n[2026-03-05 06:41:57.667] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Updating the search cache...\n[2026-03-05 06:41:57.667] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Checking the age of search cache...\n[2026-03-05 06:41:57.668] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated on 03/05/2026 06:41:01\n[2026-03-05 06:41:57.668] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: The search cache was updated less than 1 hours ago, the update will be skipped.\n[2026-03-05 06:42:00.499] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template search cache version\n[2026-03-05 06:42:00.499] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:42:00.501] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template metadata version\n[2026-03-05 06:42:00.501] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Version: 1.0.0.3.\n[2026-03-05 06:42:00.502] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading template list\n[2026-03-05 06:42:01.333] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:42:01.335] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Failed to read template info entry, missing mandatory fields. Details: System.ArgumentException: An item with the same key has already been added. Key: type\n   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n   at System.Linq.Enumerable.SpanToDictionary[TSource,TKey,TElement](ReadOnlySpan`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\n   at Microsoft.TemplateEngine.Abstractions.Parameters.ParameterDefinitionSet..ctor(IEnumerable`1 parameters)\n   at Microsoft.TemplateSearch.Common.BlobStorageTemplateInfo.FromJObject(JObject entry)\n   at Microsoft.TemplateSearch.Common.LegacySearchCacheReader.TryReadTemplateList(ILogger logger, JObject cacheObject, IReadOnlyList`1& templateList)\n[2026-03-05 06:42:01.381] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 5054 templates.\n[2026-03-05 06:42:01.381] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading package information.\n[2026-03-05 06:42:01.395] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 3090 packages.\n[2026-03-05 06:42:01.395] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Reading additional information.\nError deserializing the cli host specific template data {}, details:System.InvalidOperationException: Sequence contains no elements\n   at System.Linq.ThrowHelper.ThrowNoElementsException()\n   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\n   at Microsoft.TemplateEngine.Cli.TemplateSearch.CliHostSearchCacheData.<>c.<get_Reader>b__3_0(Object obj) in /_/src/Cli/Microsoft.TemplateEngine.Cli/TemplateSearch/CliHostSearchCacheData.cs:line 23\n[2026-03-05 06:42:01.415] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Successfully read 1 additional information entries.\n[2026-03-05 06:42:03.838] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Search cache was successfully setup.\n[2026-03-05 06:42:03.885] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 3090 packages matching package search criteria.\n[2026-03-05 06:42:04.249] [Debug] [Microsoft.TemplateSearch.Common.Providers.NuGetMetadataSearchProvider] => [Execute]: Retrieved 0 packages matching template search criteria.\nMatches from template source: NuGet.org\n\n[2026-03-05 06:42:04.334] [Debug] [Template Engine] => [Execute]: Execute finished, took 7167 ms\nStdErr:\nNo templates found matching: 'console', --type='item'.\n\nFor details on the exit code, refer to https://aka.ms/templating-exit-codes#103\n, but found 103 (difference of 103).
    Stack Trace
       at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
       at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
       at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.ExitWith(Int32 expectedExitCode) in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 21
       at Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterType(String testCase) in /Users/runner/work/1/s/test/dotnet-new.IntegrationTests/DotnetNewSearchTests.cs:line 327
       at InvokeStub_DotnetNewSearchTests.CanFilterType(Object, Span`1)
       at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Was this helpful? Yes No