diff --git a/src/Cli/dotnet/Commands/Pack/PackCommand.cs b/src/Cli/dotnet/Commands/Pack/PackCommand.cs index b703c614c56f..1c7119492b72 100644 --- a/src/Cli/dotnet/Commands/Pack/PackCommand.cs +++ b/src/Cli/dotnet/Commands/Pack/PackCommand.cs @@ -121,6 +121,9 @@ public static int RunPackCommand(ParseResult parseResult) if (version != null) packArgs.Version = version.ToNormalizedString(); + if (parseResult.GetValue(definition.IncludeSymbolsOption)) + packArgs.Symbols = true; + var configuration = parseResult.GetValue(definition.ConfigurationOption) ?? "Debug"; packArgs.Properties["configuration"] = configuration;