-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Use BlazorWebAssemblySDK #24371
Conversation
pranavkm
commented
Jul 28, 2020
- Update projects to use the BlazorSDK
- Remove tasks and targets from RazorSDK
- Remove workarounds from BlazorSDK
5686433
to
76d01f7
Compare
@@ -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)' != ''"> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set in the SDK similar to other SDKs
@@ -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 --> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
f510ad5
to
31d0956
Compare
|
||
<PropertyGroup> | ||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework> | ||
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier> | ||
<UseBlazorWebAssembly>true</UseBlazorWebAssembly> | ||
<FixupWebAssemblyHttpHandlerReference>true</FixupWebAssemblyHttpHandlerReference> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> |
There was a problem hiding this comment.
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!
There was a problem hiding this 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.
Hello @pranavkm! Because this pull request has the 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 (
|
31d0956
to
64b95b9
Compare
* Update projects to use the BlazorSDK * Remove tasks and targets from RazorSDK * Remove workarounds from BlazorSDK
5ffbca1
to
0a9245f
Compare
0a9245f
to
9b2cb5b
Compare