-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathProgram.cs
More file actions
34 lines (29 loc) · 912 Bytes
/
Copy pathProgram.cs
File metadata and controls
34 lines (29 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Build.Core;
using Build.Core.Targets;
DI.Setup(nameof(Composition))
.Hint(Hint.ThreadSafe, "Off")
.Hint(Hint.Resolve, "Off")
.Root<RootTarget>(nameof(Composition.Root))
.PerResolve<RootCommand, Settings>()
.Bind<ITeamCityArtifactsWriter>().To(_ => GetService<ITeamCityWriter>())
.Transient(_ => GetService<INuGet>())
.PerBlock<DotNetEnv>()
// Targets
.Singleton<
GeneratorTarget,
LibrariesTarget,
CompatibilityCheckTarget,
PackTarget,
CreateExamplesTarget,
ReadmeTarget,
ReleasesTarget,
TestExamplesTarget,
BenchmarksTarget,
DeployTarget,
TemplateTarget,
InstallTemplateTarget,
UpdateTarget,
PublishBlazorTarget,
PerformanceTestsTarget,
AIContextTarget>(Tag.Type);
return await new Composition().Root.RunAsync(CancellationToken.None);