Skip to content

Use BlazorWebAssemblySDK #24371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
3 commits merged into from
Aug 11, 2020
Merged

Use BlazorWebAssemblySDK #24371

3 commits merged into from
Aug 11, 2020

Conversation

pranavkm
Copy link
Contributor

  • Update projects to use the BlazorSDK
  • Remove tasks and targets from RazorSDK
  • Remove workarounds from BlazorSDK

@pranavkm pranavkm requested review from SteveSandersonMS and a team as code owners July 28, 2020 16:48
@pranavkm pranavkm force-pushed the prkrishn/use-blazor-sdk branch from 5686433 to 76d01f7 Compare July 28, 2020 16:48
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Jul 29, 2020
@@ -12,7 +12,7 @@
<PackageReference Include="MicroBuild.Core" Version="0.3.0" PrivateAssets="All" AllowExplicitReference="true" ExcludeAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true' OR '$(RazorSdkCurrentVersionProps)' != ''">
<ItemGroup Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true' OR '$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' OR '$(RazorSdkCurrentVersionProps)' != ''">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we bringing back the UsingMicrosoftNETSdkBlazorWebAssembly property?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be to prevent double imports?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -701,6 +705,8 @@ public async Task Publish_HostedApp_VisualStudio_WithSatelliteAssemblies()
var existing = File.ReadAllText(blazorwasmProjFile);
var updatedContent = @"
<PropertyGroup>
<!-- Workaround for https://github.com/mono/linker/issues/1390 -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the referenced issue was fixed. Do we need this workaround because the fix isn't shipped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this workaround because the fix isn't shipped?

Yup. Waiting for the fix to get to the .net sdk

@pranavkm pranavkm force-pushed the prkrishn/use-blazor-sdk branch from f510ad5 to 31d0956 Compare August 6, 2020 18:09

<PropertyGroup>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<UseBlazorWebAssembly>true</UseBlazorWebAssembly>
<FixupWebAssemblyHttpHandlerReference>true</FixupWebAssemblyHttpHandlerReference>
</PropertyGroup>

<ItemGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice looking csproj now!

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice to see all the code get deleted! This is a great payoff from your SDK work. Great stuff @pranavkm!

I'm not in a position to absolutely evaluate the correctness of every aspect of this since nobody could know what are all the consequences of different MSBuild properties/tweaks, however I'm approving on the basis that you know what you're doing and morally speaking all the changes here look good to me.

@ghost
Copy link

ghost commented Aug 10, 2020

Hello @pranavkm!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@pranavkm pranavkm force-pushed the prkrishn/use-blazor-sdk branch from 31d0956 to 64b95b9 Compare August 10, 2020 21:27
* Update projects to use the BlazorSDK
* Remove tasks and targets from RazorSDK
* Remove workarounds from BlazorSDK
@pranavkm pranavkm force-pushed the prkrishn/use-blazor-sdk branch 2 times, most recently from 5ffbca1 to 0a9245f Compare August 11, 2020 15:44
@pranavkm pranavkm force-pushed the prkrishn/use-blazor-sdk branch from 0a9245f to 9b2cb5b Compare August 11, 2020 16:08
@pranavkm pranavkm added this to the 5.0.0-rc1 milestone Aug 11, 2020
@ghost ghost merged commit 8e5533f into master Aug 11, 2020
@ghost ghost deleted the prkrishn/use-blazor-sdk branch August 11, 2020 17:29
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants