The type 'RazorViewAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.0.3.0'

jimnycrypto 96 Reputation points
2021-06-05T05:07:47.463+00:00

Hi,

After upgrading Visual Studio Community 2019 to version 16.10.0, I get this error at runtime
"*

The type 'RazorViewAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.0.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'"

  • But, running Visual Studio Enterprise 2019 Version 16.8.4 the app works just fine.

Below screenshot are the pacakges.

102642-image.png

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful