Click here to Skip to main content
15,889,909 members
Everything / .NET / .NET6

.NET6

.NET6

Great Reads

by dnxit
MVC .NET Core 3.1 Dynamic Role based authorization using Authorization Handler & Custom Authorize Policy
by Igor Ladnik
Automatic generation of optimal control policies for the basic quadcopter flight modes
by Kenji Elzerman
Fundamentals of Entity Framework
by Fred Song (Melbourne)
Build a simple finance application with Angular 13 and .NET 6

Latest Articles

by gabriel4sonic
Shows how to use OpenGL in a .NET WPF application by directly incorporating an OpenGL window as a child of the main WPF window, making it behave more like a control
by vickyqu115
This article provides a detailed explanation and analysis of developing a PLAY button inspired by the game "League of Legends" using pure WPF technology.
by Federico Di Marco
Saving webpages in single self contained files using Selenium Webdriver
by Eligio Morgado H.
Compare two SQL Server databases and show difference in tables and fields

All Articles

Sort by Score

.NET6 

15 Apr 2022 by dnxit
MVC .NET Core 3.1 Dynamic Role based authorization using Authorization Handler & Custom Authorize Policy
20 Jun 2022 by Igor Ladnik
Automatic generation of optimal control policies for the basic quadcopter flight modes
5 Dec 2022 by Kenji Elzerman
Fundamentals of Entity Framework
19 May 2022 by Fred Song (Melbourne)
Build a simple finance application with Angular 13 and .NET 6
12 Jan 2022 by Dan Letecky
Use ASP.NET Core, Entity Framework, DayPilot and vanilla JavaScript to build a web application for doctor appointment scheduling.
7 Jun 2022 by Fred Song (Melbourne)
Build a simple finance application with Angular 13 and .NET 6
17 Mar 2022 by Ladware.Net
Blazor and Windows Form desktop application
31 Oct 2022 by Graeme_Grant
Working with simple JSON objects and collections to Custom Converters and Transformations into .NET classes - System.Text.Json
3 Aug 2022 by Mr. xieguigang 谢桂纲
R# language is a kind of R liked language implements on .NET environment
24 Jan 2023 by RickZeeland
A Custom Flat-style Numeric UpDown Control with a simple demo application written in .NET 6
17 Dec 2022 by Kenji Elzerman
Let's take a look at the very fundamentals of LINQ and how to use it.
14 Jul 2022 by syed shanu
Getting started with .NET 6.0 and Standalone Angular Template with WEB API and publishing both WEB API and Angular projects to IIS
31 Oct 2022 by Bert O Neill
Provide a developer’s overview on how to debug your Azure Functions locally or against a remote Azure
13 Nov 2022 by Kenji Elzerman
A simple tutorial with some code of how to read text from an image with Azure Computer Vision
28 Jun 2023 by Graeme_Grant
I am not sure what your relation database table hierarchical setup is, so I will focus on a typical setup. The data is stored in a flat structure, usually with a pointer to a parent node. So something like this: class Data { public int Id {...
2 Aug 2021 by Pete O'Hanlon
Fourth part of a series of articles where we build an application showing the entire thought process when writing it
26 Jun 2022 by syed shanu
Getting started with .NET 6.0 and Standalone Angular Template to create a Multi Language website using Angular NGX translate
16 Nov 2022 by Zijian
Resolving issues with date picker component in ASP.NET 7 applications.
28 Apr 2023 by Member 15341738
I am working on CMS which contains many domains (so our URLs can look like www.example.com/group or www.example.com/de). I want to make a call from frontend based on current domain and then I need to be able to send it to a endpoint in the...
30 Apr 2023 by Graeme_Grant
This was released on YouTube 26minutes ago, it may help: Understanding CORS with ASP.NET Core C# - YouTube[^]. Anton is very good.
16 Aug 2022 by Richard Deeming
As discussed in the comments, applications on different ports suggests a CORS problem: Cross-Origin Resource Sharing (CORS) - HTTP | MDN[^] Different ports means different origins. You'll need to update the API to send back an appropriate CORS...
1 Mar 2024 by gabriel4sonic
Shows how to use OpenGL in a .NET WPF application by directly incorporating an OpenGL window as a child of the main WPF window, making it behave more like a control
16 Jun 2022 by Ahmad_kelany
Hello, I am making some extension methods that extend System.Windows.Media.Color I was trying to include them in a .Net 6 class library to use them across multiple projects, But I couldn't add reference to the required namespace. What I have...
3 Dec 2021 by Richard MacCutchan
Quote from MSDN: The requested page is not available for .NET 6. You have been redirected to the newest product version this page is available for. It would appear that this namespace is not part of .NET 6.
22 Dec 2021 by MrCrane
Hello Everyone, I was a C# Desktop dev up until ~2007, when I moved on to other stuff. At home, I've had a version of VS in one form or another installed have occasionally used it to solve a DB or data cleaning problem or two. Normally, I'd...
22 Dec 2021 by Richard MacCutchan
Quote: I just want to develop the app and run it from the project folder, is this possible? Check to see if an executable has been created and stored in the bin\Debug or bin\Release directories of the Project directory.
18 Feb 2022 by Member 13908537
Hello, I Think you have to: target net6-windows, add true in you project file .csroj, .vbproj or fsproj, etc. and restore it. e.g; WinExe ...
1 Mar 2022 by Telstra
I am upgrading my .NET solution from 4.5 to 6.0. I have multiple projects in one solution. One project which has domain classes is upgraded to 6.0 which is consuming WCF services which is another project. WCF service project is still in 4.5...
1 Mar 2022 by Richard Deeming
If you want to migrate a WCF project to .NET 6, you will need to use the .NET port of WCF: GitHub - CoreWCF/CoreWCF: Main repository for the Core WCF project[^] Otherwise, you can migrate it to gRPC: Why migrate WCF to ASP.NET Core gRPC |...
16 Jun 2022 by DrewTw
Install System.Windows.Extensions through NuGet PM Install-Package System.Windows.Extensions -Version 6.0.0
9 Jul 2022 by Member 8583441
I am designing an api for Educational field. So, I have created WebAPI with authentication mode windows in .Net6. I am having two controllers namely, AuthController and TeacherController. AuthController for authorizing the user and to create JWT...
14 Jul 2022 by FatalError0x4c
I need to rotate shape derived classes around their centre with the mouse. My code doesn't work. The shapes need to be created dynamically and not in XAML. What I have tried: private void Shape_MouseMove(object sender, MouseEventArgs e) ...
14 Jul 2022 by FatalError0x4c
// thanks to this at stackoverflow
3 Aug 2022 by Member 15341738
Hello, in my .NET6 MVC app I have created an endpoint which accepts two strings, one containing data which will be transformed into a file and and second one which takes a type of file which will we want to create (which is "pdf"). ...
3 Aug 2022 by Sandeep Mewara
If you debug, you should observe that the URL formed is not a valid one. A URI is a compact representation of a resource available to your application on the intranet or internet.. Refer: Uri Class (System) | Microsoft Docs[^] Looking at what...
5 Aug 2022 by Member 15341738
Hello, so I'm in process of migrating of my app from .NET Framework 4.8 to .NET6. Due to some .NET classes being obsolete in newer version I am experiencing some problems. I have a controller in which one of endpoints is supposed to return a PDF...
7 Aug 2022 by Richard Deeming
Your .NET Framework code was returning a HttpResponseMessage message. The .NET 6 code is returning an OkObjectResult which will attempt to format the HttpContent as JSON. If you want to return the HttpResponseMessage in .NET 6, you'll need a...
18 Aug 2022 by Member 15341738
Hello, I'm migrating a .NET Framework 4.8 web API to .NET6. For creating PDFs I'm using an external library called ABCpdf. It needs a license key to work, which should be initialized only once, when the app is starting. Method which is...
1 Sep 2022 by Shaun C Curtis
An in depth look at how to use Blazor's OwningComponentBase
30 Oct 2022 by Member 15341738
Hello, so long story short I have a web app, which uses Json deserialization in order to display information about products: var ProductInfo = JsonConvert.DeserializeObject(Product.CertificateFieldsHeader); I want to avoid...
29 Oct 2022 by Graeme_Grant
Your best option is to generate the classes from the JSON data. This will do an initial check for malformed data. I like to use: JSON Utils: Generate C#, VB.Net, SQL TAble and Java from JSON[^]. There are others mentioned in the link below. As...
3 Feb 2023 by Member 15758581
I want to add a filtering-function to my (WPF) program. My problem isn that i don't know how i could find specific Items/Objects (DataGridTextColumns) from the DataGrid. I want to search for specific properties like as an example if my object...
3 Feb 2023 by OriginalGriff
Start here: How to: Group, sort, and filter Data in the DataGrid control - WPF .NET Framework | Microsoft Learn[^]
5 Mar 2023 by Jbennett856
I am writing a program where it has two RichTextBox's on the same form. I am trying to make it so the Undo/Redo/Copy/Paste/Cut select all etc.functions run independently of each of the RichTextbox's. Instead of having to run two separate...
6 Mar 2023 by Member 15627495
If RichTextBox1.Focused = true Then RichTextBox1.Undo() End If If RichTextBox2.Focused = true Then RichTextBox2.Undo() End If it's a basic, first you check the focus 'on' of the first RTBox, then for the second RTBox. 'Better' is an...
18 Apr 2023 by xTMx9
Hello, I am currently facing an error when running a method that could be related to 2 connectoin instances running at the same time but I can't find how is it happening exactly. The error: InvalidOperationException: Cannot use multiple context...
18 Apr 2023 by Richard Deeming
Quote: I have checked the program.cs file and all services are registered as "Transient" in it. Well, there's your problem. Services registered as "transient" will have a new instance created every time they are resolved. You have two (or...
28 Apr 2023 by Bohdan Stupak
Since you hit 500 error which is server-side error it might suggest that you have some deeper issue but to be able to handle /*/updatecookies pattern you need 1. Remove route from controller [Route("/")] 2. Setup following route for your...
30 Apr 2023 by Member 15992206
Hello, when I try to get window authenticated by .net 6 through angular, I get an error: Access to XMLHttpRequest at ... from origin 'http://localhost:4200' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header...
16 Aug 2022 by HobbyProggy
Hey guys, long time no see but i got a problem i can't solve, so i thought this might be the place to be! Short introduction to what i am trying to achieve, because i thought that's how you do it properly. I am fairly new to the Web stuff, but...
28 Jun 2023 by xTMx9
Hello! I recently migrated to .net 6 and to a new EF version. The tree model in my code is not working as intended. In my data, I have several stores, several cities and several countries. They should be displayed as the following: --->...
28 Jun 2023 by Ralf Meier
I can't give you a complete code ... but a description how to do it ... You must iterate through your entries and create at first the Root-Nodes (and only them) - and for every entry look if the root-node is allready existing. After this you...
12 Aug 2023 by Sandy Safwat
Hi Am trying to create a database from existing migration persistence database public CMSDBContext(DbContextOptions options) : base(options) { } //Dbsets protected override void...
25 Sep 2023 by Federico Di Marco
Saving webpages in single self contained files using Selenium Webdriver
22 Feb 2022 by Uzi Granot
This program will solve a Rubik’s cube using algorithms for beginners. It is a WPF open source application written in C# for VS 2022 and .NET6 using 3D graphics and animation.
29 Dec 2021 by Jason Sultana
I upgraded an old project from .NET Core 2.1 to .NET 6. Here's what broke.
6 Feb 2022 by Marc Clifton
User account management is fundamental to any web API
16 Nov 2022 by Graeme_Grant
How to deserialize very large simple & complex JSON Streams (.NET 6.0 & 7.0)
7 Jun 2022 by Shao Voon Wong
Incorporate Antimalware scanning inside your application
29 Nov 2023 by vickyqu115
This article provides a detailed explanation and analysis of developing a PLAY button inspired by the game "League of Legends" using pure WPF technology.
13 Apr 2023 by Stanko Milošev
Making a custom button with smart tag and UIEditor in .NET 6
24 Apr 2023 by Eligio Morgado H.
Compare two SQL Server databases and show difference in tables and fields
20 Nov 2022 by Ivan Yakimov
Support of OData in ASP.NET applications
24 Jan 2022 by dsuryd
A lightweight alternative for serving real-time updates from a .NET web service.
4 Oct 2022 by Sonnich Jensen
Classic/custom build for assembly version for .NET 5 and 6.
22 Aug 2022 by MSBassSinger
A library of generally useful methods and functionality that can save a developer from writing code to accomplish these mundane tasks. Targeted to .NET 6.
5 Feb 2022 by Marc Clifton
Manage your database migrations with web API endpoints
29 May 2022 by koolprasad2003
What's new in .NET 6
12 Aug 2023 by Sandy Safwat
Please make sure from the starting host : the api project is selected from the package manager console, make sure the persistance project is selected