who can tell me the source code where dotnet add package command run #91772
-
i want to know how ''dotnet add package'' command change .csproj file. but when i read source code of dotnet/sdk , only find ForwardingApp class in namespace Microsoft.DotNet.Cli .the reference class ForwardingAppImplementation not found. it maybe use local dotnet tool to run command,but i can not search deeply .who can tell me ,thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can find the https://github.com/dotnet/sdk/blob/a48ae5a2476abc529c6f4e9446384c4292c25611/src/Cli/dotnet/NuGetForwardingApp.cs#L10C48-L10C65 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
You can find the
ForwardingAppImplementation
type with GitHub symbol finder, or open the source code in Visual Studio:https://github.com/dotnet/sdk/blob/a48ae5a2476abc529c6f4e9446384c4292c25611/src/Cli/dotnet/NuGetForwardingApp.cs#L10C48-L10C65
The package related commands are forwarded to NuGet. The actual working code is in NuGet Client repo.