Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(HotDesign): Clarify steps for running the application with VS Code (backport #19251) #19260

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,17 @@ The template will create a solution with a single cross-platform project, named
- Select **Blank** in **Presets** selection
- Select the **Presentation** tab and choose **MVUX**
- Click **Create** to complete the wizard
- Copy the `dotnet new` command and run it from a terminal
This will create a new folder called **Counter** containing the new application.
- Copy the `dotnet new` command and run it from a terminal where you want your solution to be located.
- This will create a new folder called **Counter** containing the new application.
- Next, open the project using Visual Studio Code. In the terminal type the following:

```bash
code ./Counter
```

- Visual Studio Code might ask to restore the NuGet packages. Allow it to restore them if asked.
- Once the solution has been loaded, in the status bar at the bottom left of VS Code, `Counter.sln` is selected by default. Select `Counter.csproj` to load the project instead.
![Counter.csproj selection in Visual Studio Code](Assets/vscode-csproj-selection.png)

### [Command Line](#tab/cli)

Expand Down Expand Up @@ -111,6 +120,10 @@ Before you run the application, switch the target platform to **Desktop** (net8.

- [Visual Studio](xref:Uno.GettingStarted.CreateAnApp.VS2022#debug-the-app)
- [VS Code](xref:Uno.GettingStarted.CreateAnApp.VSCode#debug-the-app)
> [!IMPORTANT]
> In the status bar at the bottom left of VS Code, ensure `Counter.csproj` is selected (by default `Counter.sln` is selected).
>
> ![Counter.csproj selection in Visual Studio Code](Assets/vscode-csproj-selection.png)
- [Rider](xref:Uno.GettingStarted.CreateAnApp.Rider#debug-the-app)

> [!IMPORTANT]
Expand Down
Loading