r/csharp

▲ 46 r/csharp

How do you see the future and industry adoption of C#/.NET?

Hi everyone,

For the past 1.5 years I've been learning C#/.NET stack for development, and 

Recently, I started connecting with developers and product managers (many aren’t directly from the dotnet field ), and I keep hearing a few things in the loop like-  “dotnet has a small and slow market.”, "Switch to Java/Python and have more opportunities.”, “Fintechs rarely uses C#.”, “The salaries are lower and stagnant.”

Hearing this over and over again has honestly made me a bit discouraged and sceptical, as I’ve invested a lot of time learning the stack (did my graduation in Non-IT field)

My take is-
> Microsoft invests heavily into dotnet/Visual Studio, etc
> Many Large enterprise systems still run on Legacy system, VB
> Framework evolved  from .NET Core to .NET 11 (MS is not stupid)

So, one part of me feels like the ecosystem is still very strong, but at the same time the mixed opinions are confusing.

Currently I’m building an ERP system for a small auto-parts shop as a learning project and understand what it takes to become a real-problem solver.

My question to the community: What is your honest view of the dotnet job market today (especially for juniors)? Did anyone here start their career with similar doubts? Would you still recommend someone to invest deeply in the dotnet  ecosystem today?
> Can a fellow donet MVP be willing to share their perspective? 

Regards

reddit.com
u/Severe-Evening6816 — 13 hours ago
▲ 44 r/csharp

Is DLL Hell a real issue in modern .NET package management

I'm investigating a nuget package called IronXL.Excel deeply since it hides a few dependencies and embeded the community open source packages in its nuget package.

According to Iron software credit page:

>There is no need to install any additional software; everything you need to run this library is included in our download & NuGet packages. All code is generally compiled into our software in such a way to avoid 'DLL Hell' and make installation easy for those teams who prefer not to use the NuGet package manager.

Looks the major reason is DLL Hell. But I have NOT encountered dll hell issue for years. Is this reason solid? Or you have the same feeling as I do that they are hiding something?

The reason I start investigating this package is because I saw this stackoverflow post

>IronXL uses NPOI internally. If you download the nuget package and decompile the dll, you'll see that it has embedded code from: NPOI, BouncyCastle, Newtonsoft, ICSharpCode, ImageSharp, and probably others.

>It seems to me that they have taken a bunch of open-source code and packaged it up to make it look standalone so that they can charge money for it. I don't have any issue with charging money for your own work, but when you're trying to sell someone else's work that feels a bit shady.

And I have further concern that if they hide dependency packages, they may also hide critical security bug because the security scanner will not know which version of these dependencies they are really using. It's not possible for it to rise CVE warning (or it's possible)?

u/tonyqus — 17 hours ago
▲ 1 r/csharp

Basics tips

Hi!

I’ve recently started programming with C sharp in Jetbrains.

I kinda understand the concept of the basics but it’s so hard to remember everything !

So do you have any tips of the basics what to learn? And how to learn it easier ?

reddit.com
u/Perezozos — 24 minutes ago
▲ 30 r/dotnet+1 crossposts

Serilog sink that writes log events to self-contained interactive HTML files

I built a Serilog sink that outputs logs as clean HTML so they’re actually readable, searchable, and filterable by level.

.WriteTo.HtmlFile("logs-{date}.html")
github.com
u/Capital-Victory-1478 — 22 hours ago
▲ 15 r/csharp

I actually added a basic interpreter in my Console Explorer app.

So i added a interpreter that executes upon line by line evaluation, and it actually supports variable expansion in its output. this took me the entire day. but its worth it.

basically the interpreter first finds the files and stores every line in a list of strings, I know its bad long term but its a start, then those lines get tokenized by my tokenizer in Utility.cs, after tokenization, is where the evaluation and execution starts. for the input i used Async and await so the whole app waits for me to press enter in the textbox to lock in my input then passes the said input to the variable I want to change the value of. And All Variables are stored inside a Dictionary of string objects. i basically just passed my list of variable names and dictionary of variables to make the variable expansion work in my output. This is an update to my previous post.

Previous Post: Post

Repository: Github

u/Economy_Season_72 — 18 hours ago
▲ 4 r/csharp

Rewriting old VFP app in C#, update SQL structures or not?

I have a number of older Visual Foxpro apps that we have decided to go ahead and rewrite using C#. Many of the older apps store data in our SQL server databases, which were designed back in the late 90's and early 2000s. Table structures and field names were different back then, variables and fields often used Hungarian notation. Most fields in most tables have a short 2-3 character table prefix then an underscore then a fieldname (example, Order table has order number field C(10) ord_ordernumber). Some tables are named for single record, others are named for plural records. Most sites listing best practices these days for database apps say to not use this naming convention for fields and tables.

