diff --git a/CubeDemo/CubeDemo.csproj b/CubeDemo/CubeDemo.csproj index 4e06a28e..d8c9313c 100644 --- a/CubeDemo/CubeDemo.csproj +++ b/CubeDemo/CubeDemo.csproj @@ -23,9 +23,9 @@ - + - + diff --git a/CubeDemoNC/CubeDemoNC.csproj b/CubeDemoNC/CubeDemoNC.csproj index 018567ff..85a74e1f 100644 --- a/CubeDemoNC/CubeDemoNC.csproj +++ b/CubeDemoNC/CubeDemoNC.csproj @@ -35,8 +35,8 @@ - - + + diff --git a/CubeSSO/CubeSSO.csproj b/CubeSSO/CubeSSO.csproj index de969309..4a3c5517 100644 --- a/CubeSSO/CubeSSO.csproj +++ b/CubeSSO/CubeSSO.csproj @@ -23,7 +23,7 @@ - + diff --git a/NewLife.Cube.Blazor/NewLife.Cube.Blazor.csproj b/NewLife.Cube.Blazor/NewLife.Cube.Blazor.csproj index ee660109..52571a2c 100644 --- a/NewLife.Cube.Blazor/NewLife.Cube.Blazor.csproj +++ b/NewLife.Cube.Blazor/NewLife.Cube.Blazor.csproj @@ -49,7 +49,7 @@ - + diff --git a/NewLife.Cube/NewLife.Cube.csproj b/NewLife.Cube/NewLife.Cube.csproj index 50d70d92..657406f7 100644 --- a/NewLife.Cube/NewLife.Cube.csproj +++ b/NewLife.Cube/NewLife.Cube.csproj @@ -95,10 +95,10 @@ - + - + diff --git a/NewLife.CubeNC/NewLife.CubeNC.csproj b/NewLife.CubeNC/NewLife.CubeNC.csproj index 47b60b21..86a0344f 100644 --- a/NewLife.CubeNC/NewLife.CubeNC.csproj +++ b/NewLife.CubeNC/NewLife.CubeNC.csproj @@ -50,10 +50,10 @@ - + - + diff --git a/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs b/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs index 9a82dfc0..a5c68ce9 100644 --- a/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs +++ b/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs @@ -193,8 +193,7 @@ public static void SaveServiceAddress(HttpContext ctx) var baseAddress = $"{uri.Scheme}://{uri.Authority}"; var set = NewLife.Setting.Current; - if (set.ServiceAddress.IsNullOrWhiteSpace()) return; - var ss = set.ServiceAddress.Split(",").ToList(); + var ss = (set.ServiceAddress + "").Split(",").ToList(); if (!ss.Contains(baseAddress)) { ss.Insert(0, baseAddress); diff --git a/Test/Test.csproj b/Test/Test.csproj index 72f742fd..1ae83a2c 100644 --- a/Test/Test.csproj +++ b/Test/Test.csproj @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/XUnitTest/XUnitTest.csproj b/XUnitTest/XUnitTest.csproj index c5f7e22e..67f46c2d 100644 --- a/XUnitTest/XUnitTest.csproj +++ b/XUnitTest/XUnitTest.csproj @@ -8,8 +8,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all