1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Satori/docs/coding-guidelines
Alexander Köplinger 8762a02634
Add reference assembly for System.Private.CoreLib.dll (#72143)
We now compile against the reference assembly in all places where we were compiling against the mono/coreclr System.Private.CoreLib.dll implementation assembly before.

The new reference assembly consumes sources from the existing contracts to avoid checking in a generated version of SPC.dll (this would add ~20k lines of .cs which is mostly duplicated with System.Runtime.cs)

Since a few contracts have only partially moved types to SPC we wrap contract types with `#if !BUILDING_CORELIB_REFERENCE` so we can hide them when compiling the SPC reference assembly. This needed a few GenAPI changes which are implemented here: https://github.com/dotnet/arcade/pull/10003.

Note that this means that the types which live in CoreLib are moved to the end of the ref .cs file which causes a GitHub diff to show up, but it is actually a no-op.

Regenerating the ref .cs files works the same way as before, by running the `GenerateReferenceAssemblySource` target in the contract's src\ folder.

Fixes https://github.com/dotnet/runtime/issues/67660

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2022-08-02 17:58:13 +02:00
..
api-guidelines Use [NotNullWhen(true)] in more places (#47598) 2021-01-30 06:09:28 -05:00
adding-api-guidelines.md Upgrade to net7.0 and remove target frameworks (#58011) 2021-09-08 22:04:23 +02:00
breaking-change-definitions.md Fix trailing whitespaces (#40891) 2020-08-19 17:29:01 -07:00
breaking-change-rules.md Update breaking-change-rules.md (#66978) 2022-04-14 17:19:47 -07:00
breaking-changes.md Fix trailing whitespaces (#40891) 2020-08-19 17:29:01 -07:00
clr-code-guide.md Fix typo in GC_FORBID doc (#71050) 2022-06-21 14:11:10 +02:00
clr-jit-coding-conventions.md Rename mention to master branch to main (#48824) 2021-03-01 10:09:31 +01:00
code-formatting-tools.md Move clang-format download into dotnet/runtime and add docs for setting up auto-formatting in the repository (#59374) 2021-09-23 14:34:00 -07:00
coding-style.md Update coding-style.md (#67801) 2022-04-09 06:37:05 -07:00
cross-platform-guidelines.md corefx => runtime (#2068) 2020-01-24 09:30:18 -08:00
cross-platform-performance-and-eventing.md .NET Core to .NET branding changes (#33694) 2020-03-28 07:00:19 -07:00
EventLogging.md Fix typos (#69011) 2022-05-07 11:55:53 -07:00
framework-design-guidelines-digest.md Fix typo in Framework Design Guidelines - Digest (#38307) 2020-06-23 17:04:00 -07:00
interop-guidelines.md Rename CoreRT to NativeAOT (1/N) (#68888) 2022-05-05 18:14:28 -07:00
libraries-packaging.md Fix typos (#72314) 2022-07-16 22:11:11 -07:00
mono-code-guide.md Fix typos (#72709) 2022-07-23 20:24:28 -07:00
performance-guidelines.md Fix broken MSDN blogs links (#32273) 2020-02-14 08:34:15 -08:00
project-guidelines.md Define convention to consume and/or package analyzers (#69069) 2022-05-12 09:22:26 +02:00
updating-ref-source.md Add reference assembly for System.Private.CoreLib.dll (#72143) 2022-08-02 17:58:13 +02:00
vs-cpp-formatting.png Move clang-format download into dotnet/runtime and add docs for setting up auto-formatting in the repository (#59374) 2021-09-23 14:34:00 -07:00
vs-csharp-formatting.png Move clang-format download into dotnet/runtime and add docs for setting up auto-formatting in the repository (#59374) 2021-09-23 14:34:00 -07:00