Skip to content

Adding Docker Support to Blazor Webassembly project breaks WebApplicationFactory #262

@timmi-on-rails

Description

@timmi-on-rails
  1. Create a Blazor Webassembly Project template (version 3.2.0, Asp.net core hosted)
  2. Create an Xunit test project.
  3. Create a WebApplicationFactory and use a generated client to fetch the root url "/" and ensure success (status code 200)
  4. Execute the test and see it succeed.
  5. Now add Docker Support (Linux) to the BlazorApp1.Server project.
  6. The test will fail now. Root url responds with 404.

Removing the package reference solves the problem:
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.9" />
But then the docker support is gone.

Please confirm.
Here is the broken solution: https://github.com/timmi-on-rails/grpc/raw/master/docker-BlazorApp1.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions