File tree Expand file tree Collapse file tree 6 files changed +40
-3
lines changed Expand file tree Collapse file tree 6 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 1
- # Samples for ASP.NET Core 6.0, 7.0 and 8.0 Preview 7 (493 )
1
+ # Samples for ASP.NET Core 6.0, 7.0 and 8.0 Preview 7 (494 )
2
2
3
- - Samples for ASP.NET Core ** 8.0 Preview 7** is available [ here] ( /projects/.net8 ) (31 ).
3
+ - Samples for ASP.NET Core ** 8.0 Preview 7** is available [ here] ( /projects/.net8 ) (32 ).
4
4
- Samples for ASP.NET Core ** 7.0** is available [ here] ( /projects/.net7 ) (45).
5
5
- Samples for ASP.NET Core ** 8.0 Preview 6** using EdgeDB.NET is [ here] ( https://github.com/edgedb/edgedb-net ) .
6
6
Original file line number Diff line number Diff line change 1
- # ASP.NET 8.0 Preview 7 (31 )
1
+ # ASP.NET 8.0 Preview 7 (32 )
2
2
3
3
These samples require [ .NET 8.0 Preview 7] ( https://github.com/dotnet/installer#table ) .
4
4
@@ -70,6 +70,10 @@ These samples require [.NET 8.0 Preview 7](https://github.com/dotnet/installer#t
70
70
71
71
` WebApplication.CreateSlimBuilder ` creates ` WebApplicationBuilder ` with minimal configuration defaults.
72
72
73
+ * [ EmptyBuilder] ( empty-builder )
74
+
75
+ ` WebApplication.CreateEmptyBuilder ` creates ` WebApplicationBuilder ` with no built-in behavior.
76
+
73
77
## Blazor SSR Form Handling
74
78
75
79
* [ RazorFormHandlingOne] ( RazorFormHandlingOne )
Original file line number Diff line number Diff line change
1
+ {
2
+ "dotnet.defaultSolution" : " empty-builder.sln"
3
+ }
Original file line number Diff line number Diff line change
1
+ var builder = WebApplication . CreateEmptyBuilder ( new WebApplicationOptions ( ) ) ;
2
+ builder . WebHost . UseKestrelCore ( ) ;
3
+ builder . Services . AddRouting ( ) ;
4
+
5
+ var app = builder . Build ( ) ;
6
+
7
+ app . MapGet ( "/" , ( ) => {
8
+ return Results . Content ( """
9
+ <html>
10
+ <body>
11
+ hello world with WebApplication.CreateEmptyBuilder()
12
+ </body>
13
+ </html>
14
+ """ , "text/html" ) ;
15
+ } ) ;
16
+
17
+ app . Run ( ) ;
Original file line number Diff line number Diff line change
1
+ # WebApplication.CreateEmptyBuilder
2
+
3
+ ` WebApplication.CreateEmptyBuilder ` creates ` WebApplicationBuilder ` with no built-in behavior. You will need to add services and middleware as needed.
4
+
5
+
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
2
+ <PropertyGroup >
3
+ <TargetFramework >net8.0</TargetFramework >
4
+ <ImplicitUsings >true</ImplicitUsings >
5
+ <LangVersion >preview</LangVersion >
6
+ <PreviewFeatures >true</PreviewFeatures >
7
+ </PropertyGroup >
8
+ </Project >
You can’t perform that action at this time.
0 commit comments