Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Why WebAPI update available for .NET Framework 4.0? [1680]

$
0
0
Steps to reproduce:

1) Create new ASP.NET MVC 4 Internet Application in VS 2012

2) Run Manage Nuget Packages

3) Look at available updates for MVC and WebAPI. MVC - have minor update from 4.0.20710 to 4.0.30506 - ok. WebAPI - have major update from 4.0.20710 to 5.1.1 - strange.

4) type update-package in Package Manager Console and run

5) Wait few minutes, get many errors. Main error related with WebAPI:

```
update-package : Could not install package '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. For more information, contact the package author.
```

also we get bunch errors for some other packages:

```
update-package : Unable to uninstall 'Microsoft.AspNet.WebPages.WebData 2.0.30506.0' because 'Microsoft.AspNet.WebPages.OAuth 2.0.20710.0' depends on it.

update-package : Could not install package 'Microsoft.AspNet.WebPages.WebData 3.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain a
ny assembly references or content files that are compatible with that framework. For more information, contact the package author.
update-package : Unable to uninstall 'Microsoft.AspNet.Mvc 4.0.30506.0' because 'Microsoft.AspNet.Mvc.FixedDisplayModes 1.0.0' depends on it.

update-package : Could not install package 'Microsoft.AspNet.Razor 3.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. For more information, contact the package author.

update-package : Could not install package 'Microsoft.AspNet.Razor 3.0.0'. 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. For more information, contact the package author.

update-package : Unable to uninstall 'Microsoft.AspNet.WebApi.WebHost 4.0.30506.0' because 'Microsoft.AspNet.WebApi 4.0.20710.0' depends on it.

update-package : Unable to uninstall 'Microsoft.AspNet.Mvc 4.0.30506.0' because 'Microsoft.AspNet.Mvc.FixedDisplayModes 1.0.0' depends on it.
```

This situation very disappointed me. I think it should be fixed. If WebAPI 2.1.1 does not support .NET Framework 4.0 - hide this package from available updates for .NET Framework 4.0 users, as done for MVC package.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>