Skip to content

Commit 9317115

Browse files
author
UniqueIdGenerator Author
committed
Update project files to target .NET 9.0 and modify launch configurations for Firefox and Chrome
1 parent 7e0fefb commit 9317115

File tree

9 files changed

+35
-16
lines changed

9 files changed

+35
-16
lines changed

.vscode/launch.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,26 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
78
{
89
"name": "C#: Abies. Debug",
910
"type": "dotnet",
1011
"request": "launch",
1112
"projectPath": "${workspaceFolder}/Abies.Conduit/Abies.Conduit.csproj"
1213
},
1314
{
14-
"type": "msedge",
15+
"type": "firefox",
1516
"request": "launch",
16-
"name": "Launch Edge against localhost",
17-
"url": "http://localhost:8080",
17+
"name": "Launch Firefox against localhost",
18+
"url": "http://localhost:56153",
19+
"webRoot": "${workspaceFolder}"
20+
},
21+
{
22+
"type": "chrome",
23+
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
24+
"request": "attach",
25+
"name": "Attach Chrome for WebAssembly",
26+
"url": "http://localhost:52206",
1827
"webRoot": "${workspaceFolder}"
1928
}
2029
]

Abies.Conduit/Abies.Conduit.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
<PropertyGroup>
33
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
44
<PublishTrimmed>false</PublishTrimmed>
5-
<TargetFramework>net10.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<!-- Disable auto-generated assembly attributes to avoid duplicates -->
77
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
88
<!-- Prevent duplicate TargetFrameworkAttribute -->
99
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
1010
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
1111
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)Generated</CompilerGeneratedFilesOutputPath>
1212
<InterceptorsNamespaces>$(InterceptorsNamespaces);Praefixum</InterceptorsNamespaces>
13+
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
1314
</PropertyGroup>
1415
<ItemGroup>
1516
<ProjectReference Include="..\Abies\Abies.csproj" />

Abies.Conduit/Navigation.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ public static Node View(Model model)
1818
var userLinks = model.CurrentUser == null
1919
? new Node[]
2020
{
21-
NavLink("/login", "Sign in", model.CurrentRoute is Route.Login),
22-
NavLink("/register", "Sign up", model.CurrentRoute is Route.Register)
21+
NavLink("/login", "Sign in", model.CurrentRoute is Routing.Route.Login),
22+
NavLink("/register", "Sign up", model.CurrentRoute is Routing.Route.Register)
2323
}
2424
: new Node[]
2525
{
26-
NavLink("/editor", "New Article", model.CurrentRoute is Route.NewArticle),
27-
NavLink("/settings", "Settings", model.CurrentRoute is Route.Settings),
26+
NavLink("/editor", "New Article", model.CurrentRoute is Abies.Conduit.Routing.Route.NewArticle),
27+
NavLink("/settings", "Settings", model.CurrentRoute is Routing.Route.Settings),
2828
NavLink($"/profile/{model.CurrentUser!.Username.Value}",
2929
model.CurrentUser.Username.Value,
30-
model.CurrentRoute is Route.Profile p && p.UserName.Value == model.CurrentUser.Username.Value ||
31-
model.CurrentRoute is Route.ProfileFavorites pf && pf.UserName.Value == model.CurrentUser.Username.Value)
30+
model.CurrentRoute is Routing.Route.Profile p && p.UserName.Value == model.CurrentUser.Username.Value ||
31+
model.CurrentRoute is Routing.Route.ProfileFavorites pf && pf.UserName.Value == model.CurrentUser.Username.Value)
3232
};
3333

3434
return nav([class_("navbar navbar-light")], [
3535
div([class_("container")], [
3636
a([class_("navbar-brand"), href("/")], [text("conduit")]),
3737
ul([class_("nav navbar-nav pull-xs-right")], [
38-
NavLink("/", "Home", model.CurrentRoute is Route.Home),
38+
NavLink("/", "Home", model.CurrentRoute is Routing.Route.Home),
3939
..userLinks
4040
])
4141
])

Abies.Counter/Abies.Counter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.WebAssembly">
22
<PropertyGroup>
3-
<TargetFramework>net10.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<PublishTrimmed>false</PublishTrimmed>
66
<InterceptorsNamespaces>$(InterceptorsNamespaces);Praefixum</InterceptorsNamespaces>

Abies.Tests/Abies.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

Abies/Abies.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<!-- needed to support JS interop -->
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77

@@ -19,6 +19,7 @@
1919
<InterceptorsNamespaces>$(InterceptorsNamespaces);Praefixum</InterceptorsNamespaces>
2020
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
2121
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)Generated</CompilerGeneratedFilesOutputPath>
22+
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
2223
</PropertyGroup>
2324

2425
<ItemGroup>
@@ -44,7 +45,7 @@
4445
</ItemGroup>
4546

4647
<ItemGroup>
47-
<PackageReference Include="Praefixum" Version="1.1.3-tags-v1-1-2.1" />
48+
<PackageReference Include="Praefixum" Version="1.1.5-tags-v1-1-4.1" />
4849
</ItemGroup>
4950

5051
</Project>

Abies/Html/Attributes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Runtime.CompilerServices;
23
using Praefixum;
34

Conduit.Api/Conduit.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.0",
4+
"rollForward": "latestMajor",
5+
"allowPrerelease": true
6+
}
7+
}

0 commit comments

Comments
 (0)