Build Fails

HI after the last update to 2.42.2 I cant my project anymore

dotnet: CSC : warning CS8034: Unable to load Analyzer assembly C:\Users\brian.nuget\packages\microsoft.aspnetcore.components.analyzers\3.1.0\analyzers\dotnet\cs\Microsoft.AspNetCore.Components.Analyzers.dll : Assembly with same name is already loaded [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: Pages\EditTransaction.razor(27,87): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(35,136): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(187,236): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(187,204): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(187,270): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(47,142): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(223,239): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(223,204): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(223,276): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(59,83): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(284,425): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(284,394): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(285,214): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(69,83): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(327,426): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(327,394): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(328,214): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(79,95): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(359,239): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(359,205): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(359,276): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(89,155): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(395,240): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(395,205): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(395,278): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(99,84): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(436,428): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(436,394): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(437,214): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditTransaction.razor(109,99): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(479,427): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(479,394): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(480,214): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: Pages\EditTransaction.razor(121,100): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(528,428): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(528,394): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(529,214): error CS0103: The name 'transaction' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditTransaction.razor.g.cs(161,174): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditCondition.razor(27,85): error CS0103: The name 'condition' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditCondition.razor(35,83): error CS0103: The name 'condition' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditCondition.razor.g.cs(198,427): error CS0103: The name 'condition' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditCondition.razor.g.cs(198,393): error CS0103: The name 'condition' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditCondition.razor.g.cs(199,213): error CS0103: The name 'condition' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditCondition.razor.g.cs(161,174): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: Pages\EditBookDetail.razor(27,86): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBookDetail.razor(35,150): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(187,235): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(187,204): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(187,268): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBookDetail.razor(47,99): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(234,425): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(234,393): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(235,213): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBookDetail.razor(59,71): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(272,238): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(272,205): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(272,274): error CS0103: The name 'bookdetail' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBookDetail.razor.g.cs(161,174): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditStatus.razor(27,82): error CS0103: The name 'status' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: Pages\EditStatus.razor(35,99): error CS0103: The name 'status' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditStatus.razor.g.cs(198,421): error CS0103: The name 'status' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditStatus.razor.g.cs(198,393): error CS0103: The name 'status' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditStatus.razor.g.cs(199,213): error CS0103: The name 'status' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditStatus.razor.g.cs(161,174): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(27,80): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: Pages\EditBook.razor(35,99): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(198,416): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(198,393): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(199,213): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(47,99): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(247,417): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(247,393): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(248,213): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(59,68): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(289,424): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(289,394): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(290,214): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(69,71): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(321,238): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(321,205): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(321,274): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(79,65): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(357,232): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(357,205): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(357,262): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(89,68): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(391,418): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(391,394): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(392,214): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
Pages\EditBook.razor(99,68): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(423,227): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet: obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(423,205): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(423,252): error CS0103: The name 'book' does not exist in the current context [C:\Code\BookTrack\server\BookTrack.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\EditBook.razor.g.cs(161,174): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\BookTrack\server\BookTrack.csproj]

dotnet:

dotnet: The build failed. Fix the build errors and run again.

dotnet: watch : Exited with error code 1

dotnet: watch : Waiting for a file to change before restarting dotnet...

Regards
Brian

Hi Brian,

Do you have .NET Core 3.1 installed? We’ve not changed anything with latest version however we’ve updated recently (two months ago) our Blazor projects from .NET Core 3.0 to 3.1.