From d2ee131fd8518649e6f48ce195945aded732c4cc Mon Sep 17 00:00:00 2001 From: Pranav K Date: Fri, 17 Apr 2020 14:23:20 -0700 Subject: [PATCH] Fixup reference to M.AspNetCore.Components.WebAssembly.HttpHandler (#20891) * Fixup reference to Microsoft.AspNetCore.Components.WebAssembly.HttpHandler As part of attempting to fix the reference in the test project (which ultimately wasn't needed), I messed up the package reference in the WebAssembly package This fixes the package reference and removes unnecessary code from the test project --- src/Components/Directory.Build.targets | 22 +++++++++++++++++++ ...t.AspNetCore.Components.WebAssembly.csproj | 4 +--- .../HostedInAspNet.Client.csproj | 1 + .../StandaloneApp/StandaloneApp.csproj | 1 + .../Wasm.Authentication.Client.csproj | 2 ++ .../BasicTestApp/BasicTestApp.csproj | 18 ++------------- 6 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/Components/Directory.Build.targets b/src/Components/Directory.Build.targets index a651655cec..1f2d449c27 100644 --- a/src/Components/Directory.Build.targets +++ b/src/Components/Directory.Build.targets @@ -40,4 +40,26 @@ + + + + + + + + + <_HttpHandlerAssembly Include="@(_BlazorUserRuntimeAssembly)" + Condition="%(_BlazorUserRuntimeAssembly.ProjectReferenceOriginalItemSpec) == '$(RepoRoot)src\Components\WebAssembly\WebAssemblyHttpHandler\src\Microsoft.AspNetCore.Components.WebAssembly.HttpHandler.csproj'" /> + + <_BlazorUserRuntimeAssembly Remove="@(_HttpHandlerAssembly)" /> + + diff --git a/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj b/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj index 6cee6f37f5..f0a480a8b7 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj +++ b/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj @@ -15,9 +15,7 @@ + IncludeAssets="compile" /> diff --git a/src/Components/WebAssembly/testassets/HostedInAspNet.Client/HostedInAspNet.Client.csproj b/src/Components/WebAssembly/testassets/HostedInAspNet.Client/HostedInAspNet.Client.csproj index 37134c58ec..84dae61bf7 100644 --- a/src/Components/WebAssembly/testassets/HostedInAspNet.Client/HostedInAspNet.Client.csproj +++ b/src/Components/WebAssembly/testassets/HostedInAspNet.Client/HostedInAspNet.Client.csproj @@ -7,6 +7,7 @@ 3.0 false + true diff --git a/src/Components/WebAssembly/testassets/StandaloneApp/StandaloneApp.csproj b/src/Components/WebAssembly/testassets/StandaloneApp/StandaloneApp.csproj index 812f59e8c4..8959978daa 100644 --- a/src/Components/WebAssembly/testassets/StandaloneApp/StandaloneApp.csproj +++ b/src/Components/WebAssembly/testassets/StandaloneApp/StandaloneApp.csproj @@ -4,6 +4,7 @@ netstandard2.1 true 3.0 + true diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Wasm.Authentication.Client.csproj b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Wasm.Authentication.Client.csproj index e3881c7b97..6ade900b99 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Wasm.Authentication.Client.csproj +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Wasm.Authentication.Client.csproj @@ -4,6 +4,7 @@ netstandard2.1 3.0 true + true @@ -11,6 +12,7 @@ + diff --git a/src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj b/src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj index 8223019bc4..0d87e9356e 100644 --- a/src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj +++ b/src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj @@ -10,6 +10,8 @@ false + + true @@ -19,9 +21,6 @@ - @@ -32,17 +31,4 @@ - - - - <_HttpHandlerAssembly Include="@(_BlazorUserRuntimeAssembly)" - Condition="%(_BlazorUserRuntimeAssembly.ProjectReferenceOriginalItemSpec) == '..\..\..\WebAssembly\WebAssemblyHttpHandler\src\Microsoft.AspNetCore.Components.WebAssembly.HttpHandler.csproj'" /> - - <_BlazorUserRuntimeAssembly Remove="@(_HttpHandlerAssembly)" /> - - -