Masthash

#ASPNETCore

Khalid ⚡
12 hours ago

I added a few more examples for #aspnetcore testing with Test Containers to this repository for integration #testing. #dotnet

To try out the repository, you'll need #dotnet 8 SDK installed and #Docker for Desktop.

https://github.com/khalidabuhakmeh/TestingWithContainers

Positiwise Software
2 days ago

A Guide to Embed Reporting in ASP NET Core Web Applications - https://positiwise.com/blog/embed-reporting-asp-net-core-web-applications

The Complete Process to Configure Reporting REST Service in #ASPNETCore Web Application.

#ASPNET #ASPDOTNET #DOTNETCORE

Embed Reporting in ASP.NET Core Web Applications
Positiwise Software
2 days ago

Modernizing and Migrating Legacy CRM to .NET - https://positiwise.com/our-work/modernizing-and-migrating-the-legacy-crm-to-net

Modernized legacy CRM with #ASPNETCore API, Angular front-end, and AWS and migrated to the cloud for scalability and availability. Improved UX with responsive design.

#ASPNET #DotNET #WebDevelopment

Dev Leader
1 week ago

Me habia reventado la #API xD

No se que he tocado pero ya furula OwO

200 OK👀

#aspnetcore #dotnet #csharp #visualstudio #coding #restapi #restful #vtuberES #otakubinary

Rocky Lhotka 🌲 🤘🖖
1 week ago

@array I like the answers from @khalidabuhakmeh.

You can also just install the #dotnet 7 sdk and #vscode to get started. All #foss.

I'd suggest that your first decision is what kind of UI to create. Console is easy, #aspnetcore is quite common, #blazor is very cool, and there are several others if you want to target windows, iOS, android, Mac, etc.

Ya tengo una api REST en C# que hace CRUD
Create (POST)
Read (GET)
Update (PUT)
Delete (DELETE)
Siguiente paso... a ver como subo imágenes xD

#api #rest #dotnet #csharp #aspnetcore #netcore #net #visualstudio #sqlserver #restful #json #animes #otakubinary

Kouji Matsui (sdf.org)
1 week ago

AspNetCore.JsonStreamer 0.2.0 is out now!

JSON Lines streaming serializer on ASP.NET Core, uses standard type of IAsyncEnumerablt<T>.

It is simply to use, add AddNewtonsoftJsonStreamer() instead of AddNewtonsoftJson().

https://github.com/kekyo/AspNetCore.JsonStreamer

#dotnet #aspnetcore #jsonlines #ndjson

Andrew Lock
1 week ago

Blogged: Should you use the .NET 8 Identity API endpoints?

https://andrewlock.net/should-you-use-the-dotnet-8-identity-api-endpoints/

In this post I discuss the new Identity API endpoints and talk about some of the security and architectural issues they may introduce.

#aspnetcore #dotnetcore #dotnet

#blazor has been out for five years. It's time to stop calling it "new".

#dotnet #aspnetcore #wasm #WebDev #csharp

Positiwise Software
2 weeks ago

.NET Core vs Node JS - https://positiwise.com/blog/net-core-vs-node-js

Unsure whether to build your next app in .NET Core or Node.js? We break down the key differences in performance, scalability, community & more.

#NETCore #NodeJS #DotNet #AspNetCore

