Skip to content

Commit f8f88a4

Browse files
Copilotkamilbaczek
andcommitted
Fix NETSDK1228 error: use Aspire.AppHost.Sdk instead of deprecated workload, update README
Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
1 parent 09299f8 commit f8f88a4

3 files changed

Lines changed: 23 additions & 7 deletions

File tree

Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.AppHost/Fitnet.Contracts.AppHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="13.0.0" />
23

34
<PropertyGroup>
45
<OutputType>Exe</OutputType>
5-
<IsAspireHost>true</IsAspireHost>
66
</PropertyGroup>
77

88
<ItemGroup>

Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.AppHost/Fitnet.AppHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="13.0.0" />
23

34
<PropertyGroup>
45
<OutputType>Exe</OutputType>
5-
<IsAspireHost>true</IsAspireHost>
66
</PropertyGroup>
77

88
<ItemGroup>

Chapter-3-microservice-extraction/README.adoc

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,39 @@ That's it! You should now be able to run the application using either one of the
162162

163163
=== Run with .NET Aspire
164164

165-
The Fitnet application uses .NET Aspire for local development.
165+
The Fitnet application uses .NET Aspire for local development orchestration.
166166

167-
To run the application locally using Aspire, follow these steps:
167+
==== Run Fitnet Modular Monolith
168168

169169
1. **Ensure Docker is running** on your machine.
170-
2. **Navigate to the AppHost directory:**
170+
2. **Navigate to the Fitnet AppHost directory:**
171171
[source,shell]
172172
----
173-
cd Fitnet.AppHost
173+
cd Fitnet/Src/Fitnet.AppHost
174174
----
175175
3. **Run the AppHost project:**
176176
[source,shell]
177177
----
178178
dotnet run
179179
----
180180

181-
The Aspire Dashboard will open automatically, showing all services, resources, and logs.
181+
The Aspire Dashboard will open automatically, showing the Fitnet modular monolith and PostgreSQL database.
182+
183+
==== Run Fitnet.Contracts Microservice
184+
185+
1. **Ensure Docker is running** on your machine.
186+
2. **Navigate to the Contracts AppHost directory:**
187+
[source,shell]
188+
----
189+
cd Fitnet.Contracts/Src/Fitnet.Contracts.AppHost
190+
----
191+
3. **Run the AppHost project:**
192+
[source,shell]
193+
----
194+
dotnet run
195+
----
196+
197+
The Aspire Dashboard will open automatically, showing the Fitnet.Contracts microservice, PostgreSQL database, and RabbitMQ message broker.
182198

183199
=== Building and debugging code in Rider IDE
184200

0 commit comments

Comments
 (0)