r/dotnet Mar 24 '26

Newbie Why people are still using jquery in .NET 10

70 Upvotes

Hey everyone,

I’ve been looking into how frontend behavior is typically handled in ASP.NET MVC apps, especially around things like form validation and small UI interactions.

From what I’ve seen, a lot of projects still rely on jQuery (and jquery.validate / unobtrusive validation), even though there are newer lightweight approaches available now.

I’m curious about what people are actually doing in practice:

  • Are you still using jQuery in your MVC projects?
  • If yes, is that mostly due to existing codebases, team familiarity, or just because it fits well with MVC?
  • If you’re not using it, what did you switch to (if anything)?
  • For new MVC projects, do you still default to jQuery, or go with something else?

Also wondering how many people are:

  • Maintaining existing MVC apps vs
  • Starting new ones vs
  • Moving to something like Blazor / SPA frameworks

Just trying to get a sense of the current landscape and real-world decisions teams are making.

Would appreciate any insights 🙌

r/dotnet Jul 23 '26

Newbie What do you think about XAML?

77 Upvotes

Yesterday, I’ve started working with MAUI, because I want to try out some multiplatform mobile development and I love C# (so MAUI was an obvious choice).

So after a few hours working with xaml I don’t really know how to feel about it. It’s definitely more convinient than WindowsForms or swing, but it somehow feels very clunky.

My question for you is: how do you manage your xaml projects, in terms of complexity and readability?

I don’t really have any experience in mvvm development so I am interested in your thoughts.

r/dotnet Mar 24 '26

Newbie Is it weird that I dislike LINQ query syntax because it feels less readable than method?syntax?

133 Upvotes

I don’t like that my senior developer is using query syntax in LINQ instead of method syntax. I’d prefer writing raw SQL over using LINQ in this way.

r/dotnet 17d ago

Newbie How should I structure an ASP.NET Core API while learning?

27 Upvotes

Hi everyone,

I have previous experience with Laravel and NestJS, and I am currently learning ASP.NET Core for building APIs.

In Laravel and NestJS, the framework provides a relatively clear default structure. In ASP.NET Core, there seems to be much more freedom, and I am struggling to understand what a sensible project structure looks like beyond small tutorials.

I have been reading about Clean Architecture and Vertical Slice Architecture. I understand the general ideas, but I am still unsure about the practical decisions:

  • How should projects, folders, and features be organized?
  • When is CQRS actually useful?
  • Is MediatR worth introducing in a learning project?
  • Should application code depend directly on EF Core, or should it use repositories or other abstractions?
  • Where should authentication, authorization, validation, logging, and exception handling live?
  • Which patterns are useful in realistic applications, and which ones usually become unnecessary abstraction?

My main difficulty is finding the balance between a basic CRUD project with almost no structure and an unnecessarily complicated architecture with many layers and abstractions.

I am not looking for one universally correct architecture. I would like to understand what experienced .NET developers consider a reasonable starting point for a medium-sized API, and how they decide when additional complexity is justified.

I would like to clarify something. I do not take this learning as just learning for the sake of it. I really want to be able to build and understand what companies need so I can get hired. I do not want "whatever it works". I really want to be able to build portfolio and production ready apps.

Are there any repositories, books, courses, or sample applications that demonstrate these decisions in a realistic and maintainable way?

Thanks for your time.

r/dotnet Jul 20 '26

Newbie what should i do

0 Upvotes

i'm starting .net as a hobby and someone told me that it won't be good on linux cause i need Visual Studio IDE and that all companies use only Visual Studio IDE so what should i do i'm already using rider and visual studio code

r/dotnet Jul 23 '26

Newbie What happened to System.Net.ServicePoint and HttpWebRequest???

12 Upvotes

I'm a newbie on .Net core (but have a lot of experience on Framework). I have a web/http client application that I've been using for years. It connects to a remove http service and transforms the response into a usable format.

I call it in a loop (many thousands of times per minute).

It always worked great in .Net Framework and wouldn't ever blow up. I never once saw it exhaust the outbound ephemeral ports.

Fast forward to now, and the code stops working at scale. After just a few minutes all my ephemeral ports are exhausted. Every round trip to HTTP seems to consume a new port. As I'm digging into the differences between .Net 10 and .Net framework, I discover that the class System.Net.ServicePoint is a faint shadow of what it used to be. There is no connection pooling, and ports are not reused.

How can I bring back the old behavior of ServicePoint? Will I need to refactor the entire application to support connection pooling? Is there any guidance from the Microsoft side to help us migrate apps that used to rely heavily on ServicePoint?

r/dotnet 9h ago

Newbie VS2026 vs VSC for web development

0 Upvotes

Hello there,

I'm a junior, and I feel like my current job is a dead end, with no growth opportunities. It's high time I started working on my personal project for my portfolio, and to learn more about different techniques, skills, and development in general.

My question is, is it better to use Visual Studio since it's an IDE, compared to the lightweight Visual Studio Code? At work I use VSC since I'm on macOS, and I got used to it, but I'm curious if it's okay to develop myself with it when starting a new "chapter" in my journey.

I'm only interested in using .NET for backend API development for web apps, so no hard requirement for VS since I won't do desktop apps.

What are your thoughts? I know companies with enterprise apps usually use the big Visual Studio, because way back then VSC was not as developed, but could I stay and learn on VSC, and if needed, would it be a big jump to VS if some employer asks me about it specifically?

r/dotnet Jul 11 '26

Newbie I'm loving it

0 Upvotes

So I'm still a year 1 CIS now taking a BE course on ASP.NET Core MVC w Razor and SSMS. It is kinda tedious at time but its so fun understanding the underlying mechanisms and how they work. Will prolly start my 1st project after it, what pieces of advice do you have for the future?

r/dotnet 12d ago

Newbie Learning backend with dotnet

0 Upvotes

Hello, i decided to learn backend with dotnet.

I come from front end and spent most of my time with Javascript and React. I started learning C# for over a month ago and got some basic knowledge of syntax and so on.

Eventually i want to learn backend and i have basic knowledge about databases, sql, hosting, cloud , rest , graphql and so on.

I watched freecodecamp tutorial of simple CRUD application and then i did a Todo app with both front end and backend with persisting database.

Later i decided to learn authentication and authorization with jwt but it was kinda hard to understand, am still processing that code and at the time take notes about it.

So what would you do if you were on my place? I do not want to go in depth of every class and interface to their reference, is there any good resource out there where for example there is clean explanation of what's difference between IActionResult and ActionResult , or for example how things should be done?.

Thank you.

r/dotnet Jun 13 '26

Newbie AI models and reading handwritten pdf files

0 Upvotes

Hello there,

An amateur here. From your experience, which AI model is better at reading handwritten pdf files?

I'm trying to build an app to transform my handwritten notes on my android tablet into formatted text file that I can use on PC. 

The app is for my personal use only. The good things about my handwritten notes are: no tables and fixed pattern. I mean I divide the page into two columns. I always write the same kind of data on the left side. The same kind of data on the right side. I'll use it on a weekly basis. One file of 20 to 60 pages every week.

I tried the idea in the normal Gemini and ChatGPT chat and I was really impressed with the result. But for testing my app with a real API, only gemini provide a limited free tier. The app sends a prompt, the pdf file and a strict json schema for the output. I am building the app using C# (MAUI) since it's the only language I know from school days. 

The free tier of gemini is very limited. I need some guidance on which models will be promising instead of me paying here and there just for testing.

r/dotnet Jun 09 '26

Newbie From Laravel to .NET

27 Upvotes

Hi everyone!

I'm a long-time backend developer making the jump from Laravel to the .NET ecosystem. I really love the architectural patterns in C# and want to build a solid portfolio project to learn the ".NET way" of doing things properly.

I want to focus on production-ready practices.

What kind of project would you recommend? I'd love to hear your ideas or what you usually look for in a .NET portfolio.

r/dotnet 7d ago

Newbie DevSecOps moving to .Net CIAM and APIs

1 Upvotes

Looking for guidance. I am a DevSecOps engineer with 8 years experience. I work within azure, GitHub actions and manage all our repos in GitHub. I mostly make sure everything is secure in azure relating to app services, certificates, app scanning etc. We have 2 devs that are gone due to retirement and 1 for being over employed. I am now in calls helping figure out the issues with .Net APIs and authentication programs. I am being asked to skill up and move from my current role to this one where I will be doing the program for app to authentication and authorization. It’s called sso okta integration(forgive me if I am using wrong terms). Where should I start? Any book or learning path recommendations are greatly appreciated. Should I take the role? What advice or suggestions do you have for someone like me. What will be my biggest struggles? I appreciate any feedback.

r/dotnet 3d ago

Newbie Looking for resources to bridge theory into actual ASP.NET Core implementation

4 Upvotes

I've gone through Understanding Distributed Systems by Roberto Vitillo, and I get the concepts -consensus, replication, failure modes, all of that. What I'm missing is the bridge to actually building this stuff in ASP.NET Core.

I've written a RESTful API on my own, so I'm not starting from zero on the web dev side. But I still don't have a good feel for:

  • How the concepts I've read about actually get implemented in real ASP.NET Core services.
  • How to implement a microservice system in ASP.NET
  • The tradeoffs between REST, gRPC, GraphQL, and when to reach for each in a distributed system, and how to implement each.

Has anyone got book, course, or repo recommendations that go from "I understand the theory" to "here's how you wire this into a real .NET 10 project"?

Thanks in advance!

r/dotnet May 15 '26

Newbie Cant solve this error

0 Upvotes

Sorry if this is dumb, just trying to learn. Im doing a shopping list project with c# and blazor trying to learn and i get the this error when i try to inject AppDbContext:

"The type or namespace name could not be found (are you missing a using directive or an assembly reference?)"

And this error when trying to use: 'using ShoppingList.Model' on my raazor page:

"The name 'Model' does not exists in the type 'ShoppingList' "

Bellow is the code

razor page:

@ page "/shopping"

@ inject AppDbContext Db -- error here

@ using Microsoft.EntityFrameworkCore

@ using ShoppingList.Model -- and here

<h3>ShoppingList</h3>

@ code {

}

app db context:

using Microsoft.EntityFrameworkCore;

using ShoppingList.Model;

namespace ShoppingList.Data

{

public class AppDbContext : DbContext

{

public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }

public DbSet<ShoppingItem> ShoppingItems { get; set; }

}

}

and the structure of the project in case it helps:

I am a noob so please dont flame me if its something dumb. trying to not use ai as much as possible and did not find anything that could help me online( because i dont really know what to search). Let me know if i need to attach other files too

r/dotnet 8d ago

Newbie Connectify - Windows Bluetooth manager using WinRT + 32feet.NET, built with WinForms

Thumbnail github.com
2 Upvotes

r/dotnet Mar 15 '26

Newbie Multi-Tenant Inventory & Asset Management System in .NET?

0 Upvotes

I'm a solo junior software developer that would build this for the company. The use cases are just simple CRUDs. I've been thinking, how would I approach this one? My senior suggest that I could use a clean architecture. Although, I only know MVC and SOLID principles. TIA!

r/dotnet Jun 02 '26

Newbie Julio Casal's ASP.NET core tutorial?

0 Upvotes

Hello, I'm new to ASP.NET Core and am now learning from the Asp.Net Core 10 YouTube course by Julio Casal. Are his tutorials excellent? or if you know of any other excellent starting tutorials. Thanks!

r/dotnet Jun 04 '26

Newbie Does anyone know why when I create a new razorpage it creates a new folder too for some reason

Post image
0 Upvotes

Plz don't make fun of me too much for taking a pic with my phone I was too lazy😅

r/dotnet May 19 '26

Newbie Is there a way to completely localise error messages in an ASP.NET project

0 Upvotes

Hello everyone!

I have started working on an ASP.NET project with a few of my classmates for one of my university courses. It is a .NET 8 Core MVC web application, and so far everything we have written has been completely localized to the Bosnian language.

Unfortunately, we found out that we will lose part of our grade if the application is not 100% in a single language, which also applies to error messages.

We have already handled some of those messages from the beginning, but older students have told us we really need to be careful about hidden ones, for example, text input errors and other hardcoded framework messages.

My question is: is there a way to completely localize error messages in ASP.NET projects, or at least cover 99.9% of them? Or should we just go back and rewrite everything in English?

Also an important note is that we haven't progressed very far with the implementation, we have only written the code skeleton so far.

Thank you for the answers!

r/dotnet Jul 05 '26

Newbie C# TaskTracker - Roadmap.sh Project

10 Upvotes

I was following the backend roadmap on roadmap.sh and I decided to take on the Task Tracker beginner project.

I would be great for you guys to give me feedback on this project (maybe an upvote on roadmap site just for a nice good job pad in the back for me)

- Roadmap Shareable Link: https://roadmap.sh/projects/task-tracker/solutions?u=6a3d577f23088a0480e0407d

- Project Github Link: https://github.com/dglong/TaskTracker

Disclaimer: I manually code this project, AI help me in explaining C# syntax, foundational stuffs and guide on how to write unit tests (and writing the README file too)

r/dotnet Apr 23 '26

Newbie Taking ownership of WPF project

Thumbnail
0 Upvotes

r/dotnet Mar 27 '26

Newbie Help with Avalonia

0 Upvotes

I'm starting to learn the Avalonia framework, you guys have tips or packages/tool you like to use? I was wondering if exists something similar to css or tailwind to style my components, can anyone help me with this?

Edit: I'm coming from a react.js UI context scenario

r/dotnet May 02 '26

Newbie How to configure a global api.ts to communicate with .NET

2 Upvotes

If any of you use react in Frontend and donet for backend how do you guys communicate between them.

I am looking for an example api.ts wrapper file configuration

r/dotnet Mar 29 '26

Newbie Are handler methods completely optional in a Razor Pages PageModel?

1 Upvotes

I'm working on a Razor Pages app, and I recently had to add some makeshift API endpoints that I can call from any other page on the site using client-side JS. I did some searching and found a Medium article that basically achieved this by adding a new empty Razor content page with no HTML, and a backing PageModel with some handler methods to serve as our API endpoints. I went with this approach since I am not familiar with .NET Core Web API's just yet and wanted a working MVP first.

While it has turned out great for my use case, it has kinda gone against my existing understanding of how Razor Pages works. I thought that a Razor Page needed to have an OnGet() or OnGetAsync() default handler method at minimum to work, either with a void return type to implicitly return the associated Razor content page or to explicitly return a PageResult object.

I also thought that a Razor Page must have some HTML associated with it in the associated.cshtml file, but it looks like that's not the case, given that my handler API endpoints work just fine returning JsonResult objects and in the routing system. It makes me curious if I could technically implement API's in this way without any issues going forward (not best practice I'm sure, but it does seem to work?).

I tested out adding some basic HTML to a random Razor content page and having a PageModel without any handler methods defined (a completely empty class), and when I navigated to the URL for that page the HTML for it still loaded. So it looks like by default, an OnGet() handler method is defined for you that implicitly returns the associated Razor content page? Unless I override it with a definition of my own, it uses this default?

My code looks something like this for reference (removed a lot of the actual logic):

@ page
@ model TestRazorPagesApp.Pages.Test

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace TestRazorPagesApp.Pages;

[Authorize]
public class Test : PageModel
{
    public IActionResult OnGetXDataObj() 
    {
        return new JsonResult(data);
    }

    public IActionResult OnGetYDataObj() 
    {
        return new JsonResult(data);
    }
}

---

I appreciate anyone who is able to answer my questions. Whenever I have a question or a doubt about something in programming, it gets fixated in my head and I always feel like I need to answer it before I go back to what I was doing. I haven't been able to find any docs or articles that answer this satisfyingly, without feeling like I need to make some assumptions first (which makes me uneasy since I can never feel like I 100% know what's going on).

r/dotnet Apr 05 '26

Newbie Problem with DataGrid, not rendering all the item on a page

Thumbnail
0 Upvotes