Skip to content

[CI Failure] Flaky: CanNewAndBuild(aspire-mstest, Net8) fails with Roslyn Method not found TryGetMaxCharCount on macOS #18950

Description

@github-actions

Build Information

Build: https://github.com/microsoft/aspire/actions/runs/30654518872
Build error leg or test failing: Tests / Templates-MSTest_NewUpAndBuildSupportProjectTemplatesTests / Templates-MSTest_NewUpAndBuildSupportProjectTemplatesTests (macos-latest) / Aspire.Templates.Tests.MSTest_NewUpAndBuildSupportProjectTemplatesTests.CanNewAndBuild(templateName: "aspire-mstest", extraTestCreationArgs: "", sdk: Net8, tfm: Net8, error: null)
Pull request: #18947

Error Message

CSC : error CS1504: Source file '...GlobalUsings.g.cs' could not be opened -- Method not found: 'Boolean Microsoft.CodeAnalysis.EncodingExtensions.TryGetMaxCharCount(System.Text.Encoding, Int64, Int32 ByRef)'. Build FAILED.
at Aspire.Templates.Tests.CommandResult.EnsureExitCode
at Aspire.Templates.Tests.AspireProject.BuildAsync
at Aspire.Templates.Tests.NewUpAndBuildSupportProjectTemplatesBase.CanNewAndBuildActual

Description

Flaky: CanNewAndBuild(aspire-mstest, Net8) fails with Roslyn Method not found TryGetMaxCharCount on macOS

Type: flaky-test

Occurrences

Date Build Job PR
2026-07-31 30654518872 Tests / Templates-MSTest_NewUpAndBuildSupportProjectTemplatesTests / Templates-MSTest_NewUpAndBuildSupportProjectTemplatesTests (macos-latest) #18947
2026-09-18 35322237059 Tests / Package tests - macOS (class, Aspire.Templates.Tests, Templates-NUnit_NewUpAndBuildSupportProjectTemplatesTests... / Templates-NUnit_NewUpAndBuildSupportProjectTemplatesTests (macos-latest) #19887

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions