Skip to content

Commit 692e44b

Browse files
Merge pull request #6111 from syncfusion-content/937492-updateHF
937492: Remove net6 and net7 reference in UG
2 parents b0819d4 + 7ab0b16 commit 692e44b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

blazor/getting-started/razor-class-library.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ This Blazor component is defined in the <strong>RazorClassLibrary</strong> packa
7373

7474
* Refer to the [Blazor Tooling documentation](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=windows) to create a new **Blazor Web App** using Visual Studio.
7575

76-
* Refer to the [Blazor Tooling documentation](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-7.0&pivots=windows) to create a new **Blazor Server App** or **Blazor WebAssembly App** using Visual Studio.
77-
7876
{% endtabcontent %}
7977

8078
{% tabcontent Visual Studio Code %}
@@ -185,18 +183,16 @@ You can create a **Blazor Web App** or **Blazor Server App** or **Blazor WebAsse
185183
```
186184
187185
188-
3. For Blazor Web App, include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/Components/App.razor** file:
189-
190-
* For Blazor WebAssembly app, include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/wwwroot/index.html** file.
186+
3. Include Stylesheet and Script References Based on Project Type:
191187
192-
* For **.NET 7** project in Blazor Server App, include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/Pages/_Host.cshtml** file.
188+
* For Blazor WebAssembly standalone app, include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/wwwroot/index.html** file.
193189
194-
* For **.NET 6** project in Blazor Server App, include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/Pages/_Layout.cshtml** file.
190+
* For **.NET 8 and.NET 9** Blazor Web Apps using any render mode (Server, WebAssembly, or Auto), include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the **~/Components/Pages/App.razor** file.
195191
196192
```html
197193
<head>
198194
....
199-
<link href="_content/Syncfusion.Blazor.Themes/bootstrap4.css" rel="stylesheet" />
195+
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
200196
</head>
201197
....
202198
<body>
@@ -207,7 +203,7 @@ You can create a **Blazor Web App** or **Blazor Server App** or **Blazor WebAsse
207203
208204
N> Check out the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in your Blazor application. Also, check out the [Adding Script Reference](https://blazor.syncfusion.com/documentation/common/adding-script-references) topic to learn different approaches for adding script references in your Blazor application.
209205
210-
4. Now, add the created custom component in the **~/Pages/.razor** file.
206+
4. Now, add the created custom component in the **~/Components/Pages/.razor** file.
211207
212208
```cshtml
213209
<Component1></Component1>

0 commit comments

Comments
 (0)