Skip to content

Commit 5a97559

Browse files
authored
Updates
1 parent b88cb03 commit 5a97559

File tree

1 file changed

+32
-40
lines changed
  • aspnetcore/blazor/tutorials/movie-database-app

1 file changed

+32
-40
lines changed

aspnetcore/blazor/tutorials/movie-database-app/part-2.md

Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -134,36 +134,32 @@ dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
134134
> [!IMPORTANT]
135135
> After the first eight commands execute, make sure that you press <kbd>Enter</kbd> on the keyboard to execute the last command.
136136
137-
:::moniker range=">= aspnetcore-9.0 < aspnetcore-10.0"
137+
:::moniker range=">= aspnetcore-9.0"
138138

139-
<!-- UPDATE 10.0 - Update the first bullet. -->
139+
<!-- UPDATE 10.0 - Remove this when the 9.0.300 SDK lands. -->
140140

141141
> [!IMPORTANT]
142-
> If using the .NET 9 SDK, a breaking change in EF Core tooling prevents scaffolding from executing with the following exception:
142+
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevents scaffolding from executing with the following exception:
143143
>
144144
> > :::no-loc text="Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.":::
145145
>
146-
> Adopt ***either*** of the following approaches:
147-
>
148-
> * Use a .NET SDK for [.NET 10](https://dotnet.microsoft.com/download/dotnet/10.0) or later. .NET 10 is currently in preview and is secheduled for release in November, 2025. If you obtain and use the .NET 10 SDK for this tutorial, you can leave the app targeting .NET 9.
149-
>
150-
> * Add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
146+
> To resolve the error until the .NET SDK 9.0.300 is released, add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
151147
>
152-
> ```dotnetcli
153-
> dotnet add package Microsoft.EntityFrameworkCore.Design
154-
> ```
148+
> ```dotnetcli
149+
> dotnet add package Microsoft.EntityFrameworkCore.Design
150+
> ```
155151
>
156-
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
152+
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
157153
>
158-
> ```diff
159-
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
160-
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
161-
> <PrivateAssets>all</PrivateAssets>
162-
> + <Publish>true</Publish>
163-
> </PackageReference>
164-
> ```
154+
> ```diff
155+
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
156+
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
157+
> <PrivateAssets>all</PrivateAssets>
158+
> + <Publish>true</Publish>
159+
> </PackageReference>
160+
> ```
165161
>
166-
> The preceding update to the package reference is a workaround for a breaking change in .NET 9 EF Core tooling. The entire package reference can be removed in apps that are eventually updated to .NET 10 or later. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
162+
> The preceding changes are a workaround for a breaking change in .NET 9.0.200 EF Core tooling. This workaround won't be required for .NET SDK 9.0.300 or later, when the entire package reference can be removed from the app. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
167163
168164
:::moniker-end
169165
@@ -197,36 +193,32 @@ Paste all of the following commands at the prompt (`>`) of the command shell. W
197193
198194
When you paste multiple commands, all of the commands execute except the last one. The last command doesn't execute until you press <kbd>Enter</kbd> on the keyboard.
199195
200-
:::moniker range=">= aspnetcore-9.0 < aspnetcore-10.0"
196+
:::moniker range=">= aspnetcore-9.0"
201197
202-
<!-- UPDATE 10.0 - Update the first bullet. -->
198+
<!-- UPDATE 10.0 - Remove this when the 9.0.300 SDK lands. -->
203199
204200
> [!IMPORTANT]
205-
> If using the .NET 9 SDK, a breaking change in EF Core tooling prevents scaffolding from executing with the following exception:
201+
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevents scaffolding from executing with the following exception:
206202
>
207203
> > :::no-loc text="Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.":::
208204
>
209-
> Adopt ***either*** of the following approaches:
210-
>
211-
> * Use a .NET SDK for [.NET 10](https://dotnet.microsoft.com/download/dotnet/10.0) or later. .NET 10 is currently in preview and is secheduled for release in November, 2025. If you obtain and use the .NET 10 SDK for this tutorial, you can leave the app targeting .NET 9.
212-
>
213-
> * Add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
205+
> To resolve the error until the .NET SDK 9.0.300 is released, add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
214206
>
215-
> ```dotnetcli
216-
> dotnet add package Microsoft.EntityFrameworkCore.Design
217-
> ```
207+
> ```dotnetcli
208+
> dotnet add package Microsoft.EntityFrameworkCore.Design
209+
> ```
218210
>
219-
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
211+
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
220212
>
221-
> ```diff
222-
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
223-
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
224-
> <PrivateAssets>all</PrivateAssets>
225-
> + <Publish>true</Publish>
226-
> </PackageReference>
227-
> ```
213+
> ```diff
214+
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
215+
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
216+
> <PrivateAssets>all</PrivateAssets>
217+
> + <Publish>true</Publish>
218+
> </PackageReference>
219+
> ```
228220
>
229-
> The preceding update to the package reference is a workaround for a breaking change in .NET 9 EF Core tooling. The entire package reference can be removed in apps that are eventually updated to .NET 10 or later. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
221+
> The preceding changes are a workaround for a breaking change in .NET 9.0.200 EF Core tooling. This workaround won't be required for .NET SDK 9.0.300 or later, when the entire package reference can be removed from the app. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
230222
231223
:::moniker-end
232224

0 commit comments

Comments
 (0)