After upgrade from net6 preview 7 to rc1, build project which is created with net6 preview 7 with error "C:\Users\v-danche\RC1\before\myconsole\Program.cs(2,1): error CS0103: The name 'Console' does not exist in the current context [C:\Users\v-danche\RC1\before\myconsole\myconsole.csproj]" #20509
Labels
Environment:

Windows10
Repro steps
1.Install net6 preview 7 SDK(https://dotnet.microsoft.com/download/dotnet/6.0).
2. Run dotnet new console -o myconsole to create console app.
3. Install the latest net6 rc1--6.0.100-rc.1.21430.44(runtime-6.0.0-rc.1.21430.11) to upgrade.
dotnet build "myconsole" project
We got below error
Note: we can build successfully with below workarounds.

Workaround1
Add
<ImplicitUsings>enable</ImplicitUsings>
to myconsole.csproj fileor

Workaround2
Use the old template in program.cs
The text was updated successfully, but these errors were encountered: