Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ArgumentException: Target framework dependency mismatch
-
I get the following exception
System.ArgumentException: Target framework dependency mismatch: Latest Version (MonoAndroid10) and Latest Version (MonoTouch10) at Inedo.NuGet.Packages.Dependencies.PackageDependencyResolver.Combine(PackageDependency a, PackageDependency b)
when trying to pull a package in from nuget.org.
How to fix? Any workaround?
Steps to reproduce:
- Press button Add Package
- Press button Pull From Another Repository
- Feed URL: https://www.nuget.org/api/v2/
- Package ID: System.Collections.Immutable
- Package Version: 1.1.37
- Download Dependencies: Yes
- Press button Install Package
Error Details:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Target framework dependency mismatch: Latest Version (MonoAndroid10) and Latest Version (MonoTouch10) at Inedo.NuGet.Packages.Dependencies.PackageDependencyResolver.Combine(PackageDependency a, PackageDependency b) at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Inedo.NuGet.Packages.Dependencies.PackageDependencyResolver.GetAllDependencyCandidates(IPackageDependencyQueryable feed, IEnumerable`1 packages, Dictionary`2 data, DependencyResolutionOptions options) at Inedo.NuGet.Packages.Dependencies.PackageDependencyResolver.GetAllDependencyCandidates(IPackageDependencyQueryable feed, IEnumerable`1 packages, Dictionary`2 data, DependencyResolutionOptions options) at Inedo.NuGet.Packages.Dependencies.PackageDependencyResolver.ResolveDependencies(IPackageDependencyQueryable feed, IEnumerable`1 packages, DependencyResolutionOptions options) at Inedo.NuGet.Packages.NuGetFeed.GetAllRequiredPackages(IEnumerable`1 imports, DependencyResolutionOptions options) at Inedo.ProGet.WebApplication.Pages.NuGet.Packages.PullFromRepositoryPage.<>c__DisplayClass18.<CreateChildControls>b__12(Object s, EventArgs e) at Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Product: ProGet
Version: 3.7.2
-
This may be fixed in a new version of ProGet; however please note that in NuGet 3.4 client, they added framework monikers abbreviation ("net" instead of "net45") that seem to be occasionally used. These will be supported in the next maintenance release of ProGet, udner PG-560 (Add Support for new NuGet 3.4 Framework Abbreviations).