New Reply

Hello,

With Proget 3.8.1 we get the following error when pulling the package: Serilog 2.4.0 with dependencies:

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Target framework dependency mismatch: Latest Version (net45) and Latest Version (net46) 
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.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__DisplayClass14_0.<CreateChildControls>b__0(Object s, EventArgs e) 
at Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.OnClick(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)

Can you confirm this issue can be solved by upgrading to the latest version of Proget? Are there other solutions to fix this?

Product: ProGet
Version: 3.8.1

As of v4, ProGet will no longer support packages pulling packages with dependencies from the UI. This is because it's "impossible" to do without visual studio's context (target framework, .net version, etc).

Answer Details

Preview:

Post Reply