To backport Net5 X509ChainTrustMode.CustomRootTrust feature to Net472 the intent is to allow users to create X509Chain and build with a custom root Use case: Azure app services
namespace find replace using find replace move linked files to project directory exclude from project unused code Work around lesser span support .CloneByteArray() -> .Clone() + cast Similar to Net5 CloneByteArray source code ToArray since string constructor doesn't yet support spans refactor C# 8.0 features such as remove all nullable reference code (find replace ? and !) inverse switch inline static functions
ToLpstrArray code inlined from Net5 source and use MemoryMarshal.GetReference in place of GetNonNullRef
Can't exclude x509certificate2, need to access internal member pal proj only includes windows Pal code
Need Net472 for SafeNCryptKeyHandle Maybe we can go further and grab it's source but this will do for now
This repo contains the code to build the .NET runtime, libraries and shared host (dotnet
) installers for
all supported platforms, as well as the sources to .NET runtime and libraries.
Official Starting Page: https://dotnet.microsoft.com/
- How to use .NET (with VS, VS Code, command-line CLI)
- Install official releases
- Install daily builds
- Documentation (Get Started, Tutorials, Porting from .NET Framework, API reference, ...)
- Supported OS versions
- Roadmap
- Releases
We welcome contributions! Many people all over the world have helped make this project better.
- Contributing explains what kinds of changes we welcome
- Workflow Instructions explains how to build and test
- Get Up and Running on .NET Core explains how to get nightly builds of the runtime and its libraries to test them in your own projects.
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.
Also see info about related Microsoft .NET Core and ASP.NET Core Bug Bounty Program.
This repo should contain issues that are tied to the runtime, the class libraries and frameworks, the installation of the dotnet
binary (sometimes known as the muxer
) and installation of the .NET runtime and libraries.
For other issues, please use the following repos:
- For overall .NET SDK issues, file in the dotnet/sdk repo
- For ASP.NET issues, file in the dotnet/aspnetcore repo.
- .NET Core source index / .NET Framework source index
- API Reference docs
- .NET API Catalog (incl. APIs from daily builds and API usage info)
- API docs writing guidelines - useful when writing /// comments
.NET Runtime is a .NET Foundation project.
There are many .NET related projects on GitHub.
- .NET home repo - links to 100s of .NET projects, from Microsoft and the community.
- ASP.NET Core home - the best place to start learning about ASP.NET Core.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
General .NET OSS discussions: .NET Foundation forums
.NET (including the runtime repo) is licensed under the MIT license.