Skip to content

Bring back Random.Shared API once new SDK is picked up #31782

Closed

Description

@HaoK

Noticed this while looking at why the blazor template tests are 100% failing now in the quarantined runs:

Related to this PR: https://github.com/dotnet/aspnetcore/pull/31453/files

https://dev.azure.com/dnceng/public/_test/analytics?definitionId=869&contextType=build

C:\h\w\BABC09DD\w\A5850946\e\Templates\BaseFolder\AspNet.klo4c0qemnm\Server\Controllers\WeatherForecastController.cs(35,39): error CS0117: 'Random' does not contain a definition for 'Shared' [C:\h\w\BABC09DD\w\A5850946\e\Templates\BaseFolder\AspNet.klo4c0qemnm\Server\AspNet.klo4c0qemnm.Server.csproj]
C:\h\w\BABC09DD\w\A5850946\e\Templates\BaseFolder\AspNet.klo4c0qemnm\Server\Controllers\WeatherForecastController.cs(36,44): error CS0117: 'Random' does not contain a definition for 'Shared' [C:\h\w\BABC09DD\w\A5850946\e\Templates\BaseFolder\AspNet.klo4c0qemnm\Server\AspNet.klo4c0qemnm.Server.csproj]

Activity

  1. javiercn commented on Apr 14, 2021

    @javiercn
    Member

    @HaoK good catch.

    I ran into this last week too, I thought it was because we were missing an updated SDK on the repo. I expect these to go away once we update the SDK in our repo

  2. davidfowl commented on Apr 14, 2021

    @davidfowl
    Member

    When will that happen?

  3. javiercn commented on Apr 14, 2021

    @javiercn
    Member

    @davidfowl My understanding is before we ship preview4, otherwise we need to back this change out on Friday.

  4. davidfowl commented on Apr 14, 2021

    @davidfowl
    Member

    Are the tests being skipped? Do we know when the update is coming? In general we shouldn't merge these until the dependency PR flows in.

  5. javiercn commented on Apr 14, 2021

    @javiercn
    Member

    @davidfowl agree.

    This was originally a community contribution. We rely on CTI tests for the SPA templates and the Blazor tests are quarantined at the moment while we work on improving their reliability

  6. javiercn commented on Apr 14, 2021

    @javiercn
    Member

    @davidfowl here is a PR to revert the commit #31795

  7. changed the title [-]Random.Shared missing build errors in quarantined template tests[/-] [+]Bring back Random.Shared API once new SDK is picked up[/+] on Apr 14, 2021
  8. ghost closed this as completedin #32221on Apr 28, 2021
  9. added
    DoneThis issue has been fixed
    ✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!
    on Apr 28, 2021
  10. ghost locked as resolved and limited conversation to collaborators on May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor Componentsfeature-templatestask

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions