Skip to content

Purge the blazor-wasm branch #18770

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
merged 12 commits into from
Feb 7, 2020
Merged

Purge the blazor-wasm branch #18770

merged 12 commits into from
Feb 7, 2020

Conversation

pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Feb 4, 2020

No description provided.

@Pilchie Pilchie added the area-blazor Includes: Blazor, Razor Components label Feb 4, 2020
@pranavkm pranavkm force-pushed the prkrishn/purge branch 3 times, most recently from 158ef50 to 0ef6083 Compare February 4, 2020 19:06
@pranavkm pranavkm marked this pull request as ready for review February 4, 2020 20:28
@@ -184,7 +183,7 @@ function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $arc
InstallDotNet $dotnetRoot $version $architecture
}

function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $false) {
function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $true) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to workaround the issue with installing the unstable version 3.1.102 SDK and calling build.cmd multiple times. We should be able to remove this once 3.1.102 ships \ dotnet-install can install unstable zips that contain stable SDKs or runtime as discussed in the email thread.

Copy link
Contributor

Choose a reason for hiding this comment

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

Any change made under eng/common/ will be obliterated as part of the next Arcade dependency update. We should never be editing these files except in short-term emergencies i.e. when we can't wait for an Arcade fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should never be editing these files except in short-term

Yup. Like I said, we should be able to undo this once 3.1.102 ships, which is fairly soon, no?

Copy link
Member

Choose a reason for hiding this comment

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

February 18

@@ -1,10 +1,4 @@
<Project>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
<Import Project="Blazor.Version.props" />

<PropertyGroup>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This gets set by src/Components/Directory.Build.props

@@ -2,146 +2,146 @@
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<AspNetCoreBaselineVersion>3.1.0</AspNetCoreBaselineVersion>
<AspNetCoreBaselineVersion>3.1.2</AspNetCoreBaselineVersion>
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks wrong because it doesn't align with Baseline.xml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

<Dependency Name="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.0" Pinned="true">
<Uri>https://github.com/aspnet/EntityFrameworkCore</Uri>
<Sha>82c6ea483d3a17393dad5986df9a8eef89ddcd07</Sha>
<Dependency Name="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.2">
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh? Why isn't almost-every dependency in this file pinned?

Also:

  • doubt even 1/3 of these dependencies are needed
  • make sure none of the dependencies use CoherentParentDependency and Pinned together

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea what Pinned means. I copied this file pretty-much as is from the release/3.1 branch.

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks fine now. Because we don't have subscriptions from the extensions or efcore repo, Pinned is irrelevant. That is, unless you need to pin something coming from blazor, you could remove all Pinned attributes.

@@ -184,7 +183,7 @@ function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $arc
InstallDotNet $dotnetRoot $version $architecture
}

function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $false) {
function InstallDotNet([string] $dotnetRoot, [string] $version, [string] $architecture = "", [string] $runtime = "", [bool] $skipNonVersionedFiles = $true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any change made under eng/common/ will be obliterated as part of the next Arcade dependency update. We should never be editing these files except in short-term emergencies i.e. when we can't wait for an Arcade fix.

Copy link
Contributor

@ryanbrandenburg ryanbrandenburg left a comment

Choose a reason for hiding this comment

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

Am I reading this correctly that you've removed every template except for the blazor-wasm one? I don't really understand the context behind it, but if that's the intention you achieved it.

@@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>${DefaultNetCoreTargetFramework}</TargetFramework>
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow up on #18841

@pranavkm
Copy link
Contributor Author

pranavkm commented Feb 6, 2020

@dougbu can you review?

@pranavkm pranavkm merged commit 679ed5d into blazor-wasm Feb 7, 2020
@pranavkm pranavkm deleted the prkrishn/purge branch February 7, 2020 03:57
Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Solid

$dotnetInstallDir = Join-Path $RepoRoot ".dotnet"
$sdkPath = [IO.Path]::Combine($dotnetInstallDir, 'sdk', '3.1.102')
if (!(Test-Path $sdkPath)) {
InstallDotNetSdk $dotnetInstallDir '3.1.102-servicing-014873' -skipNonVersionedFiles $true
Copy link
Contributor

Choose a reason for hiding this comment

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

If this branch is still around for 3.1.103, will this workaround go away or need to be updated?

<Dependency Name="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.0" Pinned="true">
<Uri>https://github.com/aspnet/EntityFrameworkCore</Uri>
<Sha>82c6ea483d3a17393dad5986df9a8eef89ddcd07</Sha>
<Dependency Name="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.2">
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks fine now. Because we don't have subscriptions from the extensions or efcore repo, Pinned is irrelevant. That is, unless you need to pin something coming from blazor, you could remove all Pinned attributes.

<Dependency Name="Microsoft.Extensions.Logging.Testing" Version="3.1.0-rtm.19572.8" CoherentParentDependency="Microsoft.EntityFrameworkCore">
<Uri>https://github.com/aspnet/Extensions</Uri>
<Sha>1c5c7777ea9a19d54ab67ec1521665c99460efc5</Sha>
<Dependency Name="Microsoft.Extensions.Logging.TraceSource" Version="3.1.2" Pinned="true">
Copy link
Member

Choose a reason for hiding this comment

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

You don't have a matching </Dependency> for this one and it's breaking on the internal builds

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.

6 participants