【发布时间】:2022-02-09 15:10:46
【问题描述】:
我在尝试使用以下命令安装具有特定版本 2.3.12 的 Nuget 包“RazorGenerator.Mvc”时遇到此错误:
Install-Package RazorGenerator.Mvc -Version 2.3.12
但是,在运行该命令时,Visual Studio 会返回此错误:
Failed to add reference. The package 'RazorGenerator.Mvc' tried to add a framework reference to 'System.Web.Mvc' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance. Cannot find assembly 'System.Web.Mvc'.
我的项目已经安装了最新版本的包“Microsoft.AspNet.Mvc”,我也尝试使用版本 3.0.50813.1 安装这个包,但两次尝试都没有解决错误。 你们知道如何解决这个问题吗?包“RazorGenerator.Mvc”的具体版本必须是2.3.12。
【问题讨论】:
标签: c# asp.net-mvc nuget