133 points · by hitr · 10y ago · 75 comments
Microsoft is trying to unscrew the single platform nature of dotnet. This is going to take some time. They are having to break bones to set them correctly. Let's not pretend that any of us devs have never inherited an old project that we had to fix, and left a wake of destruction.
That said, shame on them for not listening to the community more. Many, many people on Github were very vocal about the project formats and the build system, and it was obvious that Microsoft made up it's mind.
While I'm a huge fan of dotnet, I also have to chastise Microsoft here. You can't leap to open source and then crap on your contributors when they are telling you that you're making a blind decision. If it was the one contrarian person that always complains about everything, I could see it, but it wasn't. Very notable members in the dotnet ecosystem raised the warning flag on this.
I for one kept with the mindset of not building anything for production with their v1 release. This is an old rule. By v2, I'm betting this thing will be awesome. Hell it already is. Let's not throw the baby out with the bathwater.
I have not been following the project. Can somebody fill me in on what the people on GitHub were very vocal about specifically? Did they want JSON instead of XML or vice versa? Or something else?
It seems to me they have been listening the community but some of what the community wants just isn't feasible or feasible at this time. This update in particular demonstrates Microsoft is still trying to improve the experience for everyone.
Are any very large companies doing this better? (Not Google, certainly... Oracle? I kid...)
Also, I don't see the problem with the changes, they announced that they are going away from JSON to XML like 3 months ago and it's not like this is news.
Also, I like XML much better for project files because IMO it's much more readable.
* Except when a default namespace is involved, then XPath expressions get more complicated. But according to that blog, it looks like the VS team ditched the default xmlns="http://schemas.microsoft.com/developer/msbuild/2003" namespace in the <Project> root :)
This is the largest effort and the longest without overt attempts at screwing people to be customers. I am going to hold out for some more time, I am not yet convinced Microsoft is acting in good faith yet, their history is so bad.
Are they still suing companies for distributing android.
The problem is, the only very vocal members on github or whatever are the ones who are unhappy. This turns it into a chasing ones tail scenario.
A bit sad when you can't add comments in json like formats. (nobody really uses json5)
{
"comment-version": "Tells the version of the file",
"version": "1.0.0-*",
"buildOptions": {
"comment-debugType": "What kind of debug type would you like?",
"debugType": "portable",
"emitEntryPoint": true
}
}
:DThat aside csproj and sln files really suck. I want my good old make files back!
I also prefer XML over JOSN any day of the week.
It is not only the lack of comments, the tooling and validation as well.
<TargetFrameworks>netstandard16;net452</TargetFrameworks>
Fresh release of XML-based config file that already uses single string field for array?
[1]https://weblogs.asp.net/imranbaloch/k-kvm-kpm-klr-kre-in-asp...
[2]https://blogs.msdn.microsoft.com/webtopics/2016/01/14/gettin...
[3]https://www.gitbook.com/book/openlearningportal/all-about-as...
The platform itself, however, is fantastic.
.NET Core is safe to use right now, it's the IDE and command line utilities getting finalized for 1.0 release (of the tooling) so that it's easier to work with.
The existing tooling is alright enough that it is "safe" to use. This blog post reminds that the update to more final tooling should be somewhat seamless (VS will handle it for you automatically like any other project upgrade/migration; `dotnet migrate` will do the job for CLI and other platforms) and is on its way.
I don't know if it was the case here. It may simply be that it was a normal submission and the URL duplicate detection didn't work. It's hard to do that, if you're too strict you probably get a lot of false positives.
Questioning downvotes never leads to any real answer, so it's useless at best. And it invites further downvotes, because it's unproductive (and can seem whiny – not in your case, though).
I am regularly astounded which of my comments get many downvotes, and also which of them get many upvotes. Also sometimes comments start with -4 and get to +8 or vice versa. It's best to shrug it off entirely.
I can actually tell you the exact software installed on the build server:
1.) Window Server 2016 (Base OS)
2.) SQL Server 2016 Express with LocalDB only (used for longer integration tests that need to validate migrations)
3.) DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64.exe (.NET core SDK 1.0.1 download from https://www.microsoft.com/net/download)
4.) BuildTools_Full.exe ("Microsoft Build Tools 2015 Update 3" https://www.visualstudio.com/downloads/#d-build-tools). If you have this, then you don't need the full VS install
5.) NodeJs (for running webpack as part of 'dotnet publish')
6.) TeamCity and Octopus Deploy agents
That's it.Huh?
`docker run microsoft/dotnet`. Took about 2 seconds to get it running on my Jenkins build server. In reality, it took literally no effort. My entire full stack app requires `make` and `docker` to build and nothing else. The backend is an AspNetCore API.
They seem to massively change something every 10 minutes.
I also don't get the 'massively productive' comment, in essence very little has changed since, hell even MVC 3, apart from the obsession with DI and a load of packages now don't work. If you weren't 'massively productive' before, you were probably doing something wrong. They just moved a couple of things around and now insist you use npm/bower/whatever hotness they latch onto next week instead of nuget. I'm sure we'll have another blog post about them ditching support for anything but yarn next week.
And how long before they change their minds about how controllers work again, it's been like 4 times in the last 5 years now. First MVC controllers, then Web API, then Web API 2, then OData, then .Net Core, all very similar but slightly different with slightly different ways to register them at startup and slightly different things available on the context. Apart from the utter madness that is OData, great for data tables, bloody awful for everything else.
It's getting almost as bad as javascript churn but it's one company so it doesn't make any sense.
Moving to npm/bower for front end stuff makes perfect sense, NuGet is a horrible way to deliver client side code, wasn't supported by the majority of library producers and was unknown by anyone who didn't have a .Net background.
> in essence very little has changed since
?
The one thing Microsoft is great at is compatibility. Your existing projects can keep using the older frameworks and they're still supported and will run just fine. What is the issue? If it's about learning the new changes, then it's probably best to wait until everything (framework + tooling) are final so you only have to learn once.
What about security vulnerabilities? Unless the developers redeploy the application we will be left with an unpatched .net stack and unpatched web server?
How is that a good idea? In an ideal world there would be an active dev team busy redeploying and patching every day behind each website. But people who think we live in this world haven't really followed the pretty much constant stream of news about major breaches because of unpatched versions of software being used everywhere.
Or am I missing something?
Portable: runtime must be installed on target machine Standalone: runtime bundled with application
Portable is how non-Core .NET apps have always been, and I believe all the templates in the Visual Studio preview tooling are setup as portable apps.
The docs have a good explanation of the differences, and how to configure a project to support either deployment strategy:
https://docs.microsoft.com/en-us/dotnet/articles/core/deploy...
Not too hard, if you have some standard practices in place.
But yeah, if that's too much to ask for, just don't ship the framework in your project. You can still have it installed as a system package. But to be frank, it's nearly the same problem, just in a different spot.
I've done it in multiple projects, only problems I've encountered were nuget restoring which was easily fixable.
There are plenty of great articles for that already that you can search for, or just start at the official site:
https://www.microsoft.com/net/core/platform
https://docs.microsoft.com/en-us/dotnet/articles/core/gettin...
Those, except project.json maybe, aren't buzzwords by the typcial definition of it: they have existed for >10 years or so and are the names of a build system and a bunch of project files readable by that build system.
The .NET Core documentation needs improvement, but "Getting Started" seems pretty well-done [1].