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
@@ -16,7 +16,7 @@ This exercise should take approximately **75** minutes to complete.
16
16
17
17
## Before you start
18
18
19
-
Your lab environment must include the following resources: Python 3.11 or later, Git 2.48 or later, .NET SDK 8.0 or later, Visual Studio Code with the C# Dev Kit and GitHub Copilot Chat extensions, the uv package manager, and access to a GitHub account with GitHub Copilot enabled.
19
+
Your lab environment must include the following resources: Git 2.48 or later, .NET SDK 8.0 or later, Visual Studio Code with the C# Dev Kit and GitHub Copilot Chat extensions, SQL Server 2019 LocalDB, Python 3.11 or later, the uv package manager, and access to a GitHub account with GitHub Copilot enabled.
20
20
21
21
If you're using a local PC as a lab environment for this exercise:
22
22
@@ -40,6 +40,53 @@ If you're using a hosted lab environment for this exercise:
40
40
41
41
If needed, install Git from [git-scm.com](https://git-scm.com/downloads) or your corporate application catalog.
42
42
43
+
1. Ensure that SQL Server 2019 LocalDB is installed:
44
+
45
+
Run the following command in a terminal window to check for LocalDB installation:
46
+
47
+
```powershell
48
+
sqllocaldb info
49
+
```
50
+
51
+
Expected output: List of LocalDB instances or an empty list if none exist. For example:
52
+
53
+
```output
54
+
MSSQLLocalDB
55
+
```
56
+
57
+
If the command fails or LocalDB is not installed, use the following steps to install SQL Server 2019 LocalDB:
58
+
59
+
1. To download the SQL Server 2019 Express edition installer file, open the following link in a browser: https://go.microsoft.com/fwlink/?LinkID=866658
60
+
61
+
1. After the download is complete, open the SQL Server 2019 installer file (for example, `SQL2019-SSEI-Expr.exe`).
62
+
63
+
1. On the SQL Server 2019 installation wizard, select **Download Media**.
64
+
65
+
1. Under **Specify SQL Server installer download**, select the **LocalDB** package, and then select the **Download** button.
66
+
67
+
1. When you see the **Download successful** message, select the **Open folder** button.
68
+
69
+
1. After the download is complete, run the LocalDB installer file (for example, `SqlLocalDB.msi`), and then follow the prompts to complete the installation.
70
+
71
+
1. To verify the installation, open PowerShell or Command Prompt, and then run the following command:
72
+
73
+
```powershell
74
+
sqllocaldb info
75
+
```
76
+
77
+
You should see a list of LocalDB instances (or an empty list if none exist yet). For example:
78
+
79
+
```output
80
+
MSSQLLocalDB
81
+
```
82
+
83
+
If you need to create the default instance of MSSQLLocalDB, run the following commands:
84
+
85
+
```powershell
86
+
sqllocaldb create MSSQLLocalDB
87
+
sqllocaldb start MSSQLLocalDB
88
+
```
89
+
43
90
### Configure your environment
44
91
45
92
1. To ensure that the .NET SDK is configured to use the official NuGet.org repository as a source for downloading and restoring packages:
@@ -100,7 +147,7 @@ Use the following steps to complete this task:
100
147
101
148
You can use a Command Prompt, PowerShell, or Terminal window.
102
149
103
-
1. Ensure that Python 3.11 or later is installed:
150
+
1. Ensure that Python 3.11 or later is installed.
104
151
105
152
GitHub Spec Kit's CLI tool is Python-based and requires Python 3.11+.
106
153
@@ -112,27 +159,34 @@ Use the following steps to complete this task:
112
159
113
160
Required output: **Python 3.11.0** or later.
114
161
115
-
If you need to install Python, download from [python.org](https://www.python.org/downloads/) or use your organization's software distribution system.
162
+
If you need to install Python, you can download the installer from the following URL: [python.org](https://www.python.org/downloads/).
116
163
117
-
1. Ensure that the uv package manager is installed:
164
+
If you're in a corporate environment, you can also use your organization's software distribution system.
118
165
119
-
GitHub Spec Kit uses uv for CLI installation and management.
166
+
1. To install uv using Windows PowerShell, run the following command:
120
167
121
-
- You can install uv by following the instructions at [docs.astral.sh/uv](https://docs.astral.sh/uv/)
You might be prompted to authenticate using your GitHub credentials during the clone operation. You can authenticate using your browser.
310
+
253
311
1. To navigate into your ContosoDashboard directory, enter the following command:
254
312
255
313
```powershell
256
314
cd ContosoDashboard
257
315
```
258
316
317
+
> **IMPORTANT**: GitHub Spec Kit must be initialized in the root directory of your cloned repository.
318
+
259
319
1. To initialize GitHub Spec Kit within your existing project, enter the following command:
260
320
261
321
```powershell
@@ -264,11 +324,11 @@ Use the following steps to complete this task:
264
324
265
325
The command uses the following components:
266
326
267
-
- `--here` - Initializes GitHub Spec Kit in the current directory (existing project).
327
+
- `--here` - Initializes GitHub Spec Kit in the current directory (your existing ContosoDashboard project).
268
328
- `--ai copilot` - Configures the project for GitHub Copilot.
269
329
- `--script ps` - Uses PowerShell scripts (use `--script sh` for bash/zsh on macOS/Linux).
270
330
271
-
> **Note**: If you're using macOS or Linux, replace `--script ps` with `--script sh`.
331
+
If you're using macOS or Linux, replace `--script ps` with `--script sh`.
272
332
273
333
The CLI detects an existing Git repository ("Current directory isn't empty") and ask for confirmation to proceed.
274
334
@@ -294,7 +354,7 @@ Use the following steps to complete this task:
294
354
295
355
1. Open the ContosoDashboard project in Visual Studio Code.
296
356
297
-
For example, enter the following command in the terminal window:
357
+
For example, if the terminal window is still open, you can use the following command to open the project:
298
358
299
359
```powershell
300
360
code .
@@ -334,20 +394,6 @@ Use the following steps to complete this task:
334
394
335
395
Using one of the newer language models might improve the quality of responses. This lab exercise was tested using the GPT-5 and Claude Sonnet 4.5 models. Results were comparable between the two models.
336
396
337
-
1. Ask GitHub Copilot to explain the current project and GitHub Spec Kit files.
338
-
339
-
For example, enter the following prompt in the Chat view:
340
-
341
-
```plaintext
342
-
Review the current codebase. Explain the ContosoDashboard application features and the purpose of the GitHub Spec Kit files located under the .github\ and .specify\ directories.
343
-
```
344
-
345
-
1. Take a couple minutes to review GitHub Copilot's response.
346
-
347
-
GitHub Copilot's response should summarize the application features and explain the purpose of the GitHub Spec Kit files.
348
-
349
-
You can also review the project's README.md file for a description of the current application features, mock authentication system, and security implementation.
350
-
351
397
1. In the Chat view, to verify that GitHub Spec Kit commands are available, type **/speckit**
352
398
353
399
You should see autocomplete suggestions that show the available commands:
@@ -371,6 +417,30 @@ Use the following steps to complete this task:
371
417
- **Git clone errors**: Verify that you're signed in to GitHub, and that you have access to your imported repository.
372
418
- **GitHub Spec Kit commands not appearing**: Ensure `.github/prompts/` exists in your workspace root. Try reloading Visual Studio Code.
373
419
420
+
1. Ask GitHub Copilot to explain the current project and GitHub Spec Kit files.
421
+
422
+
For example, enter the following prompt in the Chat view:
423
+
424
+
```plaintext
425
+
Review the current codebase. Explain the ContosoDashboard application features and the purpose of the GitHub Spec Kit files located under the .github\ and .specify\ directories.
426
+
```
427
+
428
+
1. Take a couple minutes to review GitHub Copilot's response.
429
+
430
+
GitHub Copilot's response should summarize the application features and explain the purpose of the GitHub Spec Kit files.
431
+
432
+
You can also review the project's README.md file for a description of the current application features, mock authentication system, and security implementation.
433
+
434
+
> **NOTE**: The ContosoDashboard application is build using .NET 8. If your development environment uses .NET version 9 or .NET version 10, the project file must be updated accordingly.
435
+
436
+
1. To ensure that the project is configured to use the .NET version installed in your development environment, update the ContosoDashboard.csproj file as needed.
437
+
438
+
You can use GitHub Copilot to update the project file. For example, enter the following prompt in the Chat view:
439
+
440
+
```plaintext
441
+
I have the .NET 10 SDK installed. My project was written using .NET 8. Can you update the .csproj file for .NET 10 and ensure that the project builds correctly?
442
+
```
443
+
374
444
1. In the EXPLORER view, right-click **ContosoDashboard** and then select **Open in Integrated Terminal**.
375
445
376
446
The terminal prompt should open in the ContosoDashboard project directory. For example:
0 commit comments