FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RevitDevTool/build/Program.cs at develop · trgiangv/RevitDevTool · GitHub
trgiangv
/
RevitDevTool
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
13
Code
Pull requests
0
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RevitDevTool
/
build
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (34 loc) · 1.25 KB
Breadcrumbs
RevitDevTool
/
build
/
Program.cs
Copy path
File metadata and controls
42 lines (34 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
35
36
37
38
39
40
41
42
using
Build
.
Modules
;
using
Build
.
Options
;
using
Microsoft
.
Extensions
.
Configuration
;
using
Microsoft
.
Extensions
.
DependencyInjection
;
using
ModularPipelines
;
using
ModularPipelines
.
Extensions
;
var
builder
=
Pipeline
.
CreateBuilder
(
)
;
builder
.
Configuration
.
AddJsonFile
(
"appsettings.json"
)
;
builder
.
Configuration
.
AddUserSecrets
<
Program
>
(
)
;
builder
.
Configuration
.
AddEnvironmentVariables
(
)
;
builder
.
Services
.
AddOptions
<
BuildOptions
>
(
)
.
Bind
(
builder
.
Configuration
.
GetSection
(
"Build"
)
)
;
builder
.
Services
.
AddOptions
<
BundleOptions
>
(
)
.
Bind
(
builder
.
Configuration
.
GetSection
(
"Bundle"
)
)
;
builder
.
Services
.
AddOptions
<
PublishOptions
>
(
)
.
Bind
(
builder
.
Configuration
.
GetSection
(
"Publish"
)
)
;
if
(
args
.
Length
==
0
)
{
builder
.
Services
.
AddModule
<
CompileProjectModule
>
(
)
;
builder
.
Services
.
AddModule
<
PublishDaemonModule
>
(
)
;
builder
.
Services
.
AddModule
<
PublishTestRunnerModule
>
(
)
;
}
if
(
args
.
Contains
(
"test"
)
)
{
builder
.
Services
.
AddModule
<
TestProjectModule
>
(
)
;
}
if
(
args
.
Contains
(
"pack"
)
)
{
builder
.
Services
.
AddModule
<
CleanProjectModule
>
(
)
;
builder
.
Services
.
AddModule
<
CreateBundleModule
>
(
)
;
builder
.
Services
.
AddModule
<
CreateInstallerModule
>
(
)
;
}
if
(
args
.
Contains
(
"publish"
)
)
{
builder
.
Services
.
AddModule
<
PublishGithubModule
>
(
)
;
}
await
builder
.
Build
(
)
.
RunAsync
(
)
;
Back
|
FazBrowse Home
|
New Git URL