Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

CSLA 5.2.0-20050802 prerelease #947

Open
rockfordlhotka opened this issue May 8, 2020 · 0 comments
Open

CSLA 5.2.0-20050802 prerelease #947

rockfordlhotka opened this issue May 8, 2020 · 0 comments

Comments

@rockfordlhotka
Copy link
Member

I have pushed a new prerelease to NuGet. We are less than two weeks from the release of Blazor WebAssembly from Microsoft, so verison 5.2.0 is now at a feature freeze. Only bug fixes from this point forward.

There are a couple Blazor related changes you'll need in your code to update to this version from 5.1.0.

Blazor ViewModel RefreshAsync

The RefreshAsync method now accepts only a data portal or factory method.

  vm.RefreshAsync(() => Csla.DataPortal.FetchAsync<PersonEdit>(id));

The old approach didn't work this way, and you'll need to update all uses of RefreshAsync accordingly.

Client-side Blazor NuGet Package

There is a new Csla.Blazor.WebAssembly NuGet package. This is the package you must reference in a client-side Blazor UI project. No change is required to server-side or common UI Blazor projects.

In the csproj file:

  <ItemGroup>
    <PackageReference Include="Csla.Blazor.WebAssembly" Version="5.2.0-R20050802" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-rc1.20223.4" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-rc1.20223.4" PrivateAssets="all" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-rc1.20223.4" PrivateAssets="all" />
    <PackageReference Include="System.Net.Http.Json" Version="3.2.0-preview5.20210.3" />
    <PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview3.20168.3" />
  </ItemGroup>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant