Click here to Skip to main content
15,890,670 members
Everything / .NET / .NET Core

.NET Core

.NET-Core

Great Reads

by Marc Clifton
Implementing an SSL capable server in .NET Core WITHOUT ASP.NET, using nginx, and testing Postgres with EF, all running on an rPi
by Juan G. Carmona
Advanced logging in modern .NET applications. A Sunday-morning-proof-of-concept.
by Marc Clifton
Talk to your rPi over a Slack channel, getting status, controlling devices, and running shell (bash) commands and viewing the console output posted back to your Slack channel
by Marcelo Ricardo de Oliveira
The second of many articles featuring design patterns, architectural designs, frameworks and technologies leading to ASP.NET Core Microservices

Latest Articles

by optiklab1
Exploring world of NFTs and blockchain while prototyping wallet CLI application with efficient data structures using C# and .NET Core
by Maniezzo
A couple of lines of code to get the i-j indices of an upper triangular matrix (main diagonal included) from a linerized array.
by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
by DomGries
Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!

All Articles

Sort by Updated

.NET Core 

29 Jan 2024 by optiklab1
Exploring world of NFTs and blockchain while prototyping wallet CLI application with efficient data structures using C# and .NET Core
20 Sep 2023 by Maniezzo
A couple of lines of code to get the i-j indices of an upper triangular matrix (main diagonal included) from a linerized array.
12 Aug 2023 by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
7 Aug 2023 by DomGries
Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!
14 Jul 2023 by Sauradipta Chaudhury
Connect .NET Web App to Azure Application Insights hosted in Localhost or Azure Web App using the same code. The approach is recommended by Microsoft and is applicable for .NET 6 and above.
27 Jun 2023 by Ev Uklad
Add ability to track changes in a model class; use a proxy interceptor to execute a rule attached to a model property
19 Apr 2023 by shivangkaul
I have two separate project, one is WebAPI developed in .net Core 2.2 with Windows Authentication and other is Angular. I am stuck in CORS issue. I was able to handle GET request by using withCredentials: true in GET method option as mentioned...
19 Apr 2023 by Marcin Xyz
In ASP.Net Web API, .Net 7.0 + Angular I had exactly the same situation. GET requests worked, but on POST requests I was receiving error (visible in the console): Quote: Access to XMLHttpRequest at from origin has been blocked by CORS policy:...
11 Apr 2023 by MarkLTX
Easy to use logger with a powerful viewer that supports filtering by thread, logger, etc.
26 Mar 2023 by Graeme_Grant
Add the missing project templates for the App and Control Library projects that were not included
25 Mar 2023 by Shaun C Curtis
How to build a Modal Dialog for Blazor
19 Mar 2023 by Bohdan Stupak
How to perform distributed lock between multiple instances of a microservice with Redlock.Net
16 Mar 2023 by Ali Robot
How to implement a text-to-speech (TTS) application in C# using the System.Speech.Synthesis namespace
12 Feb 2023 by ahmed_sa
I have application work in asp.net core 2.1 visual studio 2017 work with angular but when run page it show empty page i make inspect inside web page i get error as below Uncaught Error: inject() must be called from an injection context at injectInjectorOnly (core.js:1188) at inject...
12 Feb 2023 by developer_1605
Try changing the private modifier data to public to make the data accessible in the template. and Make sure to import Inject from @angular/core, and add @Inject decorator in the constructor (note the capital "I").
9 Feb 2023 by Stanko Milošev
How to either migrate to the new XAML designer extensibility or write WPF custom control extensibility model based on .designtools.dll.
6 Feb 2023 by mural3
Progressive disclosure UI on JS disabled browsers
6 Feb 2023 by Ajas Aju
I have the same issue not resolved yet. My API Code: HttpPut("updateThemeDetail/{whiteLabelId}")] public async Task UpdateThemeDetail([FromForm]TenantThemeSetUpInput item, string whiteLabelId) ...
6 Feb 2023 by JayantaChatterjee
Hi All, I created a .net core(v3) Web API and an Angular project, so I trying to send an object which will contain a file and others data (like name, duration etc..). My Angular component code:- saveMovie() { this.submitted = true; if...
25 Jan 2023 by Dev Leader
Use the "Python for .NET" package as a way to call Python from C# code
7 Dec 2022 by SajjadZare
I add swagger to my project and use authorization. It works properly with Postman but when want to use with Swagger get 401 Undocumented What I have tried: public void ConfigureServices(IServiceCollection services) { ... ...
7 Dec 2022 by toumir
have the same problem resolved : just add bearer word before jwt : brearer thaus all :)
23 Nov 2022 by alirıza adıyahşi
Creating a web farm on Docker container using redis, haproxy and abp module zero core template
16 Nov 2022 by Graeme_Grant
How to deserialize very large simple & complex JSON Streams (.NET 6.0 & 7.0)
31 Oct 2022 by Graeme_Grant
Working with simple JSON objects and collections to Custom Converters and Transformations into .NET classes - System.Text.Json
12 Sep 2022 by Member 12885549
I had sql query: IF EXISTS(SELECT 1 FROM Amount WHERE ID = 1 AND ClientId IS NULL) BEGIN UPDATE Amount SET Price = 11 WHERE ID = 1 AND ClientId IS NULL PRINT 'Updated' END ELSE BEGIN INSERT INTO Amount (ID,...
12 Sep 2022 by CHill60
SQLite allows for "UPSERT" - which is what you are trying to do. See SQLite Query Language: upsert[^] You will need to ensure that you are enforcing uniqueness - e.g. on the ID
12 Sep 2022 by Richard MacCutchan
See Query Language Understood by SQLite[^]
12 Sep 2022 by Dave Kreskowiak
From the MySQL documentation[^] for IF says you cannot use an IF outside of a FUNCTION.
21 Aug 2022 by MSBassSinger
Description of a simple, versatile, and scalable logger
31 Jul 2022 by ahmed_sa
==========Problem========== Cannot add functions to Next previous last first for create action using repository pattern based on EmployeeId field ==========Example========== Employee Id : 5 as last record IF create action view get loaded it must show max+1 for Employee Id meaning it will...
27 Jun 2022 by Nguyễn Trung Nhẫn
Free Voice Command Control Library
16 May 2022 by Member 15637522
Create a single-dimensional array X with integers in the range [600;700]. The number of array elements is determined by the user. Calculate and save the value in Y array according to the formula y=√((x+4)/(x-sin(5x))+) ∛(x+4) . Display two arrays...
15 May 2022 by CPallini
The first requirement is to create and populate an array with N (provided by the user) values in the [600..700] range. You may choose how to populate such an array. One alternative is constantly increasing values, e.g. const double...
15 May 2022 by Richard MacCutchan
The formula is as specified in the question. The Math Class (System) | Microsoft Docs[^] contains methods for square and cube roots and sin, so the calculations should be fairly easy to do. The number of elements is, as specified, selected by...
15 May 2022 by Patrice T
Quote: Please help to solve equation in C# We help you fix your code, we don't do your homework for you. Quote: i tried but cant understand algorithm This is not an algorithm, this is requirement. As programmer, your job is to create the...
31 Mar 2022 by David_Cui
A brief introduction to CrossCutterN tool remade for AOP programming in .NET technologies
12 Jan 2022 by Cinchoo
Tip to split large JSON file based on deeply nested array property using Cinchoo ETL
29 Nov 2021 by Uladzislau Baryshchyk
This series of articles consists of three articles, in which I will demonstrate step by step how to create a .NET core MVC project
27 Nov 2021 by Bohdan Stupak
Overview of Span C# feature and an example of how it can improve the existing codebase
5 Nov 2021 by #realJSOP
One way to allow access to multiple model entities within a ASP.NET MVC view.
27 Oct 2021 by Cinchoo
Tip to convert JSON to XML with namespaces using Cinchoo ETL
20 Oct 2021 by Cinchoo
Quick tutorial on converting CSV file to JSON file using Cinchoo ETL
15 Sep 2021 by Member 13251389
If you are adding token in "Available authorizations" Pop up/Model. Please make sure you have added a word "Bearer" with space followed by token. This was my issue.
21 Aug 2021 by Ádám Ficsór
How to use Tor in .NET Core
15 Aug 2021 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
24 Jun 2021 by Oleksandr Viktor (UkrGuru)
Minimally simple UkrGuru.SqlJson package for modern data manipulation
24 May 2021 by TheBigBearNow
Hello all, When my site is deployed and multiple people as using it I am trying to understand if my server were able to handle these requests from multiple people. At first itll only be 10-20 people but I plan on it growing. On the UI since its...
24 May 2021 by Chris Copeland
Asynchronous Server Socket Example | Microsoft Docs[^] The above might help you out, it depends on how you've implemented your accept/receive endpoints. In theory your socket should be handling connections and reception of buffers on a separate...
20 May 2021 by Pete O'Hanlon
Third part of a series of articles where we build an application showing the entire thought process when writing it
13 May 2021 by Pete O'Hanlon
Second part of a series of articles where we build an application showing the entire thought process when writing it
11 May 2021 by Pete O'Hanlon
Introduction to a series of articles where we build an application showing the entire thought process when writing it
11 May 2021 by Pete O'Hanlon
First part of a series of articles where we build an application showing the entire thought process when writing it
10 May 2021 by Jason Sultana
A short discussion of some different options available for developing .net core applications on Mac OS
8 May 2021 by DotNetLead.com
How to build and deploy Angular application using GitHub and Azure
6 May 2021 by Ay2S
Hi OriginalGriff, Thanks, I can see more clearly. Effectively, your proposal fits well with a suggestion which I found in a discussion here[^], about the architecture of the project must be: Quote: If you want it in the system tray I think what...
6 May 2021 by Ay2S
Hi everyone, I have a WPF app which is accessible in a system tray icon and I want to run it a windows service. Typically, If I take an exemple from a popular Apps I would choose Microsoft Teams which starts in a system tray icon at startup...
6 May 2021 by OriginalGriff
You cannot run a UI app as a service at all: a service cannot interact with the user in any way, form, or manner - as services can (and do) run before any user is logged in - and until a user is logged in, there is no user to interact with, or...
23 Apr 2021 by honey the codewitch
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
22 Apr 2021 by Angelo Cresta
.NET 5 version of dotnet/winforms-datavisualization
15 Apr 2021 by Daniel H. W.
Toggle Buttons to select different options without JavaScript
7 Apr 2021 by Shaun C Curtis
How to structure and build a Blazor Database Application
7 Apr 2021 by Shaun C Curtis
How to build the CRUD Data Layers in a Blazor Database Application
7 Apr 2021 by Shaun C Curtis
How to build the CRUD Viewer and Editor Presentation/UI Layer in a Blazor Database Application
7 Apr 2021 by Shaun C Curtis
How to build the UI Controls in a Blazor Database Application
7 Apr 2021 by Shaun C Curtis
How to build the CRUD List Presentation/UI Layer in a Blazor Database Application
24 Mar 2021 by rtksmithjoton123
How can I use bower in my project correctly? What I have tried: I refer to this Manage Client-Side Packages with Bower — ASP.NET documentation[^] , but I can not realize the steps. Can anyone give some detail steps.
24 Mar 2021 by Richard Deeming
OK, it seems you're looking at some out-of-date documentation. Bower is dead[^]. Bower replacement in Visual Studio 2017 ASP.NET MVC Core Template - Stack Overflow[^] Use NPM, Yarn, or the built-in client-side library manager instead.
23 Mar 2021 by lord giv
Hi guys. I'm fighting with my code for some time.. I'm trying to open another view using simple button id of button is - openbagpromotion and action of controller is OpenBagPromotion What I saw is that after clicking a button, there is no...
19 Mar 2021 by Daan Acohen
Learn how to do integration testing while mocking external dependencies of your .NET Core application
15 Mar 2021 by huynbt209
I am having a Semester1 including StartDate1 and EndDate1. I want to create a new Semester2 and it must ensure EndDate1
14 Mar 2021 by OriginalGriff
What you are comparing isn't a pair of DateTime objects - it's (probably, we can;t see your code from here) a DateTime on the right hand side of the comparison, but the left hand side will be a collection of Semester objects. Try it: split your...
14 Mar 2021 by freedeveloper
Managing multiple environments is a very common situation in software development in the enterprise
8 Mar 2021 by rtksmithjoton123
I want to know the spring boot Environment function, and what is the difference between it and asp.net core IWebHostEnvironment. What I have tried: I find the spring boot explanation, but I want to know it more detail.
8 Mar 2021 by Richard MacCutchan
See Environment (Spring Framework 5.3.4 API)[^]
3 Mar 2021 by rtksmithjoton123
When upload a large file, the iis will occur to a http 413 error. And the response body is html. But I want to customize the response body. How can I do it? What I have tried: I find some blogs and other way to excute it. But no this configuration.
2 Mar 2021 by Gerard Castelló Viader
This project is about a fluent endurance automation framework whose API helps you to fluently create your endurance tests defining repetitions and timeouts.
1 Mar 2021 by rtksmithjoton123
Through some searching, there is no detail turiols about google sheet. How can I get them? What I have tried: I want to use it to integrete some tables.
1 Mar 2021 by OriginalGriff
"No tutorials"? That's strange: Google Sheet c#[^] gave me loads of links, most of them to the Google documentation ...
28 Feb 2021 by VICK
we have a public async method with the following code in it int page = 1; int size = 50; var activeDocuments = await GetDocuments(page, size); while...
28 Feb 2021 by rtksmithjoton123
I want to add the on a property in a model. public class MyModel { /// summary /// /// example: ... /// public int id { get; set; } } The...
28 Feb 2021 by Zach H.
I just recently created a project that'll calculate the Fibonacci series, standard deviation, and the Pythagorean theorem. How would I go about adding Unit Tests and using FluentAssertions to test the methods. Would I have to install XUnit first,...
28 Feb 2021 by RickZeeland
They claim the following here: Introduction - Fluent Assertions[^] Quote: Fluent Assertions supports a lot of different unit testing frameworks. Just add a reference to the corresponding test framework assembly to the unit test project. Fluent...
27 Feb 2021 by csrss
Simple stuff, it seems like not possibile to cast long[] to object[]. Anyone knows why so? What I have tried: var array = (object[])Array.CreateInstance(typeof(long), 1); System.InvalidCastException: Unable to cast object of type...
27 Feb 2021 by OriginalGriff
You can't cast an array of values to any other array type because value types are "special": they aren't all the same size, and value types can't be inherited anyway. With reference types, the variable is always the same size: 8 bytes on a 64...
27 Feb 2021 by GuruGanesan
A simple article to understand the concept of dependency injection using C#
26 Feb 2021 by Kumar Veerabadran
Hi, How to create a callback listener web api using .net core. What I have tried: --------------------------------------------------------------------------------------------
26 Feb 2021 by Dave Kreskowiak
WebAPI's don't do callbacks. They typically run over HTTP, which is a request/response system. Your code makes a request to a URL and the server does something and returns a reply. It's an "I'll call you" kind of thing, not the "server calls...
26 Feb 2021 by Richard Deeming
Difficult to answer, since we can't see what the GetDocuments or UpdateFeedAsync methods are doing. But at a guess, you're changing something on the document which causes it to move to a different "page" of data, so the next call to GetDocuments...
25 Feb 2021 by Kumar Veerabadran
Hi all, I am working on reading mail from outlook by EWS push notification subscription. I have done subscription with SubscribeToPushNotifications(IEnumerable, Uri, Int32, String, EventType[]) also received the subscription id...
25 Feb 2021 by Shaun C Curtis
How to combine Razor, Blazor WASM and Server SPAs under the same roof
24 Feb 2021 by TheBigBearNow
Hello all, I have 2 .net core projects that work perfectly with each other when I run them normal, I have an API and a MVC UI. When I run them in docker containers, I go on my API with swagger, I figured out how to connect my postgres db and...
23 Feb 2021 by Bohdan Stupak
A simple snippet of how you can convert video in .NET Core
19 Feb 2021 by Member 11216770
Hi there, I wanna work with resource file by this code in .net Core 5 MVC: rm = new ResourceManager("Resources.Texts", System.Reflection.Assembly.Load("Resources")); ci = Thread.CurrentThread.CurrentCulture; rm.GetString(name, ci); My...
18 Feb 2021 by Lee P Richardson
Cake V1.0 is a more robust technique for writing DevOps in a language the whole team can understand.
18 Feb 2021 by #realJSOP
A WPF ListView that automatically generates columns (that are also sortable) based on decorated entity properties
17 Feb 2021 by RickZeeland
I think you can use: Quote: var metricServer = new MetricServer(port: 1234); metricServer.Start(); Taken from: GitHub - prometheus-net/prometheus-net: .NET library to instrument your code with Prometheus metrics[^] Also see: Hooking up Prometheus...
17 Feb 2021 by rtksmithjoton123
I set the app.UseHttpMetrics(); to monitor, but I want to set the metrics to work on an another port when api work on 5000. What I have tried: I search some blogs and docuement, but I can not find some relative article about how to change it....