Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run webapi without installing .net4.5

I have a website running aspx pages, under asp.net4.0.

I also have some DevExpress controls, that I purchased 4 years ago.

I now want to add an API to the web application, however I understand that needs .net4.5 to be running.

The DevExpress controls don't work under 4.5 - so I would need to renew them at considerable cost.

  1. it possible, after installing .net4.5, for my site to continue to use .net4 - and not the new 4.5? so that I can have the site operate under 4.0, and the API under 4.5?
  2. Or is it possible to have the API (using the Entity Framework) run under .net 4.0

Thank you,

Mark

like image 621
Mark Avatar asked Dec 09 '25 21:12

Mark


1 Answers

You can use both web-api and entity framework without installing .net4.5.

You can add web-api to an existing project by installing the nuget package "Microsoft.AspNet.WebApi" (release candidate)

like image 143
Eivind T Avatar answered Dec 12 '25 11:12

Eivind T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!