question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

asp.net core preview 8 update issues

See original GitHub issue

The updates that affect bolero as below:

  • Update Microsoft.AspNetCore.* package references to 3.0.0-preview8.19405.7.
  • In Razor components rename OnInit to OnInitialized and OnInitAsync to OnInitializedAsync.
  • Rename ElementRef to ElementReference.
  • Update calls to ComponentBase.Invoke to call ComponentBase.InvokeAsync.

The full list is here: https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-8/

I tried above changes but the template provider fails with Errors like:

C:\Users\Onur.Gumus\source\repos\Bolero2\tests\Client\Main.fs(132,25): error FS0041: No overloads match for method 'Kind'. The available overloads are shown below.
3>C:\Users\Onur.Gumus\source\repos\Bolero2\tests\Client\Main.fs(143,25): error FS0001: This expression was expected to have type    'Bolero.Node (Bolero, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null)'    but here has type    'Bolero.Node (Bolero.Templating.Provider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)'
6>C:\Users\Onur.Gumus\source\repos\Bolero2\tests\Unit.Client\Html.fs(166,9): error FS0001: All elements of a list must be of the same type as the first element, which here is 'Bolero.Node (Bolero, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null)'. This element has type 'Bolero.Node (Bolero.Templating.Provider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)'.
3>C:\Users\Onur.Gumus\source\repo

And I got stuck here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xperiandricommented, Aug 20, 2019

image

member this.Configure(app: IApplicationBuilder, env: IWebHostEnvironment) =
	app
		.UseAuthentication()
		.UseRemoting()
		.UseClientSideBlazorFiles<Client.Startup>()
		.UseRouting()
		.UseEndpoints(fun endpoints ->
#if DEBUG
			endpoints.UseHotReload()
#endif
			endpoints.MapDefaultControllerRoute() |> ignore
			endpoints.MapFallbackToClientSideBlazor<Client.Startup>("index.html") |> ignore)
	|> ignore

Why could this happen?

0reactions
Tarmilcommented, Aug 25, 2019

@xperiandri This is because Bolero.HotReload itself needs to be updated to preview8, as some APIs it relies on have been changed. I’m working on it 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core updates in .NET 8 Preview 6
NET 8 Preview 6 is now available and includes many great new improvements to ASP.NET Core. Here's a summary of what's new in...
Read more >
ASP.NET Core in .NET 8 Preview 6: Blazor Updates and More
NET 8 Preview 6 brings significant additions and changes to ASP.NET Core. The most notable enhancements for this release of ASP.NET Core are ......
Read more >
What's new in .NET 8 Preview 1 · Issue #8133 · dotnet/core
NET 8 Preview 1 This issue is for teams to highlight work for the community that will release in .NET 8 Preview 1...
Read more >
ASP.NET Core .NET 8 Preview 5 New Features and Updates
With the release of ASP.NET Core Preview 5, we now have a powerful new feature that allows us to enable interactivity for individual...
Read more >
Is ASP.NET on the right path? Microsoft .NET 8 preview ...
NET web application framework – prompting a discussion about whether ASP.NET Core is heading down the right path. “I am so disappointed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found