Skip to content

Commit

Permalink
Updated nuke.
Browse files Browse the repository at this point in the history
  • Loading branch information
seayxu committed Dec 20, 2023
1 parent e6bdc1e commit 9977fa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/version.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project>
<PropertyGroup Condition="'$(AssemblyName)'=='Hsu.Sg.Sync'">
<Version>2023.412.14.1</Version>
<FileVersion>2023.412.14.0</FileVersion>
<Version>2023.412.20</Version>
<FileVersion>2023.412.20.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(AssemblyName)'=='Hsu.Sg.Proxy'">
<Version>2023.412.12</Version>
<FileVersion>2023.412.12.0</FileVersion>
<Version>2023.412.20</Version>
<FileVersion>2023.412.20.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(AssemblyName)'=='Hsu.Sg.FluentMember'">
<Version>2023.412.13</Version>
<FileVersion>2023.412.13.0</FileVersion>
<Version>2023.412.20</Version>
<FileVersion>2023.412.20.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions nuke/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ partial class Build : NukeBuild

AbsolutePath SourceDirectory => RootDirectory / "src";
AbsolutePath OutputDirectory => RootDirectory / "output";
AbsolutePath LibraryDirectory => OutputDirectory / "libs";
AbsolutePath ArtifactsDirectory => RootDirectory / "artifacts";

Dictionary<string, string> versions;
Expand Down Expand Up @@ -76,6 +77,7 @@ protected override void OnBuildInitialized()
{
SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(x => x.DeleteDirectory());
OutputDirectory.CreateOrCleanDirectory();
LibraryDirectory.CreateOrCleanDirectory();
ArtifactsDirectory.CreateOrCleanDirectory();
});

Expand Down Expand Up @@ -114,6 +116,7 @@ protected override void OnBuildInitialized()
DotNetBuild(p => p
.SetProjectFile(project)
.SetConfiguration(Configuration)
.SetOutputDirectory(LibraryDirectory)
.SetVersion(version)
//.SetPackageDirectory(ArtifactsDirectory)
.EnableContinuousIntegrationBuild()
Expand Down

0 comments on commit 9977fa4

Please sign in to comment.