News for hackers. Stuff that matters.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by LandR on Tuesday October 15, 2019 @04:50AM (#21256673)
My biggest issue with .net core and .net in general, although .net core seems worse, is nuget issues and it causing issues with binding redirects.

Seems like every project I waste hours trying to figure out the mess that nuget creates.

Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by marsrover on Tuesday October 15, 2019 @09:48AM (#21258282)
I really don't understand how you're having binding redirect issues with .NET core.

They're usually caused by a mixup between local packages and the GAC, which .NET core doesn't use.

When you publish a .NET core application, you can publish as stand alone and see right there in the publish directory all the DLLs that are being used.

Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by lazulicurio on Tuesday October 15, 2019 @06:44PM (#21264821)
There's still plenty of ways reference resolution with NuGet can go wrong, even without the GAC.

For example, because NuGet allows packages to import .props and .targets files you can have packages that add arbitrary references that don't match your target framework or runtime. Now you could say "oh, that's the package's fault, not NuGet's", but often the reason a package includes .props or .targets files is to work around other shortcomings in NuGet.

Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by fstopmick on Tuesday October 15, 2019 @04:15PM (#21263205)
Same here. I've tried moving my "boilerplate side project" .NET Framework template over to the latest and greatest about once a year over the past four years and every time I hit the eight hour mark, I give up. Either my dependencies aren't supported yet, or there's some wonky versioning incompatibility, or there's some other undocumented frustration. I'm not dealing with anything wildly complex here ~ just an n-tier architecture supporting MVC rendered views, forms authentication, API endpoints, an EF middle-tier, and Azure SQL. About as simple as it gets for a web app.

Has anyone here migrated from .NET framework > .NET core lately? Think it's time for me to give it another go?

Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by zmj on Tuesday October 15, 2019 @05:42PM (#21264197)
If your .NET Framework projects are in the old csproj style, first convert them to SDK style - no changes to the target runtimes or dependency versions. For asp.net, winforms, or wpf apps, this is usually the hard part.

Once the app is working with SDK style projects, then try changing the runtime to netcoreapp. Often it just works; if it doesn't, you'll get useful error messages.

Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by autechr3 on Tuesday October 15, 2019 @11:22AM (#21259391)
.net core is definitely better than .net framework in regards to nuget issues in my experience.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by moron4hire on Tuesday October 15, 2019 @10:31AM (#21258785)
.NET Standard 2 relaxed the versioning requirements that led to so many binding redirects.