-
Visual Studio and that Annoying Code Style
Here were are long ago from my last post and what do I do? Yes, complain about Visual Studio 2022 and MS removing yet again the only real coding style I… use? Yes, that thing one does when one creates a Constructor for a Class to set a private read only variable that is not “this.whatever” but using the camel case “_whatever”. Now I get it… it’s a style… not everyone like the _whatever variables when one does something like Dependency Injection… Ok I have no problem with that… The complaint here… is everything almost when MS releases yet another update to VS 2022- they reset my code style! Really!…
-
Dotnet 6 API with a HttpDelete and that 405 Method not allowed error
As we can tell from the title of the Post, we are going to talk about figuring out why in a client app one gets a Http Status code of 405 (Method Not Allowed). When does this happen? Usually when a http request does a http PUT or DELETE. Yet, when one uses Swagger (openAPI) or Postman to directly call the same API Delete or Put, it works! This is starting to feel like a CORS issue, right? Read On ==> So 405! Indeed looking at the surface of what is going on, one thinks Ah! CORS is at it again! Absolutely, this is what it feels like. After all,…
-
The world of Dotnet Templates
I have long been using templates for dotnet new and of course Visual Studio. So I’ve started down the road of creating my own templates… or a least trying to understand how to create these, Now creating templates for dotnet new and especially for Visual Studio has never been a simple task. But let us try. The first matter is understanding where templates live. For the most part these are based on your user for your PC. This found by using a PS command: join-path -Path $env:USERPROFILE -ChildPath .templateengine This will return C:\Users\<your user name>\.templateengine And as you guess it, there is a .templateengine directory in your users directory. What…
-
The Confusing world of Text.Json and .Net 5
So one of the base libraries over the years that has been our friend is Newtonsoft.Json – the stuff of legend maybe? Well, if not, certainly anyone whose done .Net and used any kind of Json formatted data certainly knows of Newtonsoft.Json… The “go to Json Serializer”! That is until Microsoft set out to prove to the world they could do it better. Better? Like many things in the world of .Net over the years, Microsoft watches these open source libraries… and notices when they become the defacto standard (meaning… Micro either left it out of their core offerings…. or more typical someone did better). Hence Microsoft’s System.Text.Json vs. NewtonSoft.Json. …
-
Dot Net 5 is Here… Check it out.
Wow… some most excellent videos on what is what in .Net 5! Check it out on [visual-link-preview encoded=”eyJ0eXBlIjoiZXh0ZXJuYWwiLCJwb3N0IjowLCJwb3N0X2xhYmVsIjoiIiwidXJsIjoiaHR0cHM6Ly93d3cuZG90bmV0Y29uZi5uZXQvIiwiaW1hZ2VfaWQiOjAsImltYWdlX3VybCI6IiIsInRpdGxlIjoiLk5FVCBDb25mIDIwMjAiLCJzdW1tYXJ5IjoiSm9pbiB0aGUgLk5FVCBDb25mIDIwMjAgZnJlZSB2aXJ0dWFsIGV2ZW50IE5vdmVtYmVyIDEwLTEyIHRvIGxlYXJuIGFib3V0IHRoZSBuZXdlc3QgZGV2ZWxvcG1lbnRzIGFjcm9zcyB0aGUgLk5FVCBwbGF0Zm9ybSwgb3BlbiBzb3VyY2UsIGFuZCBkZXYgdG9vbHMuIE1hcmsgeW91ciBjYWxlbmRhciEiLCJ0ZW1wbGF0ZSI6InVzZV9kZWZhdWx0X2Zyb21fc2V0dGluZ3MifQ==”] You can also find these on You Tube… search on .Net 5. The Conf 2020 Days 1-3 will be there… ~ScottGeek.
-
Dot Net Hell by any other name?
Just when I think Dot Net Hell days are coming behind us… I run across the reality of the fact that those that created this in the first place are… well… still doing it? Take this little gem: public static async IAsyncEnumerable<string> GetContent(string[] urls) { } Yes, we now have IAsyncEnumerable… or do we. In my little experiment, I have a .Net 4.8 console app with C#8.0 language stuff turned on. So, I wanted to mess about with the Async Enumerable…. But in my console app that IAsyncEnumerble goes all red line of crap on me. So what’s the deal? Well it’s simple once you do the digging. .Net…
-
Program Challenge using CSV and NetMQ Part 1.
I did a recent program challenge. The requirements were not too complicated. Basically I was given a simple csv formatted file (csv, of course, being a comma delimited text file). The challenge was to take this csv and parse it into a POCO- POCO being Plain Old Class Object. I’m not sure why we need a acronym for that. POCO is just a data structure in the form of a Class Object. But I digress. Once the csv is parsed into a Class Object, I was then to make it available in a Request/Response using NetMQ. Now on the surface this might seem a lot to do. But not really.…
-
Build 2019 Session: .Net Goodness
Yes, I know I’m a little behind on picking out my favorite Build 2019 Session… So here the first one… Microsoft Build 2019 Developer Conference May 6-8 Seattle, WA Microsoft Build 2019 Developer Conference May 6-8 Seattle, WA Join developers and industry experts at Microsoft Build to explore the latest developer tools and technologies. #MSBuild Source: .NET Platform Overview and Roadmap
-
From the Dot Net Config some Good Web Sites to check out.
So in the travels about with the .Net Conf this week check out some site: Discover .NET Awesome .NET open source & community resources discoverdot.net And… Showcase of projects built with .net technology – BuiltWithDot.Net BuiltWithDot.Net is a community showcase of projects built with .net framework, .net core, xamarin, mono, mono game, unity, or godot. Anyone can submit. And… .NET Foundation dotnetfoundation.org
-
.Net Conf
Looks like an interesting talk…. I need to find the time to attend. .NET Conf 2018 Join the .NET Conf 2018 free virtual event September 12-14 to learn about the newest developments across the .NET platform, open source, and dev tools. Mark your calendar! www.dotnetconf.net



