1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Experimenting with dotnet runtime.
Find a file
Eric StJohn 9305d7f71d
Port NuGet Audit back to 9.0 (#108854)
* Enable NuGet Audit and fix issues (#107639)

* Enable NuGet Audit and fix issues

Microsoft.NET.HostModel can reference the live builds of the packages
it depends on.  These will be deployed by the SDK.
Most other audit alerts were due to tasks pulling in old dependencies
that aren't even used by the task. Avoid these by cherry-picking
just the assemblies needed by the tasks and provided by MSBuild / SDK.
This prevents NuGet from downloading the package closure with the
vulnerable packages.  We don't need those packages since the tasks
aren't responsible for deploying them.  A better solution in the future
would be a targeting pack for MSBuild and the .NET SDK - so that
components that contribute to these hosts have a surface area they can
target without taking on responsibility for servicing.

There is once case where we have a test that references NuGet.* packages
which also bring in stale dependencies that overlap with framework
assemblies.  Avoid these by cherry-picking the NuGet packages in the
same way.

* Fix package path on linux

* Only use live JSON from HostModel

SDK pins S.R.M and a few others, so don't make them upgrade yet.

* Add a couple missing assembly references

* Refactor tasks dependencies

Consolidate representation of msbuild-provided task dependencies

* Fix audit warnings in tests

* Remove MetadataLoadContext from WasmAppBuilder package

* Update Analyzer.Testing packages

* Reduce exposure of Microsoft.Build.Tasks.Core

* Fix audit warnings that only occur on browser

* Update Asn1 used by linker analyzer tests

* React to breaking change in analyzer test SDK

* Enable working DryIoc tests

* Fix double-write when LibrariesConfiguration differs from Configuration

* Fix LibrariesConfiguration update target

* Clean up references and add comments.

* Make HostModel references private

This ensures projects referenced will not be rebuilt by tests.

This also means the HostModel package will not list these as references,
but that's OK since the SDK provides them and this is not a shipping
package.

* Use ProjectReferenceExclusion to avoid framework project references

On .NETCore we want to use the targeting pack and avoid rebuilding libs.

* Update src/libraries/System.Runtime.InteropServices.JavaScript/tests/JSImportGenerator.UnitTest/JSImportGenerator.Unit.Tests.csproj

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>

---------

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>

* Remove live System.Text.Json reference from HostModel (#108263)

* Reduce changes to src/installer

Since we're no longer trying to reference live S.T.J we don't need these.

* Update JSON toolset version

* Don't error for NuGet audit on non-official builds (#108718)

* Reference live S.T.JSON from DI.ExternalContainers.Tests

* Update STJ in Wasm.Build.Tests

* Make SystemTextJsonToolsetVersion 8.0.4

We cannot count on VS and MSBuild updating by the time 9.0 ships GA.

Fix WASM projects which only target .NET by referencing the LKG and dropping all assets.

For Microsoft.NET.HostModel and other build tasks, keep them on the version we can garuntee is present in VS.  NoWarn the Audit warnings here.  This is safe because we can ensure one of two things.
1. The package is non-shipping and customers won't see the warning and the referencing repo in the product will ensure an update or exclusion of the dependency. (HostModel)
2. The project excludes the reference entirely as making it PrivateAssets (not in package) and ExcludeAssets=runtime  (no possibility of using runtime).

* Fix STJ audit warning in installer tests

---------

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
2024-10-16 08:16:02 -07:00
.config Updated tsaoptions.json to direct issues properly. (#108451) 2024-10-07 08:57:26 -07:00
.devcontainer Fix codespaces build by bumping clang llvm (#105385) 2024-07-24 11:20:32 +02:00
.github [release/9.0-rc1] Add workflow file for interbranch merging (#106614) 2024-08-19 10:37:01 -07:00
docs Mark the System.Formats.Nrbf assembly as [Experimental] with SYSLIB5005 (#107950) 2024-09-17 18:01:02 -07:00
eng Port NuGet Audit back to 9.0 (#108854) 2024-10-16 08:16:02 -07:00
src Port NuGet Audit back to 9.0 (#108854) 2024-10-16 08:16:02 -07:00
.clang-format 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
.clang-tidy Move JIT's clang-tidy flags into configuration files and add a root clang-tidy config that disables all checks. (#93951) 2023-10-25 15:16:22 -07:00
.CodeQL.yml Move CodeQL config file to root (#99575) 2024-03-11 21:31:02 -07:00
.dockerignore [HTTP/SSL] Fix stress (#93135) 2023-10-09 11:54:41 +02:00
.editorconfig Set csharp_indent_case_contents_when_block to false (#103091) 2024-06-13 14:14:47 -07:00
.gitattributes Update .gitattributes (#100736) 2024-05-22 09:50:38 -07:00
.gitignore Add the autocreated .mono/ folder to .gitignore (#102054) 2024-05-14 20:49:43 -06:00
.markdownlint.json Enable markdownlint rule (MD009) (#40887) 2021-02-08 10:43:40 -08:00
.vsconfig Bump Windows SDK version in .vsconfig (#103217) 2024-06-10 07:09:34 -07:00
build.cmd Print help for -? and /? cross-plat (#42396) 2020-09-24 14:27:24 +02:00
Build.proj Update unified build controls (#98330) 2024-02-15 18:48:18 +01:00
build.sh Add windows support for build.sh (#94) 2019-11-18 16:41:36 +01:00
CODE-OF-CONDUCT.md Initial runtime repository structure 2019-11-14 01:26:19 +01:00
CONTRIBUTING.md Add cross-linking between files (#105884) 2024-08-02 13:10:19 -07:00
Directory.Build.props Port NuGet Audit back to 9.0 (#108854) 2024-10-16 08:16:02 -07:00
Directory.Build.rsp Disable msbuild terminal logger (#97309) 2024-01-22 13:08:28 -05:00
Directory.Build.targets Port NuGet Audit back to 9.0 (#108854) 2024-10-16 08:16:02 -07:00
Directory.Solution.props Fix solution restore in libraries (#38294) 2020-06-23 22:35:40 +02:00
dotnet.cmd Move dotnet.cmd/sh helper scripts into the repo root (#672) 2019-12-11 21:01:58 +01:00
dotnet.sh Move dotnet.cmd/sh helper scripts into the repo root (#672) 2019-12-11 21:01:58 +01:00
github-merge-flow.jsonc Add inter branch merge flow configs for 9.0 RC branches (#106425) 2024-08-14 17:39:36 -07:00
global.json Update dependencies from https://github.com/dotnet/runtime build 20241003.8 (#108595) 2024-10-08 20:06:26 -05:00
LICENSE.TXT Revert "Update "LICENSE.txt" so that it's recognized as MIT" (#37626) 2020-06-08 22:22:27 -04:00
NuGet.config Port NuGet Audit back to 9.0 (#108854) 2024-10-16 08:16:02 -07:00
PATENTS.TXT Update repo link to dotnet/runtime (#1781) 2020-01-15 21:16:56 -05:00
README.md Link to general support page from repo readme (#104188) 2024-06-29 15:57:56 -07:00
SECURITY.md Fix trailing whitespaces (#40891) 2020-08-19 17:29:01 -07:00
THIRD-PARTY-NOTICES.TXT cgmanifest.json, zlib-ng-version.txt, THIRD-PARTY-NOTICES.TXT updates. 2024-09-05 08:23:41 -07:00

.NET Runtime

Build Status Help Wanted Good First Issue Gitter Discord

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.

What is .NET?

Official Starting Page: https://dotnet.microsoft.com

How can I contribute?

We welcome contributions! Many people all over the world have helped make this project better.

Reporting security issues and security bugs

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. You can also find these instructions in this repo's Security doc.

Also see info about related Microsoft .NET Bounty Program.

Filing issues

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 the installation of the .NET runtime and libraries.

For other issues, please file them to their appropriate sibling repos. We have links to many of them on our new issue page.

.NET Foundation

.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 Discussions

License

.NET (including the runtime repo) is licensed under the MIT license.