generated from dailydevops/dotnet-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
new-project.ps1
50 lines (42 loc) · 1.21 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
[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
)
. .\eng\scripts\new-project.ps1
New-Project `
-ProjectName $ProjectName `
-ProjectType $ProjectType `
-Framework $Framework `
-DisableTests $DisableTests `
-DisableUnitTests $DisableUnitTests `
-DisableIntegrationTests $DisableIntegrationTests `
-SolutionFile "./Extensions.Strings.sln" `
-OutputDirectory (Get-Location) `
-EnableProjectGrouping $EnableProjectGrouping