News for hackers. Stuff that matters.
Re:.NET 7 is Available Today by colejohnson66 on Tuesday November 08, 2022 @01:24PM (#33522373)
If, when publishing your app, you choose the "self-contained" mode (as opposed to "framework dependent")[a], the runtime will be bundled with your program into the executable. Then you don't need to worry about updating your client's OS. My work is using it for deployment to Linux, and it works great.

[a]: Pass the `--sc true` option to `dotnet publish`: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-p...

Re:.NET 7 is Available Today by Arnavion on Tuesday November 08, 2022 @01:49PM (#33522697)
Bundling the framework doesn't solve the problem of said framework being old and unsupported because it wasn't LTS.
Re:.NET 7 is Available Today by Jwarder on Tuesday November 08, 2022 @02:47PM (#33523375)
Seems like it makes the problem worse because you are then tied to a specific version at time of publishing and need to republish to get any framework patches.

https://learn.microsoft.com/en-us/dotnet/core/deploying/runt...

Re:.NET 7 is Available Today by foepys on Tuesday November 08, 2022 @03:55PM (#33524165)
Indeed. Microsoft identified this as a problem as well and pushes .NET security patches via Windows Update nowadays. When using self-contained apps, you won't get these patches.
Re:.NET 7 is Available Today by easton on Tuesday November 08, 2022 @04:54PM (#33524844)
.NET Core security patches aren't pushed via Windows Update, only .NET Framework (since it's built into Windows). Unless something changed recently?
Re:.NET 7 is Available Today by vel0city on Tuesday November 08, 2022 @05:08PM (#33525001)
You missed how there effectively isn't a .NET Core/.NET Framework delination anymore. It is just .NET, and .NET gets security patches from Windows Update.
Re:.NET 7 is Available Today by pjmlp on Wednesday November 09, 2022 @04:20AM (#33529066)
.NET Core got renamed into .NET as of .NET 5, and it is still quite relevant to make a difference, plenty of people still don't get it.
Re:.NET 7 is Available Today by seritools on Tuesday November 08, 2022 @06:46PM (#33525815)
If "Microsoft Update" is enabled in the Windows Update settings, you do get .NET Core updates: https://devblogs.microsoft.com/dotnet/net-core-updates-comin...
Re:.NET 7 is Available Today by easton on Tuesday November 08, 2022 @06:51PM (#33525841)
News to me! I always deploy .NET 5/6 stuff on Linux, explains why I'm out of the loop. Thanks!
Re:.NET 7 is Available Today by AlfeG on Tuesday November 08, 2022 @11:08PM (#33527424)
It's same issue as deploying containers.