From 1fc9cfce6ac3d91261c10daa3b382656fd209aee Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Tue, 1 Sep 2026 07:27:52 -0700 Subject: [PATCH 1/3] Retarget the .NET Framework examples to net481 The integration packages target net481 as of their latest releases, so net472 could not take them. Autofac 6.5.0 to 9.3.2 across all six projects, plus Autofac.Mvc5 7.0.0, Autofac.Wcf 8.0.0, Autofac.Web 8.0.0, Autofac.Owin 8.0.0, Autofac.WebApi2 7.0.0, Autofac.WebApi2.Owin 7.0.0, Autofac.Multitenant 9.0.1, and Autofac.Multitenant.Wcf 7.0.0. ASP.NET MVC, Razor, WebPages, OWIN, and Newtonsoft.Json also move to current. Three binding redirects had to move with them. Microsoft.Bcl.AsyncInterfaces goes to 10.0.0.11, System.Threading.Tasks.Extensions to 4.2.4.0, and System.Web.Mvc to 5.3.0.0. Autofac needs a redirect it never had: every integration package is compiled against 9.3.1.0 while these projects now load 9.3.2.0, and web projects get no auto-generated redirects the way the self-host exe does. Without it the apps throw at startup, and a build-only CI would never notice. Redirect versions were read from the built output rather than guessed, and cross-checked against what MSBuild generated for WebApiExample.OwinSelfHost. Part of #32 --- .../MultitenantExample.MvcApplication.csproj | 22 +++++++++---------- .../Web.config | 12 ++++++---- .../MultitenantExample.WcfService.csproj | 14 ++++++------ src/MultitenantExample.WcfService/Web.config | 8 +++++-- src/MvcExample/MvcExample.csproj | 18 +++++++-------- src/MvcExample/Web.config | 12 ++++++---- src/WcfExample/WcfExample.csproj | 10 ++++----- src/WcfExample/Web.config | 10 ++++++--- .../WebApiExample.OwinSelfHost.csproj | 18 +++++++-------- src/WebFormsExample/Web.config | 8 +++++-- src/WebFormsExample/WebFormsExample.csproj | 10 ++++----- 11 files changed, 81 insertions(+), 61 deletions(-) diff --git a/src/MultitenantExample.MvcApplication/MultitenantExample.MvcApplication.csproj b/src/MultitenantExample.MvcApplication/MultitenantExample.MvcApplication.csproj index 9031108..e216e61 100644 --- a/src/MultitenantExample.MvcApplication/MultitenantExample.MvcApplication.csproj +++ b/src/MultitenantExample.MvcApplication/MultitenantExample.MvcApplication.csproj @@ -1,6 +1,6 @@  - net472 + net481 Library bin/ false @@ -13,20 +13,20 @@ - - - - - - - - - + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/MultitenantExample.MvcApplication/Web.config b/src/MultitenantExample.MvcApplication/Web.config index 85ff1fd..3e29ed6 100644 --- a/src/MultitenantExample.MvcApplication/Web.config +++ b/src/MultitenantExample.MvcApplication/Web.config @@ -37,11 +37,11 @@ - + - + @@ -53,7 +53,11 @@ - + + + + + @@ -71,4 +75,4 @@ - + diff --git a/src/MultitenantExample.WcfService/MultitenantExample.WcfService.csproj b/src/MultitenantExample.WcfService/MultitenantExample.WcfService.csproj index d43f8e2..981c67d 100644 --- a/src/MultitenantExample.WcfService/MultitenantExample.WcfService.csproj +++ b/src/MultitenantExample.WcfService/MultitenantExample.WcfService.csproj @@ -1,6 +1,6 @@  - net472 + net481 Library bin/ false @@ -13,16 +13,16 @@ - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/MultitenantExample.WcfService/Web.config b/src/MultitenantExample.WcfService/Web.config index de32a53..55f07a4 100644 --- a/src/MultitenantExample.WcfService/Web.config +++ b/src/MultitenantExample.WcfService/Web.config @@ -29,11 +29,15 @@ - + - + + + + + diff --git a/src/MvcExample/MvcExample.csproj b/src/MvcExample/MvcExample.csproj index 99ceb35..74ad47b 100644 --- a/src/MvcExample/MvcExample.csproj +++ b/src/MvcExample/MvcExample.csproj @@ -1,6 +1,6 @@  - net472 + net481 Library bin/ false @@ -13,19 +13,19 @@ - - - - - + + + + + - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/MvcExample/Web.config b/src/MvcExample/Web.config index 4e25987..26c70de 100644 --- a/src/MvcExample/Web.config +++ b/src/MvcExample/Web.config @@ -14,11 +14,11 @@ - + - + @@ -30,12 +30,16 @@ - + + + + + @@ -51,4 +55,4 @@ - + diff --git a/src/WcfExample/WcfExample.csproj b/src/WcfExample/WcfExample.csproj index 994dc14..4ce3a4e 100644 --- a/src/WcfExample/WcfExample.csproj +++ b/src/WcfExample/WcfExample.csproj @@ -1,6 +1,6 @@  - net472 + net481 Library bin/ false @@ -13,14 +13,14 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/WcfExample/Web.config b/src/WcfExample/Web.config index 9e0c80e..aeb835f 100644 --- a/src/WcfExample/Web.config +++ b/src/WcfExample/Web.config @@ -42,12 +42,16 @@ - + - + + + + + - + diff --git a/src/WebApiExample.OwinSelfHost/WebApiExample.OwinSelfHost.csproj b/src/WebApiExample.OwinSelfHost/WebApiExample.OwinSelfHost.csproj index 0aca5fa..d8fa938 100644 --- a/src/WebApiExample.OwinSelfHost/WebApiExample.OwinSelfHost.csproj +++ b/src/WebApiExample.OwinSelfHost/WebApiExample.OwinSelfHost.csproj @@ -1,23 +1,23 @@  - net472 + net481 Exe WebApiExample.OwinSelfHost WebApiExample.OwinSelfHost 1.0.0 - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - + + + diff --git a/src/WebFormsExample/Web.config b/src/WebFormsExample/Web.config index 725d85d..e2ec5a1 100644 --- a/src/WebFormsExample/Web.config +++ b/src/WebFormsExample/Web.config @@ -24,11 +24,11 @@ - + - + @@ -46,6 +46,10 @@ + + + + diff --git a/src/WebFormsExample/WebFormsExample.csproj b/src/WebFormsExample/WebFormsExample.csproj index cc051a5..78eefe1 100644 --- a/src/WebFormsExample/WebFormsExample.csproj +++ b/src/WebFormsExample/WebFormsExample.csproj @@ -1,6 +1,6 @@  - net472 + net481 Library bin/ false @@ -14,17 +14,17 @@ - - + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + From bc5035bd053e1ab602db470c6524975aaaad6d2e Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Tue, 1 Sep 2026 07:28:02 -0700 Subject: [PATCH 2/3] Add the missing Microsoft.Web.Infrastructure binding redirect System.Web.Mvc, System.Web.Optimization, and System.Web.WebPages all reference Microsoft.Web.Infrastructure 1.0.0.0, but 2.0.0.0 is what ships in bin. The mismatch predates the net481 retarget; it surfaced while computing which redirects the retarget needed, and leaving it would keep these three examples from starting. Part of #32 --- src/MultitenantExample.MvcApplication/Web.config | 4 ++++ src/MvcExample/Web.config | 4 ++++ src/WebFormsExample/Web.config | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/MultitenantExample.MvcApplication/Web.config b/src/MultitenantExample.MvcApplication/Web.config index 3e29ed6..098a586 100644 --- a/src/MultitenantExample.MvcApplication/Web.config +++ b/src/MultitenantExample.MvcApplication/Web.config @@ -59,6 +59,10 @@ + + + + diff --git a/src/MvcExample/Web.config b/src/MvcExample/Web.config index 26c70de..46077f6 100644 --- a/src/MvcExample/Web.config +++ b/src/MvcExample/Web.config @@ -40,6 +40,10 @@ + + + + diff --git a/src/WebFormsExample/Web.config b/src/WebFormsExample/Web.config index e2ec5a1..48932df 100644 --- a/src/WebFormsExample/Web.config +++ b/src/WebFormsExample/Web.config @@ -50,6 +50,10 @@ + + + + From 6c1c7acdebdaa718ee429839e125782f5f3f85b6 Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Tue, 1 Sep 2026 07:36:32 -0700 Subject: [PATCH 3/3] Sort binding redirects by assembly name Appending new entries left each assemblyBinding in insertion order, and it was already unsorted before that: System.Web.Mvc sat after System.Web.WebPages, and WebGrease ahead of Antlr3.Runtime. Alphabetical means the next addition has an obvious home instead of landing at the bottom. Reordering only; the entries themselves are unchanged. Part of #32 --- .../Web.config | 20 ++++++++-------- src/MultitenantExample.WcfService/Web.config | 8 +++---- src/MvcExample/Web.config | 24 +++++++++---------- src/WcfExample/Web.config | 8 +++---- src/WebFormsExample/Web.config | 24 +++++++++---------- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/MultitenantExample.MvcApplication/Web.config b/src/MultitenantExample.MvcApplication/Web.config index 098a586..230f95d 100644 --- a/src/MultitenantExample.MvcApplication/Web.config +++ b/src/MultitenantExample.MvcApplication/Web.config @@ -35,10 +35,18 @@ + + + + + + + + @@ -47,21 +55,13 @@ - - - - - - - - - - + + diff --git a/src/MultitenantExample.WcfService/Web.config b/src/MultitenantExample.WcfService/Web.config index 55f07a4..46efd50 100644 --- a/src/MultitenantExample.WcfService/Web.config +++ b/src/MultitenantExample.WcfService/Web.config @@ -27,6 +27,10 @@ + + + + @@ -35,10 +39,6 @@ - - - - diff --git a/src/MvcExample/Web.config b/src/MvcExample/Web.config index 46077f6..8021eda 100644 --- a/src/MvcExample/Web.config +++ b/src/MvcExample/Web.config @@ -12,10 +12,18 @@ + + + + + + + + @@ -24,25 +32,17 @@ - - - - - - - - - - + + - - + + diff --git a/src/WcfExample/Web.config b/src/WcfExample/Web.config index aeb835f..051b3ab 100644 --- a/src/WcfExample/Web.config +++ b/src/WcfExample/Web.config @@ -40,6 +40,10 @@ + + + + @@ -48,10 +52,6 @@ - - - - diff --git a/src/WebFormsExample/Web.config b/src/WebFormsExample/Web.config index 48932df..d9ef678 100644 --- a/src/WebFormsExample/Web.config +++ b/src/WebFormsExample/Web.config @@ -22,10 +22,22 @@ + + + + + + + + + + + + @@ -42,18 +54,6 @@ - - - - - - - - - - - -