@RenderBody() diff --git a/samples/MvcCocoon/src/MvcCocoon/Views/Shared/_LoginPartial.cshtml b/samples/MvcCocoon/src/MvcCocoon/Views/Shared/_LoginPartial.cshtml index d5dd39c..2582209 100644 --- a/samples/MvcCocoon/src/MvcCocoon/Views/Shared/_LoginPartial.cshtml +++ b/samples/MvcCocoon/src/MvcCocoon/Views/Shared/_LoginPartial.cshtml @@ -2,7 +2,7 @@ @if (User.Identity.IsAuthenticated) {
  • - Hello, @User.Identity.Name ! + Hello, @User.Identity.Name !
  • Log out diff --git a/samples/MvcCocoon/src/MvcCocoon/Views/_ViewImports.cshtml b/samples/MvcCocoon/src/MvcCocoon/Views/_ViewImports.cshtml index 90b8f27..c72a6d4 100644 --- a/samples/MvcCocoon/src/MvcCocoon/Views/_ViewImports.cshtml +++ b/samples/MvcCocoon/src/MvcCocoon/Views/_ViewImports.cshtml @@ -1,2 +1,3 @@ @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Facade +@addTagHelper *, MvcCocoon diff --git a/samples/MvcCocoon/src/MvcCocoon/appsettings.Development.json b/samples/MvcCocoon/src/MvcCocoon/appsettings.Development.json index 54acedd..ab5aeae 100644 --- a/samples/MvcCocoon/src/MvcCocoon/appsettings.Development.json +++ b/samples/MvcCocoon/src/MvcCocoon/appsettings.Development.json @@ -6,6 +6,9 @@ "Microsoft.Hosting.Lifetime": "Information" } }, + "ConnectionStrings": { + "WingtipToys": "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=D:\\Cocoon\\Cocoon\\samples\\Wingtip-Toys\\WingtipToys\\App_Data\\wingtiptoys.mdf;Integrated Security=True" + }, "Cocoon": { "Proxy": { "DestinationPrefix": "http://localhost:8080/" diff --git a/samples/MvcCocoon/src/MvcCocoon/appsettings.json b/samples/MvcCocoon/src/MvcCocoon/appsettings.json index ba26674..81ff877 100644 --- a/samples/MvcCocoon/src/MvcCocoon/appsettings.json +++ b/samples/MvcCocoon/src/MvcCocoon/appsettings.json @@ -6,26 +6,5 @@ "Microsoft.Hosting.Lifetime": "Information" } }, - "AllowedHosts": "*", - "Cocoon": { - "Proxy": { - "DestinationPrefix": "http://legacyapp" - }, - "Authentication": { - "BackendApiUrl": "http://legacyapp/facadeauth", - "LoginUrl": "/Account/Login?ReturnUrl={{ReturnUrl}}", - "Cookies": [ - ".AspNet.ApplicationCookie" - ] - }, - "Session": { - "BackendApiUrl": "http://legacyapp/facadesession", - "Cookies": [ - "ASP.NET_SessionId" - ] - }, - "Cookies": { - "BackendApiUrl": "http://legacyapp/facadecookies" - } - } + "AllowedHosts": "*" } From d88a0b6d06d359bfa0a54f3868d672e7c0144d40 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 23 May 2022 14:37:26 +0100 Subject: [PATCH 4/5] Update test project to net6.0 --- .../ReCode.Cocoon.Proxy.Tests/ReCode.Cocoon.Proxy.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/test/ReCode.Cocoon.Proxy.Tests/ReCode.Cocoon.Proxy.Tests.csproj b/main/test/ReCode.Cocoon.Proxy.Tests/ReCode.Cocoon.Proxy.Tests.csproj index a5b6024..f0e6137 100644 --- a/main/test/ReCode.Cocoon.Proxy.Tests/ReCode.Cocoon.Proxy.Tests.csproj +++ b/main/test/ReCode.Cocoon.Proxy.Tests/ReCode.Cocoon.Proxy.Tests.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 false latest From c7ec5b7382cf963959f28f73b6a5b80d1da02e07 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 23 May 2022 14:51:00 +0100 Subject: [PATCH 5/5] Remove custom net45 build step --- .github/workflows/dotnet-develop.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/dotnet-develop.yml b/.github/workflows/dotnet-develop.yml index 74467bc..b7e23a9 100644 --- a/.github/workflows/dotnet-develop.yml +++ b/.github/workflows/dotnet-develop.yml @@ -39,10 +39,6 @@ jobs: - name: Test run: dotnet test -c Release --no-build --verbosity normal .\test\ReCode.Cocoon.Proxy.Tests working-directory: .\main - - name: BuildNet45 - run: | - cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\" - .\MSBuild.exe $Env:GITHUB_WORKSPACE\main\Cocoon.sln -m /p:Configuration=Release - name: ConsoleRunXUnitLegacyTests run: | ~/.nuget/packages/xunit.runner.console/2.4.1/tools/net472/xunit.console.exe $Env:GITHUB_WORKSPACE\main\test\ReCode.Cocoon.Legacy.Tests\bin\Release\net45\ReCode.Cocoon.Legacy.Tests.dll \ No newline at end of file