From aa52cc235a4607b882dc8337b122eb5d861f076c Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Mon, 17 Jun 2024 17:13:24 -0700 Subject: [PATCH] Publish to "trimmed" instead of "trimmed-or-threading" - This fixes a regression introduced by https://github.com/dotnet/aspnetcore/pull/54655 --- .../E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj | 2 +- src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs | 4 ++-- .../test/E2ETest/Tests/WebAssemblyPrerenderedTest.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj b/src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj index b8ad7c0303a4..dd3462e10abf 100644 --- a/src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj +++ b/src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj @@ -89,7 +89,7 @@ + Properties="BuildProjectReferences=false;TestTrimmedOrMultithreadingApps=true;PublishDir=$(MSBuildThisFileDirectory)$(OutputPath)trimmed\Components.TestServer\;" /> diff --git a/src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs b/src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs index 6915b0915198..525f8f774c37 100644 --- a/src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs +++ b/src/Components/test/E2ETest/Tests/RemoteAuthenticationTest.cs @@ -21,7 +21,7 @@ public class RemoteAuthenticationTest : { public readonly bool TestTrimmedApps = typeof(ToggleExecutionModeServerFixture<>).Assembly .GetCustomAttributes() - .First(m => m.Key == "Microsoft.AspNetCore.E2ETesting.TestTrimmedOrMultithreadingApps") + .First(m => m.Key == "Microsoft.AspNetCore.E2ETesting.TestTrimmedApps") .Value == "true"; public RemoteAuthenticationTest( @@ -67,7 +67,7 @@ private static IHost BuildPublishedWebHost(string[] args) => private static string GetPublishedContentRoot(Assembly assembly) { - var contentRoot = Path.Combine(AppContext.BaseDirectory, "trimmed-or-threading", assembly.GetName().Name); + var contentRoot = Path.Combine(AppContext.BaseDirectory, "trimmed", assembly.GetName().Name); if (!Directory.Exists(contentRoot)) { diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyPrerenderedTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyPrerenderedTest.cs index 1b108484b9db..9007e18ab483 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyPrerenderedTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyPrerenderedTest.cs @@ -56,7 +56,7 @@ private void WaitUntilLoaded() private static string GetPublishedContentRoot(Assembly assembly) { - var contentRoot = Path.Combine(AppContext.BaseDirectory, "trimmed-or-threading", assembly.GetName().Name); + var contentRoot = Path.Combine(AppContext.BaseDirectory, "trimmed", assembly.GetName().Name); if (!Directory.Exists(contentRoot)) {