If this were you redesigning an older app into a modern application framework, would you redefine the entire database structure using current best practices for naming everything, or would you keep the old existing data as-is, and just write your new app and use the old original table names?

reddit.com
u/AarynD — 12 hours ago
▲ 3 r/csharp

AI code assistant comparison that actually accounts for enterprise C# codebases and not just greenfield demos

Every AI tool comparison I see online uses greenfield demo projects. "Look, I told it to build a REST API and it generated the whole thing!" Great. That tells me nothing about how the tool performs in a 5-year-old C# codebase with 800k lines, DDD architecture, custom middleware, 15 internal NuGet packages, and entity framework migrations dating back to EF Core 2.

I've been running an evaluation on our actual production codebase and the results are very different from what the YouTube demos suggest. The elephant in the room is context. Our codebase has patterns that evolved over 5 years. We have custom Result types, specific repository patterns, our own middleware pipeline, domain events that follow a particular convention. No AI tool knows about any of this out of the box.

Tools that just look at the current file generate generic C# that compiles but doesn't fit. They suggest using standard exception handling when we use Result monads. They generate repositories that don't follow our interface pattern. They create controllers that bypass our custom middleware.

The tools that try to understand your codebase (by indexing repos or connecting to docs) are meaningfully better for enterprise C#. Not perfect, but the gap between "knows your codebase" and "doesn't know your codebase" is the biggest differentiator I've found. Bigger than model quality, bigger than suggestion speed, bigger than chat features.

For teams evaluating AI tools for established C# codebases, how much weight are you putting on the tool's ability to learn your specific codebase patterns?

reddit.com
u/InevitableBorder6421 — 18 hours ago
▲ 3 r/csharp

Thoughts on Dell Pro 13 (Ultra 7 268V / 32GB RAM) for Unity & C# Dev?

https://preview.redd.it/9kdo9pi99ktg1.png?width=1053&format=png&auto=webp&s=c9afb75bda635b2750d09b69974274704dc0c988

Considering the new Dell Pro 13 Premium for my daily driver.

Specs:

• CPU: Intel Core Ultra 7 268V (8C/8T)

• RAM: 32GB LPDDR5x (On-package)

• GPU: Intel Arc 140V (Integrated)

• Screen: 13.3" QHD+ Touch

Workflow:

• Unity: 2D and light 3D development.

• C# / .NET: Primary IDE is Visual Studio. Working on backend APIs and general C# projects.

• Web Dev: Full-stack, Docker, Laravel.

Concerns: How does the 268V handle compilation and Unity baking without Hyper-Threading? Is the thermal throttling an issue in this 13-inch chassis under sustained load?

Would you recommend this for a portable dev setup or should I look for something with a dGPU?

Thanks!

reddit.com
u/TheMartianaut — 19 hours ago
▲ 1 r/csharp

Show StackPanel above/over/on top of WebView2 control unexpected behavior.

In the below code I expected the panel to show up in my window (WPF). It does not.

I have found that if the webview has no source (I remove it from xaml) the panel shows as expected. My guess is an unavoidable edge rendering issue. My hope is that I'm wrong about that.

XY problem? Maybe. My goal is a panel that extends and retracts from the left without it interfering with the layout of the rest of the window. So while it is extended it obscures the content of the webview partially as a design choice.

Hoping I'm missing something and for some suggestions to have it work as described.

Thanks for your time.

edit - writing this out made me think of better search terms. it is a webview2 control issue.

https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/archive?tabs=dotnetcsharp#show-wpf-elements-on-top-of-the-webview2-layer-webview2compositioncontrol

Just don't know what an SDK is yet.

I changed WebView2 to WebView2CompositionControl but an error in the designer window says cannot find an SDK...

>System.AggregateException

>System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Windows.SDK.NET, Version=10.0.17763.10, Culture=neutral

>

<Grid>
    <wv2:WebView2 x:Name="WebView"
                  Panel.ZIndex="1"
                  Source="https://www.google.com" />
    <StackPanel HorizontalAlignment="Left"
                MouseEnter="Border_MouseEnter"
                MouseLeave="Border_MouseLeave"
                Panel.ZIndex="2"
                Width="100"
                Background="AliceBlue">
</Grid>
u/robinredbrain — 13 hours ago
▲ 2 r/csharp

Any interactive free online training to practice C# syntax?

I have a couple of years of experience with Django and Python, and I know the fundamentals. I recently started learning ASP.NET and C#, and the syntax of C# is completely different from Python's. I think I need to complete an online course or practice for a week or two to get used to the C# syntax. That leads to my question: Is there a free, online interactive course to practice C# syntax?

u/tumblatum — 22 hours ago
Week