Update README.md

Alphons van der Heijden <alphons@heijden.com> 15 Feb 2023, 14:11
8095a9544e087d3de46aed841ad0f1041d8a2033
1 files changed
  • README.md
diff --git a/README.md b/README.md
index e725b35..93f1881 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,10 @@ For the multi parameter binding use the `WithMultiParameterModelBinding`.
Example Program.cs:
```c#
-var builder = WebApplication.CreateBuilder();
+var builder = WebApplication.CreateBuilder(new WebApplicationOptions
+{
+ ContentRootPath = AppDomain.CurrentDomain.BaseDirectory
+});
builder.Services.AddMvcCore().WithMultiParameterModelBinding();
@@ -75,3 +78,5 @@ app.Run();
+
+