generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
new-project.ps1
55 lines (46 loc) · 1.34 KB
/
new-project.ps1
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
43
44
45
46
47
48
49
50
51
52
53
54
55
[CmdletBinding()]
param (
# Parameter help description
[Parameter(Mandatory = $true)]
[String]
$ProjectName,
# Parameter help description
[Parameter(Mandatory = $false)]
[ValidateSet('Library', 'Console', 'WebApi', 'WebApp', 'Function', 'BlazorServer', 'BlazorWasm', 'RazorLibrary', 'xUnit', 'NUnit', 'MSTest', 'Benchmarks')]
[String]
$ProjectType = 'Library',
# Parameter help description
[Parameter(Mandatory = $false)]
[String]
$Framework = 'net7.0',
# Parameter help description
[Parameter(Mandatory = $false)]
[Switch]
$DisableTests,
# Parameter help description
[Parameter(Mandatory = $false)]
[Switch]
$DisableUnitTests,
# Parameter help description
[Parameter(Mandatory = $false)]
[Switch]
$DisableIntegrationTests,
[Parameter(Mandatory = $false)]
[Switch]
$EnableProjectGrouping,
[Parameter(Mandatory = $false)]
[Switch]
$DisableArchitectureTests
)
. .\eng\scripts\new-project.ps1
New-Project `
-ProjectName $ProjectName `
-ProjectType $ProjectType `
-Framework $Framework `
-DisableTests $DisableTests `
-DisableUnitTests $DisableUnitTests `
-DisableIntegrationTests $DisableIntegrationTests `
-SolutionFile "./Http.Correlation.sln" `
-OutputDirectory (Get-Location) `
-EnableProjectGrouping $EnableProjectGrouping `
-DisableArchitectureTests $DisableArchitectureTests