This was a big milestone for us. I had to design and implement a licensing schema that would be secure yet not cumbersome to the consumer. And then create a server (with #aspnetcore of course) to generate and validate those licenses.

Tomasz Pęczek
2 weeks ago

I've added requests cancellation capabilities to all (ASP​.NET Core, Blazor, .NET Console) my NDJSON and JSON streaming samples.

#DotNet #AspNetCore #Blazor #NDJSON #AsyncStreams

https://github.com/tpeczek/Demo.Ndjson.AsyncStreams

Maarten Balliauw
2 weeks ago

The `JetBrains.Annotations` package can improve #aspnetcore code completion and navigation for folks using your code! 🔮

Check this post by @khalidabuhakmeh and add some quality-of-life improvements for those using your in-house #dotnet framework or OSS library.

https://jb.gg/t601c4

Khalid ⚡
2 weeks ago

The blog post announcement for #aspnetcore templates in #dotnet 8 RC 1 and SPA templates doesn't mention #Vite. 🤔

Khalid ⚡
3 weeks ago

@bitbear @torb I’ve tried to make HTMX here as close to the constructs that #aspnetcore devs are used to, so it works nicely.

I will also add that the idea is to build UIs with progressive enhancement in mind, so even if JavaScript fails, the HTTP requests should still carry someone to a "workable" experience.

Positiwise Software
3 weeks ago

ASP NET Boilerplate Framework – Quick Start Guide - https://positiwise.com/blog/asp-net-boilerplate-framework

An in-depth guide to ASP NET Boilerplate features for rapidly building modern web applications.

Modular architecture, best practices, & productivity tools for #AspNetCore and #Angular.

#APNET #HowTo #ASPDOTNET

Alexander Zeitler
3 weeks ago

I guess I'm doing something wrong when I try to use SignInManager.CreateUserPrincipalAsync in #aspnetcore Identity

#dotnet

https://stackoverflow.com/questions/77073125/signinmanager-createuserprincipalasync-doesnt-set-all-claims

Khalid ⚡
3 weeks ago

Using Scriban, by @xoofx, to do #liquid templating in your #dotnet applications might be the thing folks need for their #aspnetcore minimal API approach.

@jchannon would be interested in this I bet.

Scribal performing liquid parsing and rendering.
Khalid ⚡
3 weeks ago

Web design is my passion. #aspnetcore #web #design

A bootstrap web design that would embarrass anyone.
Khalid ⚡
3 weeks ago

When you realize the default #aspnetcore template excludes the period from the link. #why #dotnet

Default template for Index page of an ASP.NET Core page.
Andrew Lock
3 weeks ago

​Very happy to see that ASP​.NET Core in Action, Third Edition is now shipping from Amazon! 🎉

https://buff.ly/3L8xQ3e

Even better, it's apparently the No. 1 new release in Microsoft .NET 😄

Thanks to everyone that's bought it!

No reviews yet though - if you've already read it, I'd really appreciate it if you could leave an honest review 🙏 It really helps boost the visibility! Thanks again everyone 🙂

#aspnetcore #dotnet

Andrew Lock
3 weeks ago

Blogged: Introducing the Identity API endpoints - Exploring the .NET 8 preview - Part 8

https://andrewlock.net/exploring-the-dotnet-8-preview-introducing-the-identity-api-endpoints/

In this post I introduce the new Identity APIs, show how they differ from the existing Identity support, and show how to use them.

#aspnetcore #dotnet #dotnetcore

Khalid ⚡
1 month ago

#JetBrains is running a 65% off the first year for #JetBrainsRider. That’s $4/mo! 😱

We also offer perpetual fallback licenses. This should get you into the #dotnet 8 era for development on #Windows, #Linux, and #macOS.

Rider supports #aspnetcore, @avaloniaui, #MAUI, #Unity, and other .NET stuff.

Check it out before firing up the grill for Labor Day. 🇺🇸🌭🍺

#software #development

https://www.jetbrains.com/store/#personal

$52.15 for 1 year of JetBrains Rider
Khalid ⚡
1 month ago

@jchannon @andrewlock I think you just hit on something.

#aspnetcore has a shared hosting model. It's not all or nothing, so don't try to shoehorn forms into minimal APIs (but you know people are going to try haaaaard).

At least this will keep me employed for a while. 😅

Khalid ⚡
1 month ago

@flq @andrewlock 1. I’m not an MVP 😅
2. You should ask the #aspnetcore team. 😬

Andrew Lock
1 month ago

Blogged: Form binding in minimal APIs - Exploring the .NET 8 preview - Part 7

https://andrewlock.net/exploring-the-dotnet-8-preview-form-binding-in-minimal-apis/

In this post I discuss the new form binding support for minimal APIs, the current limitations and rough edges, and how to work with antiforgery tokens

#aspnetcore #dotnet

Khalid ⚡
1 month ago

Playing around with #dotnet 8 #AOT with @maartenballiauw and #aspnetcore.

I can finally flex my ADO.NET skills on Maarten. We’ve gotten old enough that what was not cool is now the only way to be cool. 😎

AOT asp.net core sample for .NET 8
Khalid ⚡
1 month ago

@jchannon Btw, if you mix JetBrains.Annotations with the RazorSlices library, you get view resolution in #JetBrainsRider. #JetBrains ftw! #aspnetcore #dotnet

RazorSlices library with JetBrains.Annotations and view resolution.
Chris Sainty
1 month ago

ICYMI: 📢 Blogged: Blazor in .NET 8 - Part 2: Server-side & Streaming Rendering
In this post I talk about server-side and streaming rendering, two of the new render modes coming to Blazor in .NET 8

#dotnet #blazor #aspnet #aspnetcore #webdev

https://chrissainty.com/blazor-in-dotnet-8-server-side-and-streaming-rendering

Jon Hilton
1 month ago

.NET 8 brings Blazor Server Side Rendering for your web apps.

But what about going "the other way" and accepting user input?

For that it's time to re-visit the humble form…

https://jonhilton.net/blazor-ssr-forms/

#Blazor #AspNetCore

Chris Sainty
1 month ago

📢 Blogged: Blazor in .NET 8 - Part 2: Server-side & Streaming Rendering
In this post I talk about server-side and streaming rendering, two of the new render modes coming to Blazor in .NET 8

#dotnet #blazor #aspnet #aspnetcore #webdev

https://chrissainty.com/blazor-in-dotnet-8-server-side-and-streaming-rendering

John Bowen
1 month ago

New blog post on using embedded #aspnetcore appsettings files for when you don't want the loose files as part of your published #dotnet app:

https://codemindinterface.com/2023/08/embedded-appsettings/

Khalid ⚡
1 month ago

What’s been interesting about #blazor is the rise of commercial component libraries, with many #dotnet vendors adopting a commercial/community license approach.

#dotnet #aspnetcore

Chris Sainty
1 month ago

ICYMI: 📢 Blogged: Blazor in .NET 8 - Part 1: Full stack Web UI
This is the first in a series looking at the big, exciting new changes coming to Blazor in .NET 8

#blazor #dotnet #aspnet #aspnetcore

https://chrissainty.com/blazor-in-dotnet-8-full-stack-web-ui

Khalid ⚡
1 month ago

I have mixed feelings about #dotnet 8 preview 7 KeyedServices, and questions.

- `FromKeyedServices` only works on parameters in dependencies, not on #aspnetcore endpoints. An oversight? (Probably).
- Why not take a dependency on the concrete type rather than using a key? I mean, you’re already coupling to an implementation at that point.
- Is this too much machinery?

What are your thoughts? What am I missing?

This feels like an addition because customers asked for it.

.NET 8 preview 7 keyed services example
Rocky Lhotka 🌲 🤘🖖
1 month ago

The CFP (call for presenters) for #vslive Las Vegas in March 2024 is now online. If you talk about #dotnet #VisualStudio #aspnetcore #blazor #dotnetmaui #devops #sqlserver #azure #kubernetes #angular #react #vue and other related technologies, please consider submitting a couple talks.

https://sessionize.com/vslive-las-vegas-2024

Andrew Lock
1 month ago

Blogged: Keyed service dependency injection container support - Exploring the .NET 8 preview - Part 6

https://andrewlock.net/exploring-the-dotnet-8-preview-keyed-services-dependency-injection-support/

In this post I describe how keyed services work, when to use them, and the current limitations in the implementation.

#aspnetcore #dotnet #dotnetcore

Khalid ⚡
2 months ago

You might want to use JetBrains.Annotations, if you’re using Feature Folders for #aspnetcore #mvc. The JetBrains.Annotations package tells #JetBrainsRider and #ReSharper where views can be located.

Here’s a quick screenshot of how to do that. #dotnet

Feature folders in ASP.NET Core MVC using JetBrains.Annotations
Andrew Lock
2 months ago

Blogged: ASP​.NET Core in Action, Third Edition is now in print! 🎉

https://andrewlock.net/asp-dotnet-core-in-action-third-edition-is-now-in-print/

In this post I describe what's new and what's covered in this 984 page tome 📚

You'll also find a discount code to get 45% off at Manning, but hurry, it's only valid until August 17th!

#aspnetcore #dotnetcore #dotnet

Andrew Lock
2 months ago

🗣I'm excited to announce that my new book 📕 ASP​ .NET Core in Action, Third Edition 📕 has been published and is available in print 🎉📚

What's more, today only (August 3rd), you can get 45% off my book at Manning: http://mng.bz/5mRz

In the latest edition, you'll learn about .NET 7, minimal APIs, and WebApplicationBuilder, as well as Razor Pages, authentication and authorization, and creating custom components!

#aspnetcore #dotnet #dotnetcore

Khalid ⚡
2 months ago

Looking at Piranha CMS, part of the #dotnet foundation, it’s very impressive. It is a CMS for the #dotnet space that is powerful enough to get started and provides a lot of extensibility points.

The documentation is also very good. I added an “emoji” block within a few minutes.

All built on #aspnetcore

https://piranhacms.org/

Khalid ⚡
2 months ago

If you’re building Multi-tenant #dotnet #aspnetcore applications, give FinBuckle a look over. It seems like a very well-thought solution with a lot of scenarios covered already. https://www.finbuckle.com/MultiTenant

Carlos Sánchez :dotnet:
2 months ago

Hey folks, share some of your favorite .NET Performance blog posts, and tell me why you liked it and why it was so helpful.

I'll start:

- Adam Sitnik's "Span": https://adamsitnik.com/Span/
It's a great introduction to the usage of spans for efficient array management.

- Stephen Toub's .NET 7 perf improvements https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/ - All that's new!

- Stephen Toub's .NET 6 perf improvements https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-6/ - I worked on FileStream improvements

#dotnet #csharp #aspnetcore #performance

Khalid ⚡
2 months ago

The #dotnet project, Esquio, provides a tag helper to enable/disable parts of your Razor view that are all processed on the server.

These toggles can be as simple as “on” or “off”, or they can use the incoming request to determine if a user sees the feature.

This is great for A/B testing and is made possible by a pretty awesome #aspnetcore tag helper.

It also provides options for a wide-range of programming options.

ASP.NET Core razor tag helper for Esquio .NET library.
Khalid ⚡
2 months ago

I’m going to miss #aspnetcore tag helpers when the Blazorpocalypse happens 😢

Khalid ⚡
2 months ago

If you’re even remotely interested in #WebAssembly and #dotnet, you should watch our latest webinar. It’s in my top webinars of the year because it’s new and exciting information, and Joshua has so much brain food for you to chew on.

Also, remember to like and subscribe :) #Blazor #aspnetcore

https://www.youtube.com/watch?v=jkve_v1Xxak&t=502s

Cecil Phillip 🇦🇬
2 months ago

Later today on Inside .NET, Dru Sellers joins us live to chat about MassTransit and how it helps #dotnet developers easily build distributed applications 👨🏾‍💻

Join us at 12pm ET 👇🏾
https://www.youtube.com/watch?v=w0k9i4ZDyiI

#aspnetcore #distributedApplications #microservices

Khalid ⚡
2 months ago

I uploaded a sample #dotnet project for #Blazor united showing all the paradigms in the next release of #aspnetcore.

There are four that stick out, but I may have missed some:

- Server-side (Plain-old HTML)
- Server-side Streaming (HTML, but streamed as processing occurs on the server)
- Blazor Server (Web sockets)
- Blazor Wasm

Give it a try :)

https://github.com/khalidabuhakmeh/Blazor-United

Khalid ⚡
2 months ago

I created a #Blazor sample with all the paradigms in #dotnet 8:

- Server rendered (no web sockets or Wasm)
- Server-rendered streaming (no web sockets or Wasm, but faster TTFB)
- Blazor Server (web socket)
- Blazor Wasm isolated components (Wasm)

This gives #aspnetcore devs more options for building experiences with Blazor.

Which of these do you find most compelling, and why?

Blazor application for dotnet 8
Khalid ⚡
2 months ago

So it turns out that #aspnetcore MVC can adequately handle a return value of `IResult` and execute it appropriately.

So I guess you can implement an `IResult` but then have to implement a base controller or extension methods to make it part of the controller implementation. 🤔

MVC Controller returning an IResult instance.
Khalid ⚡
2 months ago

Hey #aspnetcore devs. If I wanted to write a result that could be used in #MVC, #Razor #Pages, and Minimal APIs, what interface/base type would I implement?

Is it `IResult` or `IActionResult` or is it not possible?

Khalid ⚡
2 months ago

Check it out! #Blazor United doing server-side rendered pages. Not a WebSocket or Wasm anywhere to be seen in the Chrome dev tools.

#dotnet #aspnetcore

Blazor server-side rendering of pages. No web sockets or Wasm to be seen in google dev tools.
Khalid ⚡
2 months ago

I was looking through #nuget and found this #dotnet #oss project that lets you create a different web server outside of #aspnetcore.

https://www.nuget.org/packages/Sisk.HttpServer

using Sisk.Core.Http;
using static Sisk.Core.Routing.RouteMethod;

var http = HttpServer.Emit(
    insecureHttpPort: 5000, host: out _, configuration: out _,
    router: out var router
);

router.SetRoute(Get, "/", _ => new(200) {
    Content = new StringContent("Hello, World")
});

router.SetRoute(Get, "/hi/<name>", req =>
{
    var name = req.Query["name"];
    return new(200) {
        Content = new HtmlContent($"<h1>Hello, {name}</h1>")
    };
});

http.Start();
Console.WriteLine($"HTTP Server is listening on {http.ListeningPrefixes[0]}");
await Task.Delay(-1);
Khalid ⚡
3 months ago

Folks who do #aspnetcore development with a #javascript frontend framework (#vuejs, #angular, #react), is your frontend code part of the #dotnet solution, or have you split the backend and frontend into separate isolated folders?

I have thoughts, but would love to hear what your thoughts are. Boosts are appreciated.