-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
X.PagedList.Mvc and X.PagedList.EF 8 only support .NET Framework 4.8 #190
Comments
I want to add to this that Azure application services allows targeting v4.7. 4.8 is still not supported. This makes the newer versions of X.PagedList now useless for Azure Application Service deployments on full framework. I personally thing targeting 4.7.2 as more acceptable approach. As it's the first version that 'fully' supports netstandard2.0. (no dependencies pulled in as they are provided in the runtime. (see https://weblog.west-wind.com/posts/2019/Feb/19/Using-NET-Standard-with-Full-Framework-NET#the-first-version-that-fully-net-standard-20-compliant-is-472 for details) |
@BooTeK That's a valid point, but targetting .NET Framework 4.7.2 would still not allow a lot of existing projects to update to the latest version of X.PagedList. A better solution would be to multi-target the base packages (X.PagedList and X.PagedList.Web.Common) to .NET Framework 4.6.1 (or even lower) and .NET Standard 2.0, just like LibGit2Sharp did in your linked article. |
Fully agree with this issue. Came here to report exactly the same symptom. We have projects that are targeting 4.7.2 and there seems to be no valid reason for bumping this to 4.8 from 4.5.2. The fact there is no mention of this anywhere is just as annoying as the fact that this has been reported more than 2 weeks ago. |
Hi @ronaldbarendse and others reporting / commenting on this issue, have you moved on to another packages or are there maybe forks of the project that have a version that still targets framework 4.6? I don't feel like migrating a whole project to netstandard just for the sake of one package. |
@bitje You can still install version 7.9 and keep that from upgrading by adding |
Describe the bug
Libraries should target the lowest required frameworks/dependencies (that are supported): X.PagedList.Mvc and X.PagedList.EF changed this from .NET Framework 4.5.2 and 4.6.1 to 4.8 with the release of version 8 (without mentioning this in a changelog/release note).
The other, common, packages are all built against .NET Standard 2.0 (and support both .NET Core 2.0 and .NET Framework 4.6.1):
Expected behavior
X.PagedList.Mvc and X.PagedList.EF should be built against .NET Framework 4.6.1, as that's the lowest framework version that's also supported by the common X.PagedList packages and dependencies. This should only require changing
net48
tonet461
(or building against multiple frameworks):X.PagedList/src/X.PagedList.Mvc/X.PagedList.Mvc.csproj
Line 16 in c2cfdab
X.PagedList/src/X.PagedList.EF/X.PagedList.EF.csproj
Line 16 in c2cfdab
Additional context
NuGet will happily upgrade the package to version 8 on projects targetting .NET Framework 4.6.1, resulting in compiler errors, as it can't find a compatible assembly for X.PagedList.Mvc. This is therefore probably related to #189.
The text was updated successfully, but these errors were encountered: