microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.38k stars 2.22k forks source link

Nuget dependencies are stored centrally #1445

Closed jiasss closed 2 months ago

jiasss commented 2 months ago

How do I centralize the installation package through Nuget so that it can be loaded correctly at runtime, so that the DLL file can be shared in multiple programs?

environment: windows11 .net8.0

jiasss commented 2 months ago

Dependencies can be loaded using AssemblyLoadContext.Default.Resolving, but the Tomlyn package can't use that method