Skip to content

Preparing for release 1.6.0#103

Closed
CharliePoole wants to merge 1 commit into
mainfrom
release-1.6.0
Closed

Preparing for release 1.6.0#103
CharliePoole wants to merge 1 commit into
mainfrom
release-1.6.0

Conversation

@CharliePoole
Copy link
Copy Markdown
Member

No description provided.

Comment thread recipe/nuget-package.cake

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?

Comment thread recipe/nuget-package.cake
Comment on lines +108 to 128
Console.WriteLine($"Building package from {PackageSource}");
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
{
Target = "pack",
Verbosity = BuildSettings.MSBuildVerbosity,
Configuration = BuildSettings.Configuration,
PlatformTarget = PlatformTarget.MSIL,
//AllowPreviewVersion = BuildSettings.MSBuildAllowPreviewVersion
}.WithProperty("Version", PackageVersion));
else
throw new ArgumentException(
$"Invalid package source specified: {PackageSource}", "source");
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.

Suggested change
if (string.IsNullOrEmpty(PackageSource))
{
Console.WriteLine($"Building package with no source");
_context.NuGetPack(NuGetPackSettings);
}
else if (PackageSource.EndsWith(".nuspec"))
{
Console.WriteLine("Building Package from spec {PackageSource}");
_context.NuGetPack(PackageSource, NuGetPackSettings);
}
else if (PackageSource.EndsWith(".csproj"))
{
Console.WriteLine("Building Package from project {PackageSource}");
_context.MSBuild(PackageSource,
new MSBuildSettings
{
Target = "pack",
Verbosity = BuildSettings.MSBuildVerbosity,
Configuration = BuildSettings.Configuration,
PlatformTarget = PlatformTarget.MSIL,
//AllowPreviewVersion = BuildSettings.MSBuildAllowPreviewVersion
}.WithProperty("Version", PackageVersion));
}
else
throw new ArgumentException(
$"Invalid package source specified: {PackageSource}", "source");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@veleek Thanks for the review... I got it after merging but I had already made a similar change.

FYI... MyGet is broken or at least seriously unresponsive and causing a lot of failures. The CI build for the pull you reviewed failed for that reason. Consequently, I'm doing a lot of updates by passing the normal process with the aim of eliminating use of MyGet entirely. Betas and higher releases go to nuget.org which is extremely reliable.

It's rare for anyone to review the recipe updates. So double thanks!

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.

No worries, I don't have much time to spend on this stuff, but I've been working through some NUnit issues so I felt like I could justify spending some time looking at NUnit code. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants