的WebAPI CORS运行时4.0 [英] WebApi cors for runtime 4.0

查看:312
本文介绍了的WebAPI CORS运行时4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的WebAPI CORS DLL的Web API项目。我安装的Web API版本的.NET框架4,因为我用VS 2010年。我试图通过的NuGet(安装,包Microsoft.AspNet.WebApi.Cors)安装的Web API CORS lib目录,并显示该错误Microsoft.AspNet。 WebApi.Client 5.1.1'。你要安装这个包成针对一个项目的.NETFramework,版本= 4.0版',但包不包含任何程序集引用或与该框架兼容的内容文件 。 有没有解决方法,以安装CORS的Web API客户端4?

I need WebApi Cors dll for web api project. I installed Web Api version for .net 4 framework, because I use VS 2010. I tried to install web api cors lib via nuget (Install-Package Microsoft.AspNet.WebApi.Cors), and this error is shown "Microsoft.AspNet.WebApi.Client 5.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework". Is there workaround to install Cors for web api client 4?

推荐答案

该CORS是支持的Web API 2,需要.NET框架4.5和Visual Studio / EX preSS 2014年。

The CORS is supported in Web API 2 that needs .NET Framework 4.5 and visual studio/express 2014.

有没有可用的网络API 1

It is not available for Web API 1

这篇关于的WebAPI CORS运行时4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