From 8f0892257b0f36c1e873bce28b4d38812053e835 Mon Sep 17 00:00:00 2001 From: oakio Date: Mon, 5 Feb 2018 18:11:16 +0300 Subject: [PATCH] Include symbols in package Workaround: https://github.com/NuGet/Home/issues/4142#issuecomment-341867400 Proposal: https://github.com/NuGet/NuGet.Client/pull/1971 --- scripts/Codestellation.Nova.CakeBuild.nuspec | 2 +- scripts/buildLib.cake | 13 +------------ template/src/PROJECT_NAME/PROJECT_NAME.csproj | 1 + 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/scripts/Codestellation.Nova.CakeBuild.nuspec b/scripts/Codestellation.Nova.CakeBuild.nuspec index a425503..98ba247 100644 --- a/scripts/Codestellation.Nova.CakeBuild.nuspec +++ b/scripts/Codestellation.Nova.CakeBuild.nuspec @@ -2,7 +2,7 @@ Codestellation.Nova.CakeBuild - 1.0.2 + 1.0.3 Codestellation Nova cake build Codestellation Team Codestellation Team diff --git a/scripts/buildLib.cake b/scripts/buildLib.cake index c246669..da16cca 100644 --- a/scripts/buildLib.cake +++ b/scripts/buildLib.cake @@ -75,21 +75,10 @@ Task("Pack") var settings = new DotNetCorePackSettings { NoBuild = true, - IncludeSymbols = true, - OutputDirectory = buildBinDir, + OutputDirectory = buildArtifactsDir, MSBuildSettings = msbuildProps }; DotNetCorePack(srcDir, settings); - - // rename *.symbols.nupkg to *.nupkg - CreateDirectory(buildArtifactsDir); - var packagesGlob = buildBinDir.Path + "/*.symbols.nupkg"; - var packages = GetFiles(packagesGlob); - foreach(var package in packages) - { - var name = File(package.GetFilename().FullPath.Replace(".symbols.nupkg", ".nupkg")); - CopyFile(package, buildArtifactsDir + name); - } }); Task("Publish") diff --git a/template/src/PROJECT_NAME/PROJECT_NAME.csproj b/template/src/PROJECT_NAME/PROJECT_NAME.csproj index 46c0304..6e6913b 100644 --- a/template/src/PROJECT_NAME/PROJECT_NAME.csproj +++ b/template/src/PROJECT_NAME/PROJECT_NAME.csproj @@ -13,6 +13,7 @@ PROJECT_NAMESPACE.PROJECT_NAME 7035 true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb