Skip to content

Commit 62d4b53

Browse files
committed
feat: adjustments to WebExpress 0.0.9-alpha
1 parent fcd0b84 commit 62d4b53

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Now you have created a new solution and are ready to proceed with the next steps
8080
</PropertyGroup>
8181

8282
<ItemGroup>
83-
<PackageReference Include="WebExpress.WebCore" Version="0.0.8-alpha">
83+
<PackageReference Include="WebExpress.WebCore" Version="0.0.9-alpha">
8484
<Private>false</Private>
8585
<ExcludeAssets>runtime</ExcludeAssets>
8686
</PackageReference>
@@ -89,7 +89,7 @@ Now you have created a new solution and are ready to proceed with the next steps
8989
- Add the necessary dependencies in the `HelloWorld.App.csproj` project file.
9090
```xml
9191
<ItemGroup>
92-
<PackageReference Include="WebExpress.WebCore" Version="0.0.8-alpha" />
92+
<PackageReference Include="WebExpress.WebCore" Version="0.0.9-alpha" />
9393
</ItemGroup>
9494

9595
<ItemGroup>
@@ -104,7 +104,7 @@ Now you have created a new solution and are ready to proceed with the next steps
104104
<?xml version="1.0" encoding="utf-8"?>
105105
<package>
106106
<id>WebExpress.Tutorial.HelloWorld</id>
107-
<version>0.0.8-alpha</version>
107+
<version>0.0.9-alpha</version>
108108
<title>HelloWorld</title>
109109
<authors>rene_schwarzer@hotmail.de</authors>
110110
<license>MIT</license>
@@ -181,7 +181,7 @@ Now you have created a new solution and are ready to proceed with the next steps
181181
{
182182
public void Process(IRenderContext renderContext, VisualTree visualTree)
183183
{
184-
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Concat("/assets/img/favicon.png").ToString()));
184+
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.Route.Concat("/assets/img/favicon.png").ToString()));
185185
visualTree.Content = new HtmlText(I18N.Translate("HelloWorld:homepage.text"));
186186
}
187187
}

WebExpress.Tutorial.HelloWorld.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package>
33
<id>WebExpress.Tutorial.HelloWorld</id>
4-
<version>0.0.8-alpha</version>
4+
<version>0.0.9-alpha</version>
55
<title>HelloWorld</title>
66
<authors>rene_schwarzer@hotmail.de</authors>
77
<license>MIT</license>

src/HalloWorld.App/HalloWorld.App.csproj renamed to src/HalloWorld.App/WebExpress.Tutorial.HalloWorld.App.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net9.0</TargetFramework>
6-
<Version>0.0.8.0</Version>
7-
<AssemblyVersion>0.0.8.0</AssemblyVersion>
6+
<Version>0.0.9.0</Version>
7+
<AssemblyVersion>0.0.9.0</AssemblyVersion>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="WebExpress.WebCore" Version="0.0.8-alpha" />
13+
<PackageReference Include="WebExpress.WebCore" Version="0.0.9-alpha" />
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\HelloWorld\HelloWorld.csproj" />
17+
<ProjectReference Include="..\HelloWorld\WebExpress.Tutorial.HelloWorld.csproj" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/HelloWorld/HelloWorld.csproj renamed to src/HelloWorld/WebExpress.Tutorial.HelloWorld.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>0.0.8.0</Version>
6-
<AssemblyVersion>0.0.8.0</AssemblyVersion>
5+
<Version>0.0.9.0</Version>
6+
<AssemblyVersion>0.0.9.0</AssemblyVersion>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<RepositoryUrl>https://github.com/ReneSchwarzer/WebExpress.Tutorial.HelloWorld.git</RepositoryUrl>
99
<EnableDynamicLoading>true</EnableDynamicLoading>
@@ -25,11 +25,15 @@
2525
<EmbeddedResource Include="Internationalization\en" />
2626
</ItemGroup>
2727

28-
<ItemGroup>
29-
<PackageReference Include="WebExpress.WebCore" Version="0.0.8-alpha">
28+
<ItemGroup Condition="'$(Configuration)' != 'DebugLocal'">
29+
<PackageReference Include="WebExpress.WebCore" Version="0.0.9-alpha">
3030
<Private>false</Private>
3131
<ExcludeAssets>runtime</ExcludeAssets>
3232
</PackageReference>
3333
</ItemGroup>
3434

35+
<ItemGroup Condition="'$(Configuration)' == 'DebugLocal'">
36+
<ProjectReference Include="..\..\..\WebExpress.WebCore\src\WebExpress.WebCore\WebExpress.WebCore.csproj" />
37+
</ItemGroup>
38+
3539
</Project>

src/HelloWorld/WebPage/HomePage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public HomePage(IPageContext pageContext)
3131
/// <param name="visualTree">The visual tree to be rendered.</param>
3232
public void Process(IRenderContext renderContext, VisualTree visualTree)
3333
{
34-
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.ContextPath.Concat("/assets/img/favicon.png").ToString()));
34+
visualTree.Favicons.Add(new Favicon(renderContext?.PageContext?.ApplicationContext?.Route.Concat("/assets/img/favicon.png").ToString()));
3535
visualTree.Content = new HtmlText(I18N.Translate("HelloWorld:homepage.text"));
3636
}
3737
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.4.33205.214
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{332EC42A-5F7F-3D7E-A41D-36B87E7BE232}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "HelloWorld\WebExpress.Tutorial.HelloWorld.csproj", "{332EC42A-5F7F-3D7E-A41D-36B87E7BE232}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HalloWorld.App", "HalloWorld.App\HalloWorld.App.csproj", "{CE5BB670-D18A-425C-8957-E95F3E1D63B8}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HalloWorld.App", "HalloWorld.App\WebExpress.Tutorial.HalloWorld.App.csproj", "{CE5BB670-D18A-425C-8957-E95F3E1D63B8}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)