Forum Discussion
dlwiii
Nov 12, 2021Copper Contributor
Suggestions on how best to move from Nancy to ASPNet Core?
We have a Framework solution which has two projects that run on Nancy. And since Nancy is dead we need to migrate to something else, and I want that to be on Core. Has anyone done this before, ...
shawnwildermuth
Nov 14, 2021Copper Contributor
Nancy and Minimal APIs in .NET 6 have a lot in common. You should see how Minimal APIs work, you should be able to craft a solution that keeps your business logic likely untouched.
- dlwiiiNov 14, 2021Copper Contributor
shawnwildermuth Thank you ! I will give it a try. This will get me the simpler routings, but then is it just a matter of telling those endpoints to go to a CSHTML view?
- shawnwildermuthNov 14, 2021Copper Contributor
dlwiii If you're using Nancy for Routing to Views (not just APIs), then you'll want to dig into Razor Pages. That will allow you to do something similar.