I'm trying to use lightinject for xamarin application. Common code is inside separate portable class library. This project is configured for TargetFrameWorkProfile Profile78. When I'm adding lightinject 4.0.6 following error appears:
Attempting to gather dependencies information for package 'LightInject.4.0.6' with respect to project 'ProjectName', targeting '.NETPortable,Version=v4.5,Profile=Profile78'
Attempting to resolve dependencies for package 'LightInject.4.0.6' with DependencyBehavior 'Lowest'
Resolving actions to install package 'LightInject.4.0.6'
Resolved actions to install package 'LightInject.4.0.6'
Install failed. Rolling back...
Package 'LightInject.4.0.6 : ' does not exist in project 'ProjectName'
Package 'LightInject.4.0.6 : ' does not exist in folder '<path_to_packages_folder>'
Could not install package 'LightInject 4.0.6'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', 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.
I've found this issue, so I tried to switch to Profile111, but even with this profile this library couldn't be added to PCL.
Maybe I'm missing something else?
Changed the TFM for profile 111. https://github.com/seesharper/LightInject/commit/8ddb35723d460c0007ac63d7fe249874fbccb960
LightInject 4.0.7 has just been published to the official NuGet feed.