Skip to content
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

Application no longer runs under net5 upwards #1011

Open
tavershimafx opened this issue Oct 28, 2021 · 4 comments
Open

Application no longer runs under net5 upwards #1011

tavershimafx opened this issue Oct 28, 2021 · 4 comments

Comments

@tavershimafx
Copy link
Contributor

tavershimafx commented Oct 28, 2021

Procedure To reproduce

  1. Fork the repo
  2. Open with visual studio
  3. Restore packages (packages restored completely)
  4. Run the application

Observation

The application will not longer run with the error

Severity Code Description Project File Line Suppression State
Error	NU1202	Package Microsoft.Extensions.Hosting.Abstractions 2.1.1 is not compatible with netcoreapp3.1 
(.NETCoreApp,Version=v3.1). Package Microsoft.Extensions.Hosting.Abstractions 2.1.1 does not support any target 
frameworks.	SimplCommerce.Module.Catalog	C:\Users\Tatarpro\source\repos\SimplCommerce\src
\Modules\SimplCommerce.Module.Catalog\SimplCommerce.Module.Catalog.csproj	1	

This is not an issue with this package but with cloudscribe.Web.Pagination Version=2.1.11 When i commented the package out and removed its usage in the application, the application runs smoothly.

This is just one of the errors it displays. It complains for all packages. I downloaded the net5 version also and completed the above procedure but still got the same error. I tried upgrading the app manually to net5 but as soon as I added the package, the issue arises.

Recommendation

A new pagination strategy should be developed preferably an inbuilt one than depending on external minute dependencies like such to avoid such a problem in future where a dependency is no longer compatible because the developer has stopped updating it.

@hishamco
Copy link
Member

The projects upgraded to .NET 6.0 RC2

@tavershimafx
Copy link
Contributor Author

@hishamco I see that. But if I could not run in net5 how will it in .Net 6?

@hishamco
Copy link
Member

Just download the .NET Core 6.0 RC2 from dot.net

@shahzad285
Copy link

The project is upgraded to .Net 7 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants