TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lessons Learned while Converting from ASP.NET to .NET Core

154 pointsby beytiover 8 years ago

12 comments

jasonkesterover 8 years ago
Just from the examples on this list, it sounds like the only winning move is not to play.<p>I have a handful of sites running ASP.NET 4.5. Migrating them would cost an unknown amount of time and require substantial rewriting of major components (such as all data access). It might not even be physically possible to do, given dependencies on libraries that are still 4.5 only.<p>It sounds like it would also kill our build process dead (adding another major rewrite to the tally). And of course, it would leave us reliant (correct me if I&#x27;m wrong here) on a lighter weight version of VS.NET so we&#x27;d roll back the clock about 10 years on ReSharper-like goodness.<p>As reward for this, migrating over to Core would gain me roughly $0 in business value.<p>The alternate course is to stay with 4.5 for as long as possible, eventually moving across when Microsoft decide to VB6 it.<p>Sounds like a plan.
评论 #12435111 未加载
评论 #12435006 未加载
评论 #12437814 未加载
评论 #12436439 未加载
评论 #12436075 未加载
colemickensover 8 years ago
&gt;We ended up using the JsonProperty attribute on some things to force their casing how we needed them.<p>That&#x27;s a weird choice. It&#x27;s a one-line modification to change back to the legacy naming scheme [1]. (Which is completely non-standard and doesn&#x27;t follow what basically the entire rest of the web accepts as the standard method of naming js object keys. But hey, .NET people are really beholden to some strange things.)<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;aspnet&#x2F;Mvc&#x2F;issues&#x2F;4842" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aspnet&#x2F;Mvc&#x2F;issues&#x2F;4842</a>
ofir_gellerover 8 years ago
I recently built a web app with the new dotnet core . the changes were not so bad, I even found that the docs were nicer than the ones you find for the &quot;old&quot; asp.<p>After having to configure camalCase for json a couple of times I like the new default.<p>But migrating an existing app at this point is out of the question, when I no longer need to have nugget packages with rc in the version name we might do it.
评论 #12435580 未加载
eksemplarover 8 years ago
This is quite frankly an excellent list of why we won&#x27;t be changing any time soon, with key points being:<p>&gt; Things like virtual hosts, logging, security, etc.<p>&gt; Newtonsoft now defaults to camelCase<p>&gt; Log4net doesn’t work and neither do countless other dependencies, unless you target .NET 4.5<p>I mean a lot of those things are the reason we&#x27;re using .Net over more other technologies to begin with.
评论 #12434497 未加载
评论 #12434491 未加载
faragonover 8 years ago
&quot;As part of .NET Core, Microsoft (and the community) has created a whole new web server called Kestrel. The goal behind it has been to make it as lean, mean, and fast as possible. IIS is awesome but comes with a very dated pipeline model and carries a lot of bloat and weight with it. In some benchmarks, I have seen Kestrel handle up to 20x more requests per second. Yowzers!&quot;<p>So the new Microsoft web server replacing IIS, Kestrel, is 20x faster in some circumstances? Wasn&#x27;t IIS &quot;state of the art&quot;?
评论 #12434380 未加载
评论 #12435306 未加载
sklarsaover 8 years ago
I&#x27;m surprised that there&#x27;s no DataTable in .NET Core. I&#x27;ve found them to be incredibly useful for ETL and other processes that involve ingesting or outputting tabular data. Are there any alternative 3rd party libraries out there that have similar functionality?
cm2187over 8 years ago
Stupid question. How do you share IPs if all the websites on a machine are running their own webserver? When running in IIS, IIS handles the virtual hosts. Unless we found a massive stach of IPv4 IPs?
评论 #12435356 未加载
评论 #12434144 未加载
statictypeover 8 years ago
So deploying web apps now consists of deploying a service that uses kestrel and having a reverse proxy in front of it (IIS or nginx or something)as the first point of contact.<p>Is that correct?<p>That&#x27;s the recommended way to deploy?
评论 #12433483 未加载
评论 #12433457 未加载
sundvorover 8 years ago
Another &quot;little&quot; one: Studio tooling is still in preview, so NCrunch cannot be used. It&#x27;s been a moving target for a long time, and too hard to complete until locked down.
Hondorover 8 years ago
It&#x27;s depressing to me that no talk about .Net Core even bothers to mention desktop apps. Winforms and co aren&#x27;t even on the radar. I guess I&#x27;m stuck in the past.
评论 #12439253 未加载
评论 #12436334 未加载
评论 #12436903 未加载
评论 #12436512 未加载
评论 #12437820 未加载
评论 #12438292 未加载
cm2187over 8 years ago
For a website, not being able to manipulate files (no System.IO.File) or images (no System.Drawing) is a bit of a problem unless all you are doing is serve a database.
评论 #12433988 未加载
blakeyratover 8 years ago
What the heck are you supposed to do without System.Drawing? I find it incredible they&#x27;ve just plain removed it altogether.
评论 #12433691 未加载
评论 #12434913 未加载