Skip to content

Commit

Permalink
Included docs to NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
guryanovev committed May 29, 2023
1 parent 8672e80 commit 0c652ae
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
using System.Reflection;

[assembly: AssemblyProductAttribute("CrystalQuartz")]
[assembly: AssemblyVersionAttribute("7.0.0.22")]
[assembly: AssemblyFileVersionAttribute("7.0.0.22")]
[assembly: AssemblyVersionAttribute("7.0.0.25")]
[assembly: AssemblyFileVersionAttribute("7.0.0.25")]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<PackageId>$(AssemblyName)</PackageId>
<CodeAnalysisRuleSet>../../common.ruleset</CodeAnalysisRuleSet>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
36 changes: 24 additions & 12 deletions src/CrystalQuartz.Build/Extensions/SpecInputExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,30 @@ public static GenerateNuGetSpecTask FillCommonProperties(
{
IFile logoFile = solutionDir/"assets"/"logo.png";

return libBinaries.Aggregate(
input
.Version(version)
.Authors("Eugene Guryanov")
.Owners("Eugene Guryanov")
.LicenseUrl("https://github.com/guryanovev/CrystalQuartz/blob/master/LICENCE.txt")
.ProjectUrl("https://github.com/guryanovev/CrystalQuartz")
.Tags(".NET", "ASP.NET", "Quartz.NET", "Scheduler", "Job", "Trigger")
.WithDependenciesFromPackagesConfig(dependenciesProject, ignoreFrameworkVersion: true)
.WithFile(logoFile, "images"),

(x, file) => x.WithFile(file.File.GetRelativePath(dependenciesProject.Parent.Parent/"Artifacts"), "lib/" + file.TargetVersion));
return libBinaries
.Concat(
libBinaries
.Select(libFile =>
{
IFile xmlDocFile = libFile.File.Directory / (libFile.File.NameWithoutExtension + ".xml");
return new TargetedFile(xmlDocFile, libFile.TargetVersion);
})
.Where(targetFile => targetFile.File.Exists))
.Aggregate(
input
.Version(version)
.Authors("Eugene Guryanov")
.Owners("Eugene Guryanov")
.LicenseUrl("https://github.com/guryanovev/CrystalQuartz/blob/master/LICENCE.txt")
.ProjectUrl("https://github.com/guryanovev/CrystalQuartz")
.Tags(".NET", "ASP.NET", "Quartz.NET", "Scheduler", "Job", "Trigger")
.WithDependenciesFromPackagesConfig(dependenciesProject, ignoreFrameworkVersion: true)
.WithFile(logoFile, "images")
,

(x, file) => x.WithFile(
file.File.GetRelativePath(dependenciesProject.Parent.Parent/"Artifacts"), "lib/" + file.TargetVersion));
}
}
}
2 changes: 1 addition & 1 deletion src/CrystalQuartz.Build/Tasks/MergeBinariesTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private ITask<Nothing> CreateMergeTask(string outputDllName, string[] inputAssem
ToolPath = ilMergePackage/"tools"/"ILRepack.exe",

Arguments = string.Format(
"{0}/out:{1} {2}",
"{0}/out:{1} /xmldocs {2}",
libs == null || libs.Length == 0 ? string.Empty : (string.Join(" ", libs.Select(x => "/lib:" + x)) + " "),
bin/(_configuration + "_Merged")/dotNetVersionAlias/outputDllName,
string.Join(" ",
Expand Down
1 change: 1 addition & 0 deletions src/CrystalQuartz.Core/CrystalQuartz.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<CodeAnalysisRuleSet>../../common.ruleset</CodeAnalysisRuleSet>
<LangVersion>8</LangVersion>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\CommonAssemblyInfo.cs">
Expand Down
5 changes: 4 additions & 1 deletion src/CrystalQuartz.Core/Services/IEventsTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{
using CrystalQuartz.Core.Domain.Events;

/// <summary>
/// Describes events transformation service.
/// </summary>
public interface IEventsTransformer
{
/// <summary>
Expand All @@ -10,7 +13,7 @@ public interface IEventsTransformer
/// </summary>
/// <param name="id">new id to assign.</param>
/// <param name="rawEvent">emitted event.</param>
/// <returns></returns>
/// <returns>Transformed event.</returns>
SchedulerEvent Transform(int id, RawSchedulerEvent rawEvent);
}
}
1 change: 1 addition & 0 deletions src/CrystalQuartz.Owin/CrystalQuartz.Owin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RestorePackages>true</RestorePackages>
<OutputPath>..\..\Artifacts\bin\$(Configuration)</OutputPath>
<CodeAnalysisRuleSet>../../common.ruleset</CodeAnalysisRuleSet>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions src/CrystalQuartz.Web/CrystalQuartz.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<CodeAnalysisRuleSet>../../common.ruleset</CodeAnalysisRuleSet>
<LangVersion>8</LangVersion>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0.22
7.0.0.25

0 comments on commit 0c652ae

Please sign in to comment.