Steps to reproduce:
Using a source-built .NET 7 SDK (I used the one from this build):
- Run
dotnet new blazorwasm --name WebScenarioTests_BlazorWasm_CSharp --output WebScenarioTests_BlazorWasm_CSharp --language "C#"
- 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>
- Run
dotnet build
- 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.
Steps to reproduce:
Using a source-built .NET 7 SDK (I used the one from this build):
dotnet new blazorwasm --name WebScenarioTests_BlazorWasm_CSharp --output WebScenarioTests_BlazorWasm_CSharp --language "C#"dotnet buildI cannot reproduce this using the official build of the .NET 7 SDK linked in the https://github.com/dotnet/installer README file.