CDF.NukeBuilder
1.0.7
dotnet add package CDF.NukeBuilder --version 1.0.7
NuGet\Install-Package CDF.NukeBuilder -Version 1.0.7
<PackageReference Include="CDF.NukeBuilder" Version="1.0.7" />
<PackageVersion Include="CDF.NukeBuilder" Version="1.0.7" />
<PackageReference Include="CDF.NukeBuilder" />
paket add CDF.NukeBuilder --version 1.0.7
#r "nuget: CDF.NukeBuilder, 1.0.7"
#:package CDF.NukeBuilder@1.0.7
#addin nuget:?package=CDF.NukeBuilder&version=1.0.7
#tool nuget:?package=CDF.NukeBuilder&version=1.0.7
<h3 align="center"><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1704928660200/677bbb2f-57e7-4ea0-84dd-2a4d4c61fb5d.png?w=1600&h=840&fit=crop&crop=entropy&auto=compress,format&format=webp" width="500px" border="0"></h3>
easily Debloy with our NukeBuilder
how to make New release:
Increment version and change ReleaseNotes in CDF.Common.UI ( can be changed by editing csproj file directly or through visual studio : r.click on file then choose **Properties ⇒ package ⇒ general ⇒ Package Version / Release notes **) then Append your changes to changelog.md in CDF.Common.UI.nuget
Installation
First make sure that you are connected to our feed. Read how to consume our NugetPackages Here <br> For latest version.
<PackageReference Include="CDF.NukeBuilder" Version="*"/>
<PackageReference Include="NuGet.CommandLine" Version="*" PrivateAssets="All" /> //need this to be able run installer workflow
Features
Table of contents
<a id="PackageBuilder">Package Builder</a>
Easy to configure and use package builder for your projects.
public class Build : PackageBuilder
{
public static int Main()
{
return Execute<Build>(x => x.NuGetPush);
}
#region Fields
[Parameter]
bool IsToPublish;
[Parameter]
[Secret]
readonly string PatKey;
[Parameter]
[Secret]
readonly string FeedUserName;
[Solution(GenerateProjects = true)]
readonly Solution Solution;
protected override Nuke.Common.ProjectModel.Solution CurrentSolution => Solution;
#endregion
#region Properties
#endregion
#region Constructors
#endregion
#region Methods
public override Target MainBuildInitialization => _ => _
.Requires(() => FeedUserName)
.Requires(() => PatKey)
.Executes(() =>
{
Log.Information(">>> Running MainBuildInitialization...");
WorkflowConfiguration = new PackageBuilderBuildWorkflowBuildConfiguration(
GetAppCommandsProjects(FolderPaths)
, GlobalReleaseBuildConfigurations()
, IsToPublish
, new ArtifactsConfiguration(PatKey, FeedUserName));
});
List<Project> GetAppCommandsProjects(PackageBuilderFolderPathsConfiguration folderPaths)
{
return new List<Project>
{
Solution.CDF_Common_UI,
};
}
#endregion
}
<a id="InstallerBuild">InstallerBuild</a>
public class Build : InstallerBuild
{
public static int Main()
{
return Execute<Build>(x => x.PublishArtifacts);
}
#region Fields
[Parameter]
bool IsToPublish;
[Parameter]
[Secret]
readonly string PatKey;
[Parameter]
[Secret]
readonly string FeedUserName;
[Solution(GenerateProjects = true)]
readonly Solution Solution;
protected override Nuke.Common.ProjectModel.Solution CurrentSolution => Solution;
#endregion
#region Properties
#endregion
#region Constructors
#endregion
#region Methods
public override Target MainBuildInitialization => _ => _
.Requires(() => FeedUserName)
.Requires(() => PatKey)
.Executes(() =>
{
Log.Information(">>> Running MainBuildInitialization...");
WorkflowConfiguration = new PackageBuilderBuildWorkflowBuildConfiguration(
GetAppCommandsProjects(FolderPaths)
, GlobalReleaseBuildConfigurations()
, IsToPublish
, new ArtifactsConfiguration(PatKey, FeedUserName));
});
Dictionary<Project, InstallerConfiguration> GetAppCommandsProjects(InstallationFolderPathsConfiguration folderPaths)
{
string pluginPath = @"%AppData%\Autodesk\ApplicationPlugins";
return new Dictionary<Project, InstallerConfiguration>
{
{
Solution.AppCommands.AppCommand_GeneralTab,
new InstallerConfiguration()
{
InstallerVersion = new Version(1,0,0,0),
Guid = new Guid("D48CBE74-9997-438D-A3C9-2950C8D6059E"),
OutDir= folderPaths.ArtifactsDirectory ,
SingleUserInstallDir=Path.Combine(pluginPath,"C3DGeneralTools.Bundle"),
BuildMultiUserInstaller = false,
ProjectName = "C3DGeneralTools",
MainInputRootDirectory = folderPaths.ArtifactsDirectory / $"{Solution.AppCommands.AppCommand_GeneralTab.Name}",
OutputName="C3D General Tools"
}
},
};
}
#endregion
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Common.PortableWixInstallerInput (>= 1.0.4)
- NuGet.Configuration (>= 6.14.0)
- NuGet.Protocol (>= 6.14.0)
- Nuke.Common (>= 9.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
**Version 1.0.7**
- fix serialization