Skip to content
Merged
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
6 changes: 3 additions & 3 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@
"Name": {
"type": "string"
},
"NugetApiKey": {
"NuGetApiKey": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"NugetApiUrl": {
"NuGetApiUrl": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
Expand Down Expand Up @@ -168,7 +168,7 @@
"TestResults": {
"type": "boolean"
},
"UnlistNuget": {
"UnlistNuGet": {
"type": "boolean"
}
}
Expand Down
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Build : NukeBuild, IPublishPack, ICompileExample, ITest, IShowGitVersion,
{
public void ReleaseAsset(ReleaseAssets releaseAssets) { }
IAssetRelease IHazAssetRelease.AssetRelease => new AssetRelease();
//bool IPack.UnlistNuget => true;
//bool IPack.UnlistNuGet => true;
bool ITest.TestBuildStopWhenFailed => false;
public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
}
2 changes: 1 addition & 1 deletion Build/ILocalAssetRelease.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AssetRelease : IAssetRelease
{
public void ReleaseAsset(ReleaseAssets releaseAssets)
{
Serilog.Log.Information($"Project: {releaseAssets.Project.Name}");
Serilog.Log.Information($"Project: {releaseAssets.Project?.Name}");
Serilog.Log.Information($"Version: {releaseAssets.Version}");
Serilog.Log.Information($"Notes: {releaseAssets.Notes}");
Serilog.Log.Information($"Prerelease: {releaseAssets.Prerelease}");
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.9.3] / 2025-03-20
### Updated
- Update `MainProject` to exception and message when null.

## [1.9.2] / 2025-01-19
### Updated
- Add `NuGetTasks` delete, sign and verify.
Expand Down Expand Up @@ -400,6 +404,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- First Release

[vNext]: ../../compare/1.0.0...HEAD
[1.9.3]: ../../compare/1.9.2...1.9.3
[1.9.2]: ../../compare/1.9.1...1.9.2
[1.9.1]: ../../compare/1.9.0...1.9.1
[1.9.0]: ../../compare/1.8.2...1.9.0
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.9.2</Version>
<Version>1.9.3</Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion ricaun.Nuke/Components/IHazMainProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface IHazMainProject : IHazSolution, INukeBuild
/// <summary>
/// MainProject (default: <seealso cref="MainName"/>)
/// </summary>
public Project MainProject => Solution.GetOtherProject(MainName);
public Project MainProject => Solution.GetOtherProject(MainName) ?? throw new System.Exception($"{nameof(MainProject)} is null using '{MainName}', use 'string {nameof(IHazMainProject)}.{nameof(MainName)} => \"YourMainProjectName\"'.");

/// <summary>
/// MainProject (default: <seealso cref="MainName"/>)
Expand Down
Loading