Masthash

#aspnet

Gerald Versluis
4 days ago

The Dev Tunnel CLI announcement at #MSBuild was pretty epic! 🔥

I just had to record a little demo on how to use this to connect your .NET MAUI iOS/Android app, or any client to your localhost and make your life so much easier!

https://www.youtube.com/watch?v=azuC8SFHWp8&list=PLfbOp004UaYW2u0am9IhB_c3pWExLen42

#dotnet #dotnetmaui #aspnet #devtunnels

dotnet
2 weeks ago

On this week's #AspNet Community Standup
🚀 Visual Studio Updates for JavaScript & TypeScript
⭐ Jiayan Chen, Jon Galloway

🗓 Tuesday | May 16
⏰ 10:00 AM Pacific | 17:00 UTC
▶️https://youtu.be/tYEH06hnpWQ

#dotnet #javascript #visualstudio

Swimburger :dotnet:
2 weeks ago

Azure OpenAI service is quite interesting. The same OpenAI models are used, but hosted in your Azure subscription. You're not sharing data with OpenAI as it is its own "fork" if you will.
Learn how to use Azure OpenAI with Twilio SMS to build a ChatGPT SMS bot on ASP.NET Core.
#dotnet #aspnet #csharp
https://www.twilio.com/blog/build-a-chatgpt-sms-bot-with-azure-openai-service-and-aspdotnet-core

Swimburger :dotnet:
2 weeks ago

Mark Heath shows us how to receive audio data from a Twilio phone call, how to change the audio format, and transcribe it to text in real-time using Vosk and ASP .NET Core
#csharp #aspnet #dotnet
https://www.twilio.com/blog/transcribe-phone-calls-in-real-time-with-twilio-vosk-and-aspdotnet-core

Jon Hilton
3 weeks ago

More work on Practical Blazor Components this morning, creating a module all about Blazor's component lifecycle methods.

This is one of those kinda dry subjects, but well worth understanding if you're using Blazor.

https://practical-blazor-components.dev

#Blazor #AspNet

A component tree showing two components: _Main and Banner. Next to the component tree is a "Go" button. When the button's clicked a banner appears and the two components in the tree light up green to show that their OnInitialized lifecycle methods were invoked.

Probably should add #dotnet #efcore #aspnet #aspnetcore for this. Basically beware of IQueryable proliferation.

Jon Hilton
3 weeks ago

Had fun implementing this hint system for my new #blazor workshop.

You're tasked with building a small app. There are hints available if you need them, and each hint get progressively more detailed so you should never get completely stuck (hopefully!)

https://practical-blazor-components.dev

#Blazor #AspNet

James Montemagno
3 weeks ago

Building Web APIs with #VisualStudio just keeps getting better and better. Now easily explore, scaffold test, and debug inside of VS with the new API Endpoints Explorer. Check it out: https://youtu.be/x7Pfdl9wl4Q

#dotnet #programming #webapi #aspnetcore #aspnet #webdev

Swimburger :dotnet:
4 weeks ago

Want to write about .NET for the Twilio blog? Our call for content is open for submissions. Learn more about the process and $ here
https://twilio.com/en-us/voices
#dotnet #csharp #aspnet

Jon Hilton
4 weeks ago

If you're using Blazor you might run into some unexpected behaviour when you navigate to the "same page"...

https://jonhilton.net/blazor-navigation-same-page/

#blazor #AspNet

m. libby
1 month ago

I must be missing something.

I really do not understand the point of all this async stuff in C# when you just end putting await in front of every single async method call anyway.

And why would I want my MVC controller methods to be async? My user is requesting a web page. What, exactly, about that process would be asynchronous?

#async #await #csharp #aspnet #programming

James Montemagno
1 month ago

What are you up to this weekend? How about learning a little bit about hybrid applications with Blazor & .NET MAUI! Build for iOS, Android, macOS, Windows, and Web all with C#... oh and share code and UI across them all!! Mix and match native UI and access native platform features! I got you covered in my intro tutorial for beginners:

https://www.youtube.com/watch?v=lqLfY9zNKNY

#Blazor #aspnetcore #aspnet #programming #csharp #dotnet #dotnetmaui #beginners

Swimburger :dotnet:
1 month ago

Learn how to End-to-End Test SMS Applications with C# .NET and Twilio.
(I first started with using a TaskCompletionSource to make one incoming messages awaitable, but I wanted to be able to await multiple messages which let me down to the Channels API which is really cool.)
#dotnet #csharp #aspnet #twilio
https://www.twilio.com/blog/e2e-test-sms-applications-with-csharp-dotnet-and-twilio

Anthony Steele
1 month ago

Did any of the talk of building a #mastodon #fediverse server in #csharp #aspnet #dotnet come to anything? Is anyone up and running their code?

Luke Parker - Sleepy Gamedev
1 month ago

Out of nowhere, a #coding post on my Ko-fi!

Refreshing access tokens in an Aspnet Core MVC UI.

Read it here: https://ko-fi.com/post/Refreshing-access-tokens-in-an-Aspnet-Core-MVC-UI-Y8Y2KNZ0I

#AspNet #mvc

I'm currently evaluating #JetBrains #Rider and I try to figure out how I can debug my #ASPNET #WebAPI along with an #Angular Frontend side by side in one "Run"/Session. Running VS/VS-Code in parallel to achieve this is pretty annoying.
I read and tried a couple of turorials that I found but I'm kind of stuck. Maybe this is because I'm all new to #Rider and I need a final hint. Is there anybody who could point me to a solution. I'd highly appreciate that.

Jon Hilton
1 month ago

Siblings don't always get along, but it doesn't have to be that way for your Blazor components!

https://jonhilton.net/blazor-sibling-communication/

#Blazor #AspNet

.NET
1 month ago

Let's dig in to this new series a bit.

Today, we hear a high-level discussion of the process for migrating an #ASPNET .NET Framework app to #ASPNETCore on #dotNET 7, end-to-end.

🎥 https://msft.it/6019gHhzv

robrich
1 month ago

https://medium.com/@niteshsinghal85/running-automatic-task-in-asp-net-core-webapi-d5605b3a1114 - no more separate #dotNET service. Use BackgroundService in #ASPnet. Nice quick startup Nitesh Singhal.

Kraktoos :fedora: :i3:
1 month ago

Trying out #aspnet and man... This is such a great experience. Just wondering what I should focus on and why (I've seen that #MVC might be more used as of now, but normal razor pages is gaining popularity)

#aspnetcore #dotnet #webdev #webframeworks #webframework

Scott Galloway
1 month ago

My company may be looking for an ASP.NET Core & Angular dev (mid-senior) fairly soon. Remote, contract role (potentially PERM) GMT +-3 ONLY.
If you know anyone looking email me at scottgal@seamcor.dev for more details. (NO RECRUITERS)
#fedihire #aspnet #angular

Jon Hilton
2 months ago

It isn't magic! Blazor has a pretty consistent approach when it comes to deciding whether or not your components need to be re-rendered.

Here's how it works (with some handy interactive demos thrown in for good measure).

https://jonhilton.net/blazor-rendering/

#Blazor #AspNet

Jon Hilton
2 months ago

Very nice to see the beginnings of Blazor United appearing in the preview releases for http://asp.net 8. If you need a refresher on what the heck Blazor United is/could be when it arrives in November... https://jonhilton.net/blazor-united/

#Blazor #AspNet

Wade Wegner
2 months ago

I've found that when building an #aspnet #blazor app with assistance from OpenAI's #GPT4 model, I need to give it a specific system prompt:

> You are a helpful assistant helping me build an ASP.NET Blazor WebAssembly with .NET 7 Core

Otherwise, it gets easily confused and provides Razor markup instead of Blazor.

Swimburger :dotnet:
2 months ago

I'm trying to make end-to-end testing a programmable phone number intuitive by providing this VirtualPhone API based on Twilio. First, what do y'all think?
#dotnet #csharp #aspnet

Khalid ⚡
2 months ago

@blowdart @runewake2 I remember this hitting #aspnet validation a while ago. All jokes aside, having timeouts is a must when dealing with user-input.

Swimburger :dotnet:
2 months ago

Did a library add services, but you want the service to use a different lifetime, check this out. Use at your own risk!
#dotnet #aspnet #csharp
https://swimburger.net/blog/dotnet/change-the-servicelifetime-after-the-service-has-been-added-to-the-net-servicecollection

Claudia Regio
2 months ago

Have you visited our ASP.NET docs recently? We'd love to get feedback on your experience to help us improve!

Simply visit the docs below 👇 and take our <1 minute survey!
https://learn.microsoft.com/en-us/aspnet/core/?view=aspnetcore-7.0

#dotnet #dotnetcore #aspnet #docs #feedback

dotnet
2 months ago

🆕New video series!🆕
📺Migrating from #ASPNET to #AspNetCore

18 videos from Mike Rousos upgrading an #AspNet app on .NET Framework to .NET 7. Includes .NET Upgrade Planner and .NET Upgrade Assistant (command line and from Visual Studio).

https://aka.ms/modernize-aspnet-videos #dotnet

Jon Hilton
2 months ago

Watch out for those sneaky conditionals. Sometimes adding another component actually makes your Blazor app simpler.

https://jonhilton.net/blazor-components/

#blazor #aspnet

Swimburger :dotnet:
2 months ago

Learn how to build an IVR using Twilio Voice and ASP .NET Core to build a voicemail service.
Another great post by Volkan.
#dotnet #csharp #aspnet
https://www.twilio.com/blog/build-a-voicemail-service-using-twilio-voice-and-aspdotnet-core

Alexander Zeitler
2 months ago

#aspnet folks, I could use some help when bootsttrapping an ASP.NET app using IHostBuilder...

Thanks!

#dotnet

https://stackoverflow.com/questions/75792061/when-bootstrapping-app-using-ihostbuilder-routes-return-404

Carlos Sánchez :dotnet:
3 months ago

Another episode of Nick Chapsas' podcast, this time interviewing David Fowler:

https://www.youtube.com/watch?v=_xlRY3j8ufk

#dotnet #csharp #ASPNET

Swimburger :dotnet:
3 months ago

The new API for ChatGPT is interesting.
For bots to respond based on previous questions and answers, you have to persist the chat history yourself and pass it back and forth for every API call.
In this snippet I'm storing the chat history in session.
#dotnet #aspnet #csharp

C# method that retrieves chat history from ASP.NET Core session, send the history to ChatGPT, and then store the updated chat history back into session.
Panagiotis Efthymiou
3 months ago

Speed Up ASP.NET Core JSON APIs with Source Generators
Speed Up ASP.NET Core JSON APIs with Source Generators - Using System.Text.Json source generators from .NET 6 to improve JSON API performance

https://khalidabuhakmeh.com/speed-up-aspnet-core-json-apis-with-source-generators

#blog #development #programming #aspnet #json

@khalidabuhakmeh

Alexander Zeitler
3 months ago

Already wasted two evenings with this when using the vite-mkcert-plugin certificate with ASP.NET on macOS.

Works fine on Xubuntu.

It works once but after restarting the app I get the error.

#dotnet #aspnet

Paul Pitchford
3 months ago

Has anyone written a complete set of #blazor razor pages for #identity in #aspnet? I find using MVC templates a jarring experience. Or is there a good alternative framework? It’s time to get some authentication/authorisation into my side project. I know @davidfowl was experimenting on something but cannot find the posts.

Scott Galloway
4 months ago

Oh and for the morning (as I will NOT be up)
Still looking for a .NET Contract / Perm role. Lead / Principal really. Fully remote and UK based (but don't mind where my employer is)
https://www.linkedin.com/in/scott-galloway-91608691/
#dotnet #netcore #aspnet #jobs

Scott Galloway
4 months ago

Anyway if you know anywhere looking for a remote C# & ASP.NET developer who can operate from CTO to daily developer please let me know. https://www.linkedin.com/in/scott-galloway-91608691/
#aspnet #netcore #dotnet #remote #job

jakenuts
4 months ago

My fruitless attempts to get hot-reload & browserlink working with a #dotnet #aspnet 7.0 webapp on local IIS have reached their nadir.. anyone have some secrets to getting this to work?

Scott Galloway
5 months ago

Well another week of jobhunting ahead. As another reminder; I'm looking for .net (mainly) remote contract roles. I'm in Scotland but +-5 GMT is not issue. FT roles considered but I'm being very picky about those.
LI: https://www.linkedin.com/in/scott-galloway-91608691/
Resume: https://1drv.ms/w/s!Ap2OEgQ4A-EOgsg8mbO8MBO-f4ilow?e=U19aUw
#dotnet #aspnet #netcore

Scott Galloway
5 months ago

Anyway annoyingly I'm still looking for a .NET remote contract. I am SO BORED and such a fantastic developer - let me help you... #dotnet #aspnet #freelance https://www.linkedin.com/in/scott-galloway-91608691/

Scott Galloway
5 months ago

Came across this awesome localization engine for .Net 'myLanguages' https://github.com/tomasweigenast/myLanguages works in WPF and just about everything else and has a really nice API. Writing a little Libretranslate provider using it to get my autotranslating UI nonsense idea working (cache in a sqlite db).
#aspnet #wpf #netcore

Scott Galloway
5 months ago

I forgot about this post, it's a great exploration of building REALLY SMALL Docker images for ASP.NET Core apps. @shanselman
an 'official' update article would be useful :) (esp if there's some new 'net container' stuff in the latest bits!) #aspnet #netcore #docker
https://itnext.io/smaller-docker-images-for-asp-net-core-apps-bee4a8fd1277

Alexander Zeitler
5 months ago

I wonder if I can have the same relative path for Razor Views in different ASP.NET Core Razor Library projects...

https://stackoverflow.com/questions/74868070/razor-views-with-same-relative-path-within-class-libraries-are-picked-up-wrongly

I'm either doing it wrong our this isn't expected to work.

#aspnet #aspnetcore #dotnet

Wrapped up implementation on a massive piece of work today: updating a 150,000+ line ASP.NET Web Forms codebase to support a Content Security Policy and block unsafe-inline JavaScript.

This has been a massive piece of work, especially because Web Forms generates and adds its own unsafe inline JavaScript at runtime!

Here's how we did it.

(continued)

#AspNet #AspNetWebForms #DotNet #CSharp #VbNet #WebDev

Khalid ⚡
5 months ago

I encapsulated the WebApplicationFactory test server in an "API" class that makes it easier to replace services in the constructor.

Makes writing integration tests as simple as a few lines of code.

Here, I'm testing a Fast Endpoint that relies on an ISystemClock instance. #dotnet #aspnet #aspnetcore

Creating a new API instance in csharp
consuming the API in an XUnit test.
Scott Galloway
6 months ago

Has ANYONE found a good article for ASP.NET covering ConfigurationKeyName attribute (added in .NET 6) it's SO HANDY yet I can never find any docs other than the original implementation issue. https://github.com/dotnet/runtime/issues/36010
Basically lets you specify the keys for each property and Bind() will correctly assign them. #aspnet #dotnet @terrajobst commented on the issue...any ideas Immo?

Khalid ⚡
6 months ago

I remember when this was the only way to run startup tasks in #aspnet. 🫡

#dotnet #dev

WebActivatorEx dependency on NuGet
@l3ny
6 months ago

So, how about all of those companies using the api.twitter for auth, Are they going to have to change it? and in this case "theurlist.com"
@shanselman @damianedwards #api #code #coding #ASPNet #html #theurlist :8b_s: :8b_u: :8b_c: :OMEGALUL:

api.twitter will go absolute
Maarten Balliauw
6 months ago

Just realized that on Mastodon, "tooting your own horn" is quite accurate 🤔

In any case, here's the tooting: if you're interested in #aspnet built-in rate limiting middleware in #dotnet 7, this post has got you covered"https://blog.maartenballiauw.be/post/2022/09/26/aspnet-core-rate-limiting-middleware.html

Scott Galloway
6 months ago

Anyway, for those who are new to the unbridled horror of me, I mostly post about #science #psychology #webdev #aspnet and #kittens (and occasional light Scottish oriented politics...)