Skip to content

WebScenarioTests_BlazorWasm_CSharp test is failing in main #2946

@lbussell

Description

@lbussell

Steps to reproduce:

Using a source-built .NET 7 SDK (I used the one from this build):

  1. Run dotnet new blazorwasm --name WebScenarioTests_BlazorWasm_CSharp --output WebScenarioTests_BlazorWasm_CSharp --language "C#"
  2. Add a NuGet.config file with the following content:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="dotnet-public" value="[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json%22) />
    <add key="dotnet7" value="[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json%22) />
    <add key="dotnet7-transport" value="[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7-transport/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7-transport/nuget/v3/index.json%22) />
  </packageSources>
</configuration>
  1. Run dotnet build
  2. The expected behaviour is the project should build cleanly, but we observe the following error:
/data/WebScenarioTests_BlazorWasm_CSharp_MS/Program.cs(3,7): error CS0246: The type or namespace name 'WebScenarioTests_BlazorWasm_CSharp' could not be found (are you missing a using directive or an assembly reference?) [/data/WebScenarioTests_BlazorWasm_CSharp_MS/WebScenarioTests_BlazorWasm_CSharp.csproj]

I cannot reproduce this using the official build of the .NET 7 SDK linked in the https://github.com/dotnet/installer README file.

Metadata

Metadata

Assignees

Labels

area-product-experienceImprovements in the end-user's product experience

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions