简体   繁体   English

无法在nuget包管理器visual studio 2015上安装“Microsoft.AspNet.Razor 3.2.3”

[英]Cannot install “Microsoft.AspNet.Razor 3.2.3” at the nuget package manager visual studio 2015

Cannot install "Microsoft.AspNet.Razor 3.2.3" at the nuget package manager visual studio 2015. 无法在nuget包管理器visual studio 2015上安装“Microsoft.AspNet.Razor 3.2.3”。

Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.2.3'. 安装包:无法安装包'Microsoft.AspNet.Razor 3.2.3'。 You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. 您正在尝试将此软件包安装到以“MonoAndroid,Version = v5.0”为目标的项目中,但该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the package author. 有关更多信息,请与软件包作者联系。

The Microsoft.AspNet.Razor NuGet package can be installed into a project. Microsoft.AspNet.Razor NuGet包可以安装到项目中。 It may fail if you do not have the Xamarin Portable Class Library (PCL) profiles or or the Mono frameworks installed. 如果您没有安装Xamarin可移植类库(PCL)配置文件或Mono框架,它可能会失败。

see here : http://lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/ 请看: http//lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/

The Microsoft.AspNet.Razor 3.2.3 NuGet package only contains an assembly for .NET 4.5 so you cannot use it in a MonoAndroid project. Microsoft.AspNet.Razor 3.2.3 NuGet包仅包含.NET 4.5的程序集,因此您无法在MonoAndroid项目中使用它。

A .NET 4.5 assembly may use an API that is not supported by MonoAndroid. .NET 4.5程序集可能使用MonoAndroid不支持的API。 NuGet considers them to be incompatible. NuGet认为它们是不兼容的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio 2015上使用NuGet Package Manager安装NUnit for C# - How to install NUnit for C# with NuGet Package Manager on Visual Studio 2015 全新安装的Visual Studio NuGet程序包管理器无法导入Microsoft.AspNetCore.All程序包 - Fresh installed Visual Studio NuGet package manager cannot import Microsoft.AspNetCore.All package Visual Studio 2015更新3无法读取NuGet程序包 - Visual Studio 2015 update 3 cannot read NuGet package 无法安装Visual Studio C#NuGet程序包 - Cannot install Visual Studio C# NuGet package 无法在Visual Studio 2012中安装Nuget程序包帮助页面 - Cannot install Nuget Package HelpPage in Visual Studio 2012 2015 visual studio Nuget程序包管理器不允许我保存新的程序包源,并且Nuget.Config无效的XML - 2015 visual studio Nuget package manager does not let me save new package sources and Nuget.Config is not valid XML 无法安装Nuget Microsoft.AspNet.Web.Optimization,+ 1其他软件包 - Unable to install Nuget Microsoft.AspNet.Web.Optimization, +1 other package 在Visual Studio 2015中使用NuGet安装软件包后,无法在参考中找到Math.net - Cannot find Math.net in References after installing package with NuGet in Visual Studio 2015 在Visual Studio Code for Unity中安装Nuget程序包 - Install a Nuget package in Visual Studio Code for Unity Visual Studio Nuget无法安装任何软件包 - Visual Studio Nuget unable to install any package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM