Skip to content

Commit 329aeff

Browse files
committed
tmp
1 parent da2ea1f commit 329aeff

File tree

15 files changed

+84
-84
lines changed

15 files changed

+84
-84
lines changed

docs/02-fundamentals/05-targets.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Target Definitions
33
---
44

5-
Inside a `Build` class, you can define your build steps as `Target` properties. The implementation for a build step is provided as a lambda function through the `Executes` method:
5+
Inside a `Build` class, you can define your build steps as `TargetX` properties. The implementation for a build step is provided as a lambda function through the `Executes` method:
66

77
<Tabs>
88
<TabItem value="regular" label="Regular Targets">
@@ -12,7 +12,7 @@ class Build : NukeBuild
1212
{
1313
public static int Main() => Execute<Build>();
1414

15-
Target MyTarget => _ => _
15+
TargetX MyTargetX => _ => _
1616
.Executes(() =>
1717
{
1818
Console.WriteLine("Hello!");
@@ -29,7 +29,7 @@ class Build : NukeBuild
2929
{
3030
public static int Main() => Execute<Build>();
3131

32-
Target MyTarget => _ => _
32+
TargetX MyTargetX => _ => _
3333
.Executes(async () =>
3434
{
3535
await Console.Out.WriteLineAsync("Hello!");
@@ -58,13 +58,13 @@ Define that target `A` must run before target `B` unless `A` is skipped:
5858
```csharp title="Build.cs"
5959
class Build : NukeBuild
6060
{
61-
Target A => _ => _
61+
TargetX A => _ => _
6262
// highlight-start
6363
.DependentFor(B) // Choose this...
6464
// highlight-end
6565
.Executes(() => { });
6666

67-
Target B => _ => _
67+
TargetX B => _ => _
6868
// highlight-start
6969
.DependsOn(A) // ...or this!
7070
// highlight-end
@@ -82,13 +82,13 @@ Define that target `A` runs before target `B` if both are scheduled:
8282
```csharp title="Build.cs"
8383
class Build : NukeBuild
8484
{
85-
Target A => _ => _
85+
TargetX A => _ => _
8686
// highlight-start
8787
.Before(B) // Choose this...
8888
// highlight-end
8989
.Executes(() => { });
9090

91-
Target B => _ => _
91+
TargetX B => _ => _
9292
// highlight-start
9393
.After(A) // ...or this!
9494
// highlight-end
@@ -107,13 +107,13 @@ Define that target `A` invokes target `B` once it completes:
107107
```csharp title="Build.cs"
108108
class Build : NukeBuild
109109
{
110-
Target A => _ => _
110+
TargetX A => _ => _
111111
// highlight-start
112112
.Triggers(B) // Choose this...
113113
// highlight-end
114114
.Executes(() => { });
115115

116-
Target B => _ => _
116+
TargetX B => _ => _
117117
// highlight-start
118118
.TriggeredBy(A) // ...or this!
119119
// highlight-end
@@ -141,13 +141,13 @@ The execution is nondeterministic between `A->B->C` and `B->A->C`. This isn't ne
141141
```csharp title="Build.cs"
142142
class Build : NukeBuild
143143
{
144-
Target A => _ => _
144+
TargetX A => _ => _
145145
.Executes(() => { });
146146

147-
Target B => _ => _
147+
TargetX B => _ => _
148148
.Executes(() => { });
149149

150-
Target C => _ => _
150+
TargetX C => _ => _
151151
// highlight-start
152152
.DependsOn(A, B)
153153
// highlight-end
@@ -163,16 +163,16 @@ The execution is always deterministic with `A->B->C`.
163163
```csharp title="Build.cs"
164164
class Build : NukeBuild
165165
{
166-
Target A => _ => _
166+
TargetX A => _ => _
167167
.Executes(() => { });
168168

169-
Target B => _ => _
169+
TargetX B => _ => _
170170
// highlight-start
171171
.DependsOn(A)
172172
// highlight-end
173173
.Executes(() => { });
174174

175-
Target C => _ => _
175+
TargetX C => _ => _
176176
// highlight-start
177177
.DependsOn(B)
178178
// highlight-end
@@ -199,10 +199,10 @@ class Build : NukeBuild
199199
{
200200
readonly List<string> Data = new();
201201

202-
Target A => _ => _
202+
TargetX A => _ => _
203203
.Executes(() => { /* Populate Data */ });
204204

205-
Target B => _ => _
205+
TargetX B => _ => _
206206
.DependsOn(A)
207207
// highlight-start
208208
.OnlyWhenDynamic(() => Data.Any())
@@ -219,10 +219,10 @@ Define a condition that is checked before target `A` and `B` execute:
219219
```csharp
220220
class Build : NukeBuild
221221
{
222-
Target A => _ => _
222+
TargetX A => _ => _
223223
.Executes(() => { });
224224

225-
Target B => _ => _
225+
TargetX B => _ => _
226226
// highlight-start
227227
.OnlyWhenStatic(() => IsLocalBuild)
228228
// By default, dependencies are skipped
@@ -247,7 +247,7 @@ You can define target requirements that are checked right at the beginning of th
247247
```csharp
248248
class Build : NukeBuild
249249
{
250-
Target A => _ => _
250+
TargetX A => _ => _
251251
// highlight-start
252252
.Requires(() => IsServerBuild)
253253
// highlight-end
@@ -275,7 +275,7 @@ Define that execution continues after target `A` throws:
275275
```csharp
276276
class Build : NukeBuild
277277
{
278-
Target A => _ => _
278+
TargetX A => _ => _
279279
// highlight-start
280280
.ProceedAfterFailure()
281281
// highlight-end
@@ -284,7 +284,7 @@ class Build : NukeBuild
284284
Assert.Fail("error");
285285
});
286286

287-
Target B => _ => _
287+
TargetX B => _ => _
288288
.DependsOn(A)
289289
.Executes(() => { });
290290
}
@@ -298,13 +298,13 @@ Define that target `B` executes even if another target fails:
298298
```csharp
299299
class Build : NukeBuild
300300
{
301-
Target A => _ => _
301+
TargetX A => _ => _
302302
.Executes(() =>
303303
{
304304
Assert.Fail("error");
305305
});
306306

307-
Target B => _ => _
307+
TargetX B => _ => _
308308
// highlight-start
309309
.AssuredAfterFailure()
310310
// highlight-end
@@ -323,7 +323,7 @@ It is good practice to follow the [single-responsibility principle](https://en.w
323323
```csharp
324324
class Build : NukeBuild
325325
{
326-
Target A => _ => _
326+
TargetX A => _ => _
327327
// highlight-start
328328
.Unlisted()
329329
// highlight-end

docs/02-fundamentals/06-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ You can specify a parameter as a [target requirement](../02-fundamentals/05-targ
9191

9292
<!-- snippet: parameters-requirements -->
9393
```cs
94-
Target Deploy => _ => _
94+
TargetX Deploy => _ => _
9595
.Requires(() => ApiKey)
9696
.Executes(() =>
9797
{
@@ -141,7 +141,7 @@ Parameters **support a wide range of primitive and complex types**, including th
141141
[Parameter] readonly Configuration Configuration;
142142
[Parameter] readonly AbsolutePath AbsolutePath;
143143

144-
Target Print => _ => _
144+
TargetX Print => _ => _
145145
.Executes(() =>
146146
{
147147
Log.Information("StringValue = {Value}", StringValue);

docs/03-common/05-repository.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can use the `GitRepositoryAttribute` on a `GitRepository` field or property,
1010
```cs
1111
[GitRepository] readonly GitRepository Repository;
1212

13-
Target Print => _ => _
13+
TargetX Print => _ => _
1414
.Executes(() =>
1515
{
1616
Log.Information("Commit = {Value}", Repository.Commit);
@@ -36,13 +36,13 @@ Repository insights allow you to design your targets in a flexible manner using
3636
[GitRepository] readonly GitRepository Repository;
3737
string OriginalRepositoryUrl => "https://github.com/nuke-build/nuke";
3838

39-
Target Deploy => _ => _
39+
TargetX Deploy => _ => _
4040
.Requires(() => Repository.IsOnMainOrMasterBranch());
4141

42-
Target CheckMilestone => _ => _
42+
TargetX CheckMilestone => _ => _
4343
.OnlyWhenStatic(() => Repository.HttpsUrl.EqualsOrdinalIgnoreCase(OriginalRepositoryUrl));
4444

45-
Target Hotfix => _ => _
45+
TargetX Hotfix => _ => _
4646
.Executes(() =>
4747
{
4848
if (Repository.IsOnHotfixBranch())

docs/03-common/06-versioning.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ nuke :add-package GitVersion.Tool
2424
[GitVersion]
2525
readonly GitVersion GitVersion;
2626

27-
Target Print => _ => _
27+
TargetX Print => _ => _
2828
.Executes(() =>
2929
{
3030
Log.Information("GitVersion = {Value}", GitVersion.MajorMinorPatch);
@@ -47,7 +47,7 @@ nuke :add-package Nerdbank.GitVersioning
4747
[NerdbankGitVersioning]
4848
readonly NerdbankGitVersioning NerdbankVersioning;
4949

50-
Target Print => _ => _
50+
TargetX Print => _ => _
5151
.Executes(() =>
5252
{
5353
Log.Information("NerdbankVersioning = {Value}", NerdbankVersioning.SimpleVersion);
@@ -70,7 +70,7 @@ nuke :add-package Octopus.OctoVersion.Tool
7070
[OctoVersion]
7171
readonly OctoVersionInfo OctoVersionInfo;
7272

73-
Target Print => _ => _
73+
TargetX Print => _ => _
7474
.Executes(() =>
7575
{
7676
Log.Information("OctoVersionInfo = {Value}", OctoVersionInfo.MajorMinorPatch);
@@ -93,7 +93,7 @@ nuke :add-package minver-cli
9393
[MinVer]
9494
readonly MinVer MinVer;
9595

96-
Target Print => _ => _
96+
TargetX Print => _ => _
9797
.Executes(() =>
9898
{
9999
Log.Information("MinVer = {Value}", MinVer.Version);
@@ -120,7 +120,7 @@ When your versioning is affected by external dependencies, NUKE provides another
120120
IncludePrerelease = true)]
121121
readonly NuGetVersion ReSharperVersion;
122122

123-
Target Print => _ => _
123+
TargetX Print => _ => _
124124
.Executes(() =>
125125
{
126126
Log.Information("ReSharperVersion = {Value}", ReSharperVersion);
@@ -136,7 +136,7 @@ Target Print => _ => _
136136
Pattern = @"v?(?<version>\d+\.\d+(?:\.\d+)?(?:\.\d+)?(?:-\w+)?)")] // default pattern
137137
readonly string GradlePluginVersion;
138138

139-
Target Print => _ => _
139+
TargetX Print => _ => _
140140
.Executes(() =>
141141
{
142142
Log.Information("GradlePluginVersion = {Value}", GradlePluginVersion);
@@ -152,7 +152,7 @@ Target Print => _ => _
152152
package: "rd-gen")]
153153
readonly string RdGenVersion;
154154

155-
Target Print => _ => _
155+
TargetX Print => _ => _
156156
.Executes(() =>
157157
{
158158
Log.Information("RdGenVersion = {Value}", RdGenVersion);
@@ -169,7 +169,7 @@ Target Print => _ => _
169169
artifactId: "org.jetbrains.kotlin.jvm.gradle.plugin")]
170170
readonly string KotlinJvmVersion;
171171

172-
Target Print => _ => _
172+
TargetX Print => _ => _
173173
.Executes(() =>
174174
{
175175
Log.Information("KotlinJvmVersion = {Value}", KotlinJvmVersion);

docs/03-common/07-solution-project-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The easiest way to load your solution is to create a new `Solution` field, add t
1212
[Solution]
1313
readonly Solution Solution;
1414

15-
Target Print => _ => _
15+
TargetX Print => _ => _
1616
.Executes(() =>
1717
{
1818
Log.Information("Solution path = {Value}", Solution);

docs/03-common/11-chats.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can send a [Slack](https://slack.com/) messages as follows:
1414
1515
[Parameter] [Secret] readonly string SlackWebhook;
1616

17-
Target Send => _ => _
17+
TargetX Send => _ => _
1818
.Executes(async () =>
1919
{
2020
await SendSlackMessageAsync(_ => _
@@ -37,7 +37,7 @@ You can send a [Microsoft Teams](https://www.microsoft.com/en/microsoft-teams/gr
3737
3838
[Parameter] [Secret] readonly string TeamsWebhook;
3939

40-
Target Send => _ => _
40+
TargetX Send => _ => _
4141
.Executes(async () =>
4242
{
4343
await SendTeamsMessageAsync(_ => _
@@ -59,7 +59,7 @@ You can send a [Twitter](https://twitter.com/) messages as follows:
5959
[Parameter] [Secret] readonly string TwitterAccessToken;
6060
[Parameter] [Secret] readonly string TwitterAccessTokenSecret;
6161

62-
Target Send => _ => _
62+
TargetX Send => _ => _
6363
.Executes(async () =>
6464
{
6565
await SendTweetAsync(
@@ -86,7 +86,7 @@ You can send a [Gitter](https://gitter.im/) messages as follows:
8686
[Parameter] readonly string GitterRoomId;
8787
[Parameter] [Secret] readonly string GitterAuthToken;
8888

89-
Target Send => _ => _
89+
TargetX Send => _ => _
9090
.Executes(() =>
9191
{
9292
SendGitterMessage(

0 commit comments

Comments
 (0)