News for hackers. Stuff that matters.
Re:What Makes .NET Core So Special? by soulwatcher on Thursday November 08, 2018 @10:47PM (#18412190)
Many of the features (Dependency injection, etc) seem only to be available for ASP.Net Core. What about cross platform desktop applications? Do we have a GUI layer that is cross platform as well?
Re:What Makes .NET Core So Special? by ygra on Friday November 09, 2018 @12:54AM (#18412597)
Microsoft's offering here is Xamarin Forms. If you're an application developer that's probably enough and useful. Otherwise, given that Microsoft is now a cloud and services company there doesn't seem to be much of a push for cross-platform desktop applications. Personally I'm still hoping for Avalonia to be picked up officially, but perhaps that's just me liking WPF too much and hoping in vain.
Re:What Makes .NET Core So Special? by knocte on Friday November 09, 2018 @04:02AM (#18413221)
Xamarin.Forms is cross platform (not only mobile, also desktop) while native look&feel. Don't use Electron.NET, that's a waste of CPU cycles.
Re:What Makes .NET Core So Special? by bonesss on Friday November 09, 2018 @04:19AM (#18413294)
My personal opinion is that people are sleeping on local HTML apps.

Local files, if you want, make everything lightning fast. Hosting your own web-browser lets you hook into whatever you want, and handle it however you want. A local server makes hosting whatever you want simple, too. There's a pre-existing plugin and component model for serving rich content... Every knows HTML and CSS, and sharding off chunks of the app to a genuine web app is straightforward...

A well factored, MVVM, WPF should be relatively easy to port to this model, and there are mature databinding libraries to handle the plumbing...

Maybe it's just me, but I'd rather take the pain points of a known technology than another 10 years of uncertainty and no cross-platform story.

Re:What Makes .NET Core So Special? by euroclydon on Friday November 09, 2018 @06:05AM (#18413650)
It's probably less secure by default. Make sure to reject all HTTP requests where the Origin header doesn't match the local server host, or just all request with an Origin header.
Re:What Makes .NET Core So Special? by CodesInChaos on Friday November 09, 2018 @09:18AM (#18414475)
What you really need is a shared secret between (embedded) browser and (local) server.

IP, host header, origin header can be checked as defense in depth, but can't prevent local privilege escalation from non browser clients and are quite fragile even in browsers.

(or use a secure non TCP/IP based communication channel)

Re:What Makes .NET Core So Special? by euroclydon on Monday November 12, 2018 @03:49PM (#18435638)
> but can't prevent local privilege escalation from non browser clients

That is such a different threat model though. A native app has a lot more permissions than a web page. Trying to protect one native app from another is not really done much. Like, are MS Word documents encrypted so Slack can't read them from disk?

Re:What Makes .NET Core So Special? by CodesInChaos on Wednesday November 14, 2018 @10:30AM (#18450562)
You can have multiple OS users on the same computer.
Re:What Makes .NET Core So Special? by EdgarVerona on Friday November 09, 2018 @01:00AM (#18412616)
Oh, the dependency injection definitely works independently of ASP.NET Core - it's just something frequently talked about in tandem with it. Just wrote a console app that used it a couple of days ago.

I don't know about the current status of the GUI layer, other than that I've heard plans for WPF to be ported over to .NET Core. I don't know if or when that will actually happen.

Re:What Makes .NET Core So Special? by rpeden on Friday November 09, 2018 @10:31AM (#18415086)
Both WPF and WinForms will be part of .NET Core 3.0. They've done a few demos of it already, and were able to port over existing apps without any changes to the code. This even worked when using third party controls like the ones you can get from Telerik. They just added references to the Telerik .dll's they already had, and everything just worked.

They'll still only run on Windows, but it's a nice option for teams that want to move their existing apps over to .NET Core and take advantage of the quicker update cycle and improved performance.

Re:What Makes .NET Core So Special? by EdgarVerona on Wednesday November 21, 2018 @08:59AM (#18502676)
Awesome, glad to hear it!
Re:What Makes .NET Core So Special? by cdash on Friday November 09, 2018 @02:13AM (#18412861)
There are plans to bring WPF to .NET Core but it will still be windows only. It is being done because Microsoft wants to move all development to be on top of .NET Core.
Re:What Makes .NET Core So Special? by miguelrochefort on Friday November 09, 2018 @04:16AM (#18413281)
Re:What Makes .NET Core So Special? by ghuntley on Friday November 09, 2018 @03:42AM (#18413130)
Re:What Makes .NET Core So Special? by MastrChefRocks on Thursday November 08, 2018 @11:52PM (#18412404)
Electron.NET should allow you to do that: https://github.com/ElectronNET/Electron.NET