Skip to content

[main] project template tests fail #58935

@RussKie

Description

@RussKie

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Public build. The logs can be found under Local_Windows_x64_Logs_Attempt_1 artifact.

XUnit : error : Tests failed: D:\a\_work\1\s\artifacts\TestResults\Release\Templates.Tests_net10.0_x64.html [net10.0|x64] [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\Templates.Tests.csproj]
XUnit : error : Tests failed: D:\a\_work\1\s\artifacts\TestResults\Release\Templates.Mvc.Tests_net10.0_x64.html [net10.0|x64] [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Mvc.Tests\Templates.Mvc.Tests.csproj]
    0 Warning(s)
    2 Error(s)

The logs show pretty much the same error:

    Templates.Test.WebApiNativeAotTemplateTest.WebApiNativeAotTemplateCSharp [PASS]
      Output:
        | [0.010s] TestLifetime Information: Starting test WebApiNativeAotTemplateCSharp at 2024-11-13T22:28:13
        | [0.039s] Templates.Test.WebApiNativeAotTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\dotnet\dotnet.exe new "web" --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\Hives\d48e724f-48e7-4ae7-bee1-80d6242eb1ce\.templateengine" [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\]
        | [1.020s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] No templates or subcommands found matching: 'web'.
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] To list installed templates similar to 'web', run:
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR]    dotnet new list web
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] To search for the templates on NuGet.org, run:
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR]    dotnet new search web
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.024s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.024s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] For details on the exit code, refer to https://aka.ms/templating-exit-codes#103
        | [1.089s] Templates.Test.WebApiNativeAotTemplateTest Information: Process exited.
        | [1.124s] Templates.Test.WebApiNativeAotTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\dotnet\dotnet.exe new "webapp" --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\Hives\d48e724f-48e7-4ae7-bee1-80d6242eb1ce\.templateengine" [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\]

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesblockedThe work on this issue is blocked due to some dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions