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
Copy file name to clipboardExpand all lines: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,30 @@ Create .NET and other projects from NetCoreTemplates GitHub repositories.
5
5
##Usage
6
6
7
7
```bash
8
-
npx create-net<repo><ProjectName>
8
+
npx create-net<repo>[ProjectName]
9
9
```
10
10
11
+
If`ProjectName` is not specified, the script will use the current directory name and extract the template into the current directory (which must be empty).
12
+
11
13
###Examples
12
14
13
-
**Create a projectfrom NetCoreTemplates organization:**
15
+
**Create a projectin a new directory:**
14
16
15
17
```bash
16
18
npx create-net nextjs MyProject
17
19
```
18
20
19
-
This downloads from:`https://github.com/NetCoreTemplates/nextjs`
21
+
This downloads from:`https://github.com/NetCoreTemplates/nextjs` and creates a`MyProject` folder.
22
+
23
+
**Create a project in the current directory:**
24
+
25
+
```bash
26
+
mkdir my-project
27
+
cd my-project
28
+
npx create-net nextjs
29
+
```
30
+
31
+
This uses the current directory name (`my-project`) and extracts the template into the current directory.
20
32
21
33
**Create a project from a different organization:**
22
34
@@ -29,8 +41,8 @@ This downloads from: `https://github.com/NetFrameworkTemplates/web-netfx`
29
41
##What it does
30
42
31
43
1.**Downloads** the GitHub repository archive from the specified repository
32
-
2.**Extracts** the archive into a folder named`<ProjectName>`
33
-
3.**Replaces** all variations of`MyApp` with variations of your`<ProjectName>`:
44
+
2.**Extracts** the archive into a folder named`<ProjectName>` (or current directory if no ProjectName specified)
45
+
3.**Replaces** all variations of`MyApp` with variations of your`<ProjectName>` (or current directory name):