From ece60cc9f5f4b7431530ae51ab1b6f0a7097b9d7 Mon Sep 17 00:00:00 2001 From: Artak <34246760+mkArtakMSFT@users.noreply.github.com> Date: Wed, 13 Jan 2021 09:01:46 -0800 Subject: [PATCH] Added `WebAssembly` capability to Blazor WebAssembly projects (#28714) ## Description VS has a feature of adding gRPC service reference to a project using UI. Currently that experience has no easy way to differentiate between Blazor Server and Blazor WebAssembly projects. As a result, adding gRPC reference using VS feature adds the wrong gRPC package (Grpc.AspNetCore), instead of adding `Grpc.Net.Client` and `Grpc.Net.Client.Web`, per our documentation. The package which is wrong adds framework reference transitively, which is not supported on WebAssembly. This change adds a unique WebAssembly capability to all Blazor WebAssembly projects (through the SDK) so VS can build unique experiences those projects and also address that bug. ## Customer Impact This particular change has no customer impact, but it will enable VS to fix their experience tracked by [this AzDO issue](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1242008) ## Regression? - [ ] Yes - [x] No ## Risk - [ ] High - [ ] Medium - [x] Low [Justify the selection above] ## Verification - [ ] Manual (required) - [ ] Automated Not applicable as this change has no functional impact. The follow-up change is on the VS side to utilize this change and differentiate projects. ## Packaging changes reviewed? - [ ] Yes - [ ] No - [x] N/A Addresses https://github.com/dotnet/aspnetcore/issues/28716 --- src/Components/WebAssembly/Sdk/src/Sdk/Sdk.targets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/WebAssembly/Sdk/src/Sdk/Sdk.targets b/src/Components/WebAssembly/Sdk/src/Sdk/Sdk.targets index 616c56fb8a..bc79142b24 100644 --- a/src/Components/WebAssembly/Sdk/src/Sdk/Sdk.targets +++ b/src/Components/WebAssembly/Sdk/src/Sdk/Sdk.targets @@ -15,6 +15,10 @@ Copyright (c) .NET Foundation. All rights reserved. <_BlazorWebAssemblyTargetsFile Condition="'$(_BlazorWebAssemblyTargetsFile)' == ''">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets + + + +