Software engineer Mukesh Murugan writes this recent first in-depth article in a three-part series covering roles, claims, and policies for JWT-based authentication, and authorization in ASP.NET Core web apis using C#.

His blog (https://codewithmukesh.com/) is high signal-to-noise ratio, on par with the likes of C# Corner. Highly recommend.

"Role-Based Authorization in ASP.NET Core - A .NET 10 Guide"

https://codewithmukesh.com/blog/role-based-authorization-in-aspnet-core/

#dotnet #csharp #rbac #webapi #jwt #programming

Alvin Ashcraft's Morning Dew

A daily link blog for developers, focused on .NET, Windows, and modern web development.

Alvin Ashcraft's Morning Dew

Medium writer, and experienced developer hliyan goes through the lot of reasons that led him to adopt the .NET Framework for his own apps coming from immediate Java, and Javascript backgrounds.

I currently write my web apis using ASP.NET Core and can say that it's a great, developer friendly way to develop them.

"Why you should consider learning .NET"

https://hliyan.medium.com/why-you-should-consider-learning-net-c7e786c6e0a5

#dotnet #programming #csharp #education #career #java #javascript #angular #webapi

RE: https://hachyderm.io/@tmeschter/116751973349195922

There's another option for getting information out of MSBuild that I didn't cover before because the thread was getting long: `-getTargetResult`.

In MSBuild a target can (optionally) return a set of items. This lets you treat it as a function, not just a "unit of work".

For example, you can run:
`dotnet build -getTargetResult:ResolveReferences`

and get
```
{
"TargetResults": {
"ResolveReferences": {
"Result": "Success",
"Items": [
{
"Identity": "C:\\Program Files\\dotnet\\packs\\Microsoft.NETCore.App.Ref\\10.0.8\\ref\\net10.0\\Microsoft.CSharp.dll",
"FileVersion": "10.0.826.23019",
...
},
{
"Identity": "C:\\Program Files\\dotnet\\packs\\Microsoft.NETCore.App.Ref\\10.0.8\\ref\\net10.0\\Microsoft.VisualBasic.Core.dll",
"FileVersion": "15.0.826.23019",
...
},
...
]
}
}
}
```
which is a list of all the references being passed to the C# compiler, along with a bunch of metadata on each.

Or you can run the "Build" target and get information about the outputs:
```
> dotnet build -getTargetResult:Build
{
"TargetResults": {
"Build": {
"Result": "Success",
"Items": [
{
"Identity": "C:\\Users\\me\\source\\repos\\TestConsole\\TestConsole\\bin\\Debug\\net10.0\\TestConsole.dll",
"ReferenceAssembly": "C:\\Users\\me\\source\\repos\\TestConsole\\TestConsole\\obj\\Debug\\net10.0\\ref\\TestConsole.dll",
"FullPath": "C:\\Users\\me\\source\\repos\\TestConsole\\TestConsole\\bin\\Debug\\net10.0\\TestConsole.dll",
...
}
]
}
}
}
```

So depending on the target that can be another option.

#msbuild #dotnet #csharp

Alvin Ashcraft's Morning Dew

A daily link blog for developers, focused on .NET, Windows, and modern web development.

Alvin Ashcraft's Morning Dew

My employer seems to hire again: jobs.ifm.com

(If you name me during your application, I get a small bonus)

#germany #deutschland

#clang #cpp #csharp #microcontroller #frontend #softwaredevelopment #software #softwareengineering #fedihire #fedijobs

FINAL CALL: TechBash 2026 Early Bird Savings End in 72 Hours!

FINAL CALL: TechBash 2026 Early Bird Savings End in 72 Hours!

Zoho Campaigns
Alvin Ashcraft's Morning Dew

A daily link blog for developers, focused on .NET, Windows, and modern web development.

Alvin Ashcraft's Morning Dew
Discriminated unions in C# and .NET 11 (for real this time) | Maarten Balliauw {blog}

Back in 2023, I wrote about discriminated unions in C# and how C# developers had to work around the lack of language support using things like ASP.NET Core’s Results<> type or the OneOf NuGet package. Real C# language support (csharplang issue #113) had been open for years with no sign of a proper solution. Well, the wait is over. C# 15, shipping with .NET 11 (preview), introduces first-class union types. Let’s have a look.