Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet Package Can't Be Installed in .Net 3.5 Solutions #6

Closed
adamrodger opened this issue Nov 1, 2012 · 4 comments
Closed

NuGet Package Can't Be Installed in .Net 3.5 Solutions #6

adamrodger opened this issue Nov 1, 2012 · 4 comments

Comments

@adamrodger
Copy link

Ninject.Web.Common has WebActivator as a dependency, which has a dependency on Microsoft.Web.Infrastructure. However, Microsoft.Web.Infrastructure doesn't contain a .Net 3.5 assembly and so the dependency installation fails with the following:

Install-Package Ninject.Web.Common
Attempting to resolve dependency 'Ninject (= 3.0.0.0 && < 3.1.0.0)'.
Attempting to resolve dependency 'WebActivator (= 1.5)'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (= 1.0.0.0)'.
Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
Successfully installed 'WebActivator 1.5.1'.
You are downloading Ninject.Web.Common from Ninject Project Contributors, the license agreement to which is available at https://github.com/ninject/ninject.extensions.wcf/raw/master/LICENSE.txt. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Ninject.Web.Common 3.0.0.7'.
Successfully added 'Ninject 3.0.1.10' to OSA-CBMClasses.
Successfully uninstalled 'Microsoft.Web.Infrastructure 1.0.0.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.Web.Infrastructure 1.0.0.0'. You are trying to install this package into a project that targets '.NETFram
ework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, co
ntact the package author.
At line:1 char:16
+ Install-Package <<<<  Ninject.Web.Common
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

This has a knock-on effect preventing a number of other extensions, such as Ninject.Extensions.Wcf, from installing as they rely on Ninject.Web.Common.

@remogloor
Copy link
Member

We have to check what can be done for that.

Removing WebActivator in'st an option though as it makes it much more complicated for almost everyone while make it simpler just for a vast minority of users of the package.

@remogloor
Copy link
Member

Fixed in 872aa9f

@ianpaton
Copy link

ianpaton commented Jun 7, 2013

Hi guys,

I tried adding ninject.web into a .NET 3.5 ASP.NET web site today and it failed with the same reason Microsoft.Web.Infrastructure does not support 3.5, has this patch made it to production?

Thanks
Ian

@adamrodger
Copy link
Author

The current stable version of Ninject.Web.Common on NuGet.org is 3.0.0.7 (released 2012-03-26, 7 months before this issue was raised) which still has the dependency on Microsoft.Web.Infrastructure.

The unstable versions starting at 3.0.2-unstable-0 (released 2013-02-13, after @remogloor made commit 872aa9f) remove the dependency on WebActivator, but obviously this a pre-release version. I'm not sure when 3.0.2 will become stable, @remogloor may be able to answer that.

Regards,
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants