NuGet Fails to Install FluentValidation -


i attempting install nuget package nancy.validation.fluentvalidation installation fails due to, think, unsupported frameworks?

the full nuget error below. using .net 4.5. cant see why fail? ideas going wrong?

output when installing nancy.validation.fluentvalidation:

attempting resolve dependency 'nancy (≥ 1.2.0)'. attempting resolve dependency 'fluentvalidation'. installing 'fluentvalidation 5.6.2.0'. installed 'fluentvalidation 5.6.2.0'. installing 'nancy.validation.fluentvalidation 1.2.0'. installed 'nancy.validation.fluentvalidation 1.2.0'. adding 'fluentvalidation 5.6.2.0' server. uninstalling 'fluentvalidation 5.6.2.0'. uninstalled 'fluentvalidation 5.6.2.0'. install failed. rolling back... specified argument out of range of valid values. parameter name: supportedframeworks 

output when installing fluentvalidation:

installing 'fluentvalidation 5.6.2.0'. installed 'fluentvalidation 5.6.2.0'. adding 'fluentvalidation 5.6.2.0' server. uninstalling 'fluentvalidation 5.6.2.0'. uninstalled 'fluentvalidation 5.6.2.0'. install failed. rolling back... specified argument out of range of valid values. parameter name: supportedframeworks 

that error can happen if portable class library (pcl) profiles messed up. if there pcl profile on machine not have profile xml files in nuget throw error. tracking pcl profile broken difficult part.

one way track problem down use command line app, compile , put breakpoint on line argumentoutofrangeexception being thrown. should give pcl profile name. in supportedframework directory see .xml files in there. may contain no .xml files or may contain xamarin .xml files. xamarin .xml files treated optional exception can still occur if profile .xml files in directory.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -