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

Update Step by Step Tutorials to Use .NET CLI for Package Management #6474

Merged
merged 2 commits into from Mar 1, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -33,10 +33,10 @@ First, let's create a basic solution and include the dependencies we need.
3. Set the project name to **ClientUI**.
4. Set the solution name to **RetailDemo**.

Next, add the NServiceBus NuGet package as a dependency. From the [NuGet Package Manager Console](https://docs.microsoft.com/en-us/nuget/tools/package-manager-console), type the following:
Next, add the NServiceBus NuGet package as a dependency. Using PowerShell or another terminal alternative, navigate to the ClientUI project directory and run the following command:

```
Install-Package NServiceBus -ProjectName ClientUI
dotnet add package NServiceBus
```

This adds an NServiceBus.Core assembly reference to the ClientUI project. Now we're ready to start writing code.
Expand Down
Expand Up @@ -80,9 +80,9 @@ Let's split apart the endpoint we created in the previous lesson. We'll reconfig
First, let's create a project for our new endpoint.

1. Create a new **Console Application** project named **Sales**.
1. In the **Sales** project, add the NServiceBus NuGet package:
1. In the same directory as the **Sales** project, add the NServiceBus NuGet package using the .NET CLI:
```
Install-Package NServiceBus -ProjectName Sales
dotnet add package NServiceBus
```
1. Rename **Messages** project to **Sales.Messages**
1. In the **Sales** project, add a reference to the **Sales.Messages** project, so that we have access to the `PlaceOrder` message.
Expand Down