Skip to content

Commit f45ea1d

Browse files
committed
Update samples to RC2
1 parent 48fdc22 commit f45ea1d

File tree

38 files changed

+188
-42
lines changed

38 files changed

+188
-42
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Samples for ASP.NET Core 6.0, 7.0 and 8.0 RC 1 (502)
1+
# Samples for ASP.NET Core 6.0, 7.0 and 8.0 RC 2 (502)
22

3-
- Samples for ASP.NET Core **8.0 RC 1** is available [here](/projects/.net8) (39).
3+
- Samples for ASP.NET Core **8.0 RC 2** is available [here](/projects/.net8) (39).
44
- Samples for ASP.NET Core **7.0** is available [here](/projects/.net7) (45).
55
- Samples for ASP.NET Core **8.0 Preview 6** using EdgeDB.NET is [here](https://github.com/edgedb/edgedb-net).
66

projects/.net8/ComponentTwentyFive/ComponentTwentyFive.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ImplicitUsings>true</ImplicitUsings>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.*" />
7+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.2.*" />
99
<Watch Include="**\*.cshtml" />
1010
<Watch Include="**\*.razor" />
1111
</ItemGroup>

projects/.net8/ComponentTwentyFour/ComponentTwentyFour.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ImplicitUsings>true</ImplicitUsings>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.*" />
7+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.2.*" />
99
<Watch Include="**\*.cshtml" />
1010
<Watch Include="**\*.razor" />
1111
</ItemGroup>

projects/.net8/ComponentTwentySix/ComponentTwentySix.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ImplicitUsings>true</ImplicitUsings>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.*" />
7+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.2.*" />
99
<Watch Include="**\*.cshtml" />
1010
<Watch Include="**\*.razor" />
1111
</ItemGroup>

projects/.net8/ComponentTwentyThree/ComponentTwentyThree.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ImplicitUsings>true</ImplicitUsings>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.*" />
7+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.2.*" />
99
<Watch Include="**\*.cshtml" />
1010
<Watch Include="**\*.razor" />
1111
</ItemGroup>

projects/.net8/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ASP.NET 8.0 Preview 7 (39)
22

3-
These samples require [.NET 8.0 RC 1](https://github.com/dotnet/installer#table).
3+
These samples require [.NET 8.0 RC 2](https://github.com/dotnet/installer#table).
44

55
* [QuickGrid One](QuickGridOne)
66

projects/.net8/RazorComponentEight/RazorComponentEight/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<p class="mb-3">
1919
This button will work because this Razor component is powered by Blazor WASM
2020
</p>
21-
<Wasm.Interactive @rendermode="@RenderMode.WebAssembly" />
21+
<Wasm.Interactive @rendermode="@RenderMode.InteractiveWebAssembly" />
2222
</div>
2323
</div>
2424

projects/.net8/RazorComponentEight/RazorComponentEight/Program.cs

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

33
// Add services to the container.
44
builder.Services.AddRazorComponents()
5-
.AddWebAssemblyComponents();
5+
.AddInteractiveWebAssemblyComponents();
6+
builder.Services.AddAntiforgery();
67

78
var app = builder.Build();
89

@@ -17,8 +18,9 @@
1718
app.UseHttpsRedirection();
1819

1920
app.UseStaticFiles();
21+
app.UseAntiforgery();
2022

2123
app.MapRazorComponents<RazorComponentEight.App>()
22-
.AddWebAssemblyRenderMode();
24+
.AddInteractiveWebAssemblyRenderMode();
2325

2426
app.Run();

projects/.net8/RazorComponentEight/RazorComponentEight/RazorComponentEight.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0-rc.1.*" />
15+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0-rc.2.*" />
1616
</ItemGroup>
1717

1818
</Project>

projects/.net8/RazorComponentEight/Wasm/Wasm.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
10+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
1111
</ItemGroup>
1212

1313
</Project>

0 commit comments

Comments
 (0)