Skip to content

Commit 15c6840

Browse files
committed
Update website to .NET 10
Repro for NavigationException: Open site, paste /docs/v3/obsolete into browser, click Get Started > Documentation
1 parent 7160297 commit 15c6840

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,3 @@ The site should now be running at <https://localhost:8080>.
4242
> [!NOTE]
4343
> If this is your first time running the site and you skip steps 1 and 2, none of the static content will be processed.
4444
> You will encounter `InvalidFileLink` warnings from files at the path `docs/api` and 404 errors when browsing the site.
45-
46-
### NavigationException while debugging
47-
48-
This site uses `NavigationManager` to redirect to static content in several places.
49-
When running the app locally, you will experience a `NavigationException` every time you are redirected.
50-
If you've already run the docfx steps, let the debugger continue, and you should be redirected to the static content as expected.
51-
52-
While annoying, this behavior is according to Blazor's design, and handling the exception would break the redirect.
53-
[Learn more about plans to address `NavigationException` in .NET 10](https://github.com/dotnet/aspnetcore/issues/59451).

src/Steeltoe.io/Properties/launchSettings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/launchsettings.json",
23
"profiles": {
34
"localhost": {
45
"commandName": "Project",

src/Steeltoe.io/Steeltoe.io.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
5+
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
56
</PropertyGroup>
67
</Project>

0 commit comments

Comments
 (0)