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

时间:2022-12-22 23:08:46

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'. 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. For more information, contact the package author.

安装包:无法安装包'Microsoft.AspNet.Razor 3.2.3'。您正在尝试将此软件包安装到以“MonoAndroid,Version = v5.0”为目标的项目中,但该软件包不包含任何与该框架兼容的程序集引用或内容文件。有关更多信息,请与软件包作者联系。

2 个解决方案

#1


1  

The Microsoft.AspNet.Razor NuGet package can be installed into a project. It may fail if you do not have the Xamarin Portable Class Library (PCL) profiles or or the Mono frameworks installed.

Microsoft.AspNet.Razor NuGet包可以安装到项目中。如果您没有安装Xamarin可移植类库(PCL)配置文件或Mono框架,它可能会失败。

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

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

#2


1  

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. NuGet considers them to be incompatible.

.NET 4.5程序集可能使用MonoAndroid不支持的API。 NuGet认为它们是不兼容的。

#1


1  

The Microsoft.AspNet.Razor NuGet package can be installed into a project. It may fail if you do not have the Xamarin Portable Class Library (PCL) profiles or or the Mono frameworks installed.

Microsoft.AspNet.Razor NuGet包可以安装到项目中。如果您没有安装Xamarin可移植类库(PCL)配置文件或Mono框架,它可能会失败。

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

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

#2


1  

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. NuGet considers them to be incompatible.

.NET 4.5程序集可能使用MonoAndroid不支持的API。 NuGet认为它们是不兼容的。