Markdown nuget 安装失败

Markdown nuget installation failed

我在尝试安装 markdown 时遇到此错误。

Installing 'Markdown 2.2.1'. Successfully installed 'Markdown 2.2.1'. Adding 'Markdown 2.2.1' to SimpleCMS. Uninstalling 'Markdown 2.2.1'. Successfully uninstalled 'Markdown 2.2.1'. Install failed. Rolling back... Could not install package 'Markdown 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

我正在使用 Microsoft Visual Studio 2013,我在 Windows 10。我尝试更新 Nuget 包管理器但无济于事。

Markdown 2.2.1 依赖 .Net Framework 版本 4.5.1

该错误表明您正在尝试将其安装在针对 .Net Framework 4.5 的项目中

两个选项:

  • 安装 Markdown 2.1.0
  • 更新应用程序的目标 .Net 框架。如果您正在编写商业应用程序,这通常是不受欢迎的。如果它只是你的,那很好。

从包管理器控制台,您可以:

Install-Package Markdown -Version 2.1.0