Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "new" symbol package format when publishing #43

Open
billbogaiv opened this issue Jul 28, 2021 · 0 comments
Open

Use "new" symbol package format when publishing #43

billbogaiv opened this issue Jul 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@billbogaiv
Copy link
Member

billbogaiv commented Jul 28, 2021

🔧 Enhancement Request

For symbol deployments to NuGet, it no longer supports the *.symbols.nupkg format—versus the "newer" *.snupkg-format.

To accommodate this requirement, we can either wait until Cake publishes the update that includes cake-build/cake#3331 or manually modify the cake-scripts to include ArgumentCustomization re;

DotNetCorePack(clientProjectPath, new DotNetCorePackSettings
{
Configuration = configuration,
MSBuildSettings = new DotNetCoreMSBuildSettings().SetVersion(packageVersion),
NoBuild = true,
OutputDirectory = artifactsDir,
IncludeSymbols = true
});

Sample update

DotNetCorePack(clientProjectPath, new DotNetCorePackSettings
{
    Configuration = configuration,
    MSBuildSettings = new DotNetCoreMSBuildSettings().SetVersion(packageVersion),
    NoBuild = true,
    OutputDirectory = artifactsDir,
    IncludeSymbols = true,

    // New code...
    ArgumentCustomization = x => x.Append("-p:SymbolPackageFormat=snupkg")
});

Also ref. https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg

Who is asking for the feature?

@billbogaiv

What business problem is this hoping to solve?

Improve debug experience when using packages—we'll be able to see "source-code" variable names (versus compiled-names), etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant