# net core

.NET Core is a modular, open-source, cross-platform implementation and development platform for building applications, including cloud workloads, with runtime, library, compiler, and command-line tooling components.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Abusing .NET Core CLR Diagnostic Features (+ CVE-2023-33127)

DevFeed: [Abusing .NET Core CLR Diagnostic Features (+ CVE-2023-33127)](<https://devfeed.tech/articles/abusing-net-core-clr-diagnostic-features-cve-2023-33127-20507.md>)

Original publisher: [Read original article](<https://bohops.com/2023/11/27/abusing-net-core-clr-diagnostic-features-cve-2023-33127/>)

Author: bohops

Published: 2023-11-27T12:51:30Z

Content type: article

Language: en

Sources: [Bohops](<https://devfeed.tech/sources/bohops.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-framework](<https://devfeed.tech/tags/net-framework.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

This article examines how diagnostic features of the .NET Common Language Runtime can be abused, focusing on open-source .NET on modern Microsoft Windows systems. It discusses runtime configuration knobs, registry and environment-variable settings, configuration files, and the CLR profiling API, with defensive guidance and mitigation information referenced at the end.

### Source excerpt

Introduction Background .NET is an ecosystem of frameworks, runtimes, and languages for building and running a wide range of applications on a variety of platforms and devices. The .NET Framework was initially released in the early 2000s as Microsoft's implementation of the Common Language Infrastructure (CLI) specification. In 2016, Microsoft released .NET Core, the first [...]

## Interact with a GraphQL API from a .NET Core Application

DevFeed: [Interact with a GraphQL API from a .NET Core Application](<https://devfeed.tech/articles/interact-with-a-graphql-api-from-a-net-core-application-21817.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/08/interact-graphql-api-dotnet-core-application/>)

Author: Nic Raboy

Published: 2022-08-03T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cli](<https://devfeed.tech/tags/cli.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [json](<https://devfeed.tech/tags/json.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial showing how to use a .NET Core console application to interact with a GraphQL API, including setup, dependencies, and deployment of an example API with MongoDB App Services.

### Source excerpt

When it comes to C#, it's not too difficult or time-consuming to create or consume RESTful APIs. In fact, I recently published a tutorial that demonstrated how to create a RESTful API with .NET Core u... The post Interact with a GraphQL API from a .NET Core Application appeared first on MongoDB.

## Using LINQ to Query MongoDB in a .NET Core Application

DevFeed: [Using LINQ to Query MongoDB in a .NET Core Application](<https://devfeed.tech/articles/using-linq-to-query-mongodb-in-a-net-core-application-21814.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/04/using-linq-query-mongodb-dotnet-core-application/>)

Author: Nic Raboy

Published: 2022-04-06T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code](<https://devfeed.tech/tags/code.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [linq](<https://devfeed.tech/tags/linq.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [programming](<https://devfeed.tech/tags/programming.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

### AI overview

This tutorial demonstrates how to use LINQ in a .NET Core console application to query MongoDB documents. It covers replacing simple MongoDB queries and aggregation pipelines with C# LINQ syntax, using MongoDB Atlas, configuring the project, and selecting LINQ Version 3.

### Source excerpt

If you've been keeping up with my series of tutorials around .NET Core and MongoDB, you'll likely remember that we explored using the Find operator to query for documents as well as an aggregation pip... The post Using LINQ to Query MongoDB in a .NET Core Application appeared first on MongoDB.

## Useful Tips For Getting Started With MongoDB in .NET Core

DevFeed: [Useful Tips For Getting Started With MongoDB in .NET Core](<https://devfeed.tech/articles/useful-tips-for-getting-started-with-mongodb-in-net-core-17702.md>)

Original publisher: [Read original article](<https://nexocode.com/blog/posts/getting-started-with-mongodb-in.net-core-applications/>)

Author: witali-stinski

Published: 2022-03-03T23:00:00Z

Content type: tutorial

Language: en

Sources: [Backend Development on nexocode](<https://devfeed.tech/sources/backend-development-on-nexocode.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [database](<https://devfeed.tech/tags/database.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>)

### AI overview

A practical introduction to using MongoDB with .NET Core applications. The article recommends the official MongoDB .NET Driver instead of an ORM abstraction, explains MongoClient usage, and discusses connection strings and secure credential storage.

### Source excerpt

MongoDB database is one of the most popular NoSql solutions on the market today. Of course, it provides support for .NET Core, as well as for other popular programming languages and frameworks. In this article, I want to share my experience when I started to use Mongo as the main database with the .NET Core application. Before, I mainly used relational databases for a long time, and some NoSQL terms were confusing for me. Just like for many developers with a background in relational databases. You need to switch mindset - from relations and schema to no relations and schemaless.

## Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline

DevFeed: [Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline](<https://devfeed.tech/articles/joining-collections-in-mongodb-with-net-core-and-an-aggregation-pipeline-21813.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/03/joining-collections-mongodb-dotnet-core-aggregation-pipeline/>)

Author: Nic Raboy

Published: 2022-03-02T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [CRUD](<https://devfeed.tech/topics/crud.md>)

Tags: [atlas](<https://devfeed.tech/tags/atlas.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial explains how to join data from two MongoDB collections in a .NET Core application using aggregation pipelines. It uses a MongoDB Atlas cluster, the sample_mflix database, the movies collection, and a custom playlist collection.

### Source excerpt

If you've been keeping up with my .NET Core series on MongoDB, you'll remember that we explored creating a simple console application as well as building a RESTful API with basic CRUD support. In both... The post Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline appeared first on MongoDB.

## Create a RESTful API with .NET Core and MongoDB

DevFeed: [Create a RESTful API with .NET Core and MongoDB](<https://devfeed.tech/articles/create-a-restful-api-with-net-core-and-mongodb-21810.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/02/create-restful-api-dotnet-core-mongodb/>)

Author: Nic Raboy

Published: 2022-02-23T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [API](<https://devfeed.tech/topics/api.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [C#](<https://devfeed.tech/topics/csharp.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [class](<https://devfeed.tech/tags/class.md>), [cli](<https://devfeed.tech/tags/cli.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [database](<https://devfeed.tech/tags/database.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>)

### AI overview

A tutorial showing how to build a RESTful API with .NET Core and MongoDB Atlas. It covers project creation with the .NET Core CLI, MongoDB configuration, data modeling, and basic CRUD endpoints.

### Source excerpt

If you've been keeping up with my development content, you'll remember that I recently wrote Build Your First .NET Core Application with MongoDB Atlas, which focused on building a console application ... The post Create a RESTful API with .NET Core and MongoDB appeared first on MongoDB.

## Binding Redirects

DevFeed: [Binding Redirects](<https://devfeed.tech/articles/binding-redirects-21596.md>)

Original publisher: [Read original article](<https://nickcraver.com/blog/2020/02/11/binding-redirects/>)

Published: 2020-02-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Nick Craver](<https://devfeed.tech/sources/nick-craver.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [net core](<https://devfeed.tech/topics/net-core.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>), [migration](<https://devfeed.tech/topics/migration.md>), [NuGet](<https://devfeed.tech/topics/nuget.md>), [Visual Studio](<https://devfeed.tech/topics/visual-studio.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [framework](<https://devfeed.tech/tags/framework.md>), [migration](<https://devfeed.tech/tags/migration.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-framework](<https://devfeed.tech/tags/net-framework.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [visual-studio](<https://devfeed.tech/tags/visual-studio.md>)

### AI overview

This tutorial explains how .NET Framework assembly version conflicts produce load errors and build warnings. It recommends migrating to .NET Core as the long-term approach and describes binding redirects as the main fix for applications that remain on .NET Framework.

### Source excerpt

This isn't part of the series on Stack Overflow's architecture, but is a topic that has bitten us many times. Hopefully, some of this information helps you sort out issues you hit. You're probably here because of an error like this: Could not load file or assembly 'System.<...>, Version=4.x.x.x, Culture=neutral, PublicKeyToken=<...>' or one of its dependencies. The system cannot find the file specified. And you likely saw a build warning like this: warning MSB3277: Found conflicts between different versions of "System.<...>" that could not be resolved. Whelp, you're not alone. We're thinking about starting a survivors group. The most common troublemakers here are: System.Memory (NuGet link) System.Net.Http (NuGet link) System.Numerics.Vectors (NuGet link) System.Runtime.CompilerServices.Unsafe (NuGet link) System.ValueTuple (NuGet link) If you just want out of this fresh version of DLL Hell you've found yourself in... The best fix The best fix is "go to .NET Core". Since .NET Framework (e.g. 4.5, 4.8, etc.) has a heavy backward compatibility burden, meaning that the assembly loader itself is basically made of unstable plutonium with a hair trigger coated in flesh eating bacteria behind a gate made of unobtanium above a moat of napalm filled with those jellyfish that kill you...that won't ever really be fixed. However, .NET Core's simplified assembly loading means it just works. I'm not saying a migration to .NET Core is trivial, that depends on your situation, but it is generally the best long-term play. We're almost done porting Stack Overflow to .NET Core, and this kind of pain is one of the things we're very much looking forward to not fighting ever again. The fix if you're using .NET Framework The fix for .NET Framework is "binding redirects". When you are trying to load an assembly (and if it's strongly named, like the ones in the framework and many libs are), it'll try to load the specific version you specified. Unless it's told to load another (likely newer) version. T