You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function is a wrapper around the dotnet.exe application with the parameter 'new'.
9
+
It can be used to create projects from templates, as well as to administrate templates.
10
+
11
+
.PARAMETERTemplateName
12
+
The name of the template to create
13
+
14
+
.PARAMETERList
15
+
List the existing templates.
16
+
17
+
.PARAMETERHelp
18
+
Ask for help / documentation.
19
+
Particularly useful when dealing with project types that have a lot of options.
20
+
21
+
.PARAMETERForce
22
+
Overwrite existing files.
23
+
24
+
.PARAMETERName
25
+
The name of the project to create
26
+
27
+
.PARAMETEROutput
28
+
The folder in which to create it.
29
+
Note: This folder will automatically be te root folder of the project.
30
+
If this folder doesn't exist yet, it will be created.
31
+
When used with -Force, it will automatically purge all contents.
32
+
33
+
.PARAMETERInstall
34
+
Install the specified template from the VS marketplace.
35
+
36
+
.PARAMETERUninstall
37
+
Uninstall an installed template.
38
+
39
+
.PARAMETERArguments
40
+
Additional arguments to pass to the application.
41
+
Generally used for parameters when creating a project from a template.
42
+
43
+
.PARAMETERConfirm
44
+
If this switch is enabled, you will be prompted for confirmation before executing any operations that change state.
45
+
46
+
.PARAMETERWhatIf
47
+
If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run.
48
+
49
+
.EXAMPLE
50
+
PS C:\> dotnetnew -l
51
+
52
+
Lists all installed templates.
53
+
54
+
.EXAMPLE
55
+
PS C:\> dotnetnew mvc foo F:\temp\projects\foo -au Windows --no-restore
56
+
57
+
Creates a new MVC project named "foo" in folder "F:\Temp\projects\foo"
58
+
- It will set authentication to windows
59
+
- It will skip the automatic restore of the project on create
Register-PSFTaskEngineTask-Name "psmd_dotNetTemplateCache"-ScriptBlock $scriptBlock-Priority Low -Once -Description "Builds up the cache of installable templates for dotnet"
0 commit comments