Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions recipe/nuget-package.cake
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,14 @@ public class NuGetPackage : PackageDefinition

public override void BuildPackage()
{
Console.WriteLine($"Building package from {PackageSource}");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment line will log Building package from when PackageSource Is null or empty, and then line 112 will log Building package again, but only when PackageSource ends with .nuspec?

if (string.IsNullOrEmpty(PackageSource))
_context.NuGetPack(NuGetPackSettings);
else if (PackageSource.EndsWith(".nuspec"))
{
Console.WriteLine("Building Package");
_context.NuGetPack(PackageSource, NuGetPackSettings);
}
else if (PackageSource.EndsWith(".csproj"))
_context.MSBuild(PackageSource,
new MSBuildSettings
Expand Down
2 changes: 1 addition & 1 deletion recipe/versioning.cake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class BuildVersion
// NOTE: This is complicated because (1) the user may have specified
// the package version on the command-line and (2) GitVersion may
// or may not be available. We'll work on solving (2) by getting
// GitVersion to run for us on Linux, but (1) will alwas remain.
// GitVersion to run for us on Linux, but (1) will always remain.
//
// We simplify things a by figuring out the full package version and
// then parsing it to provide information that is used in the build.
Expand Down
Loading