Skip to content

Commit

Permalink
Include symbols in package
Browse files Browse the repository at this point in the history
  • Loading branch information
oakio committed Feb 5, 2018
1 parent 71aa046 commit 8f08922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion scripts/Codestellation.Nova.CakeBuild.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Codestellation.Nova.CakeBuild</id>
<version>1.0.2</version>
<version>1.0.3</version>
<title>Codestellation Nova cake build</title>
<authors>Codestellation Team</authors>
<owners>Codestellation Team</owners>
Expand Down
13 changes: 1 addition & 12 deletions scripts/buildLib.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions template/src/PROJECT_NAME/PROJECT_NAME.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<RootNamespace>PROJECT_NAMESPACE.PROJECT_NAME</RootNamespace>
<NoWarn>7035</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 8f08922

Please sign in to comment.