Blazor WebAssembly Asp.NET Core Hosted
This is a sample project that demonstrates how to create a Blazor WebAssembly application with an Asp.NET Core Hosted project. See the article that explains this project:
https://abp.io/community/articles/blazor-webassembly-asp.net-core-hosted-zbjvgrc9
Comments
dolson@hotmail.ca 131 weeks ago
Thanks for this post! I was wondering how to do this.
ben.white 129 weeks ago
Also see this github issue to further replicate an asp.net core hosted scenario https://github.com/abpframework/abp/issues/13684
Engincan Veske 123 weeks ago
Great article! Thanks for sharing.
dolson@hotmail.ca 105 weeks ago
The post can no longer be read. The link for "See the article that explain this project:" points to itself.
Thanks.
Enis Necipoğlu 105 weeks ago
You can see the original file in PR: https://github.com/abpframework/abp-samples/blob/enisn/blazor-aspnetcore-hosted/BlazorWasmAspNetCoreHosted/README.md
dlo1957ca 103 weeks ago
I originally followed these instructions in an ABP v6.0 application and it worked great.
Since then I've created a v7.0.2 application. After trying to host it as described in the article, I am getting an error building the application (error shown below).
I decided to try creating another v7.0.2 application based on the Acme.BookStore "Web Application Development Tutorial" Parts 1 and 2 to ensure it wasn't something specific to my app. It works as expected with the 2 startup projects (HttpApi.Host and Blazor). Once again when I change it to be hosted, I get the same error as with my app.
Any ideas on how to resolve the error?
Here's the error:
T2p.Abp.v70.BookStore.HttpApi.Host Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(391, 5): Conflicting assets with the same target path 'images/logo/leptonx/logo-dark-thumbnail.png'. For assets 'Identity: C:\Dev-Samples\v70-blazor\src\T2p.Abp.v70.BookStore.Blazor\wwwroot\images\logo\leptonx\logo-dark-thumbnail.png, SourceType: Project, SourceId: T2p.Abp.v70.BookStore.Blazor, ContentRoot: C:\Dev-Samples\v70-blazor\src\T2p.Abp.v70.BookStore.Blazor\wwwroot, BasePath: /, RelativePath: images/logo/leptonx/logo-dark-thumbnail.png, AssetKind: All, AssetMode: All, AssetRole: Primary, RelatedAsset: , AssetTraitName: , AssetTraitValue: , CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: wwwroot\images\logo\leptonx\logo-dark-thumbnail.png' and 'Identity: C:\Dev-Samples\v70-blazor\src\T2p.Abp.v70.BookStore.HttpApi.Host\wwwroot\images\logo\leptonx\logo-dark-thumbnail.png, SourceType: Discovered, SourceId: T2p.Abp.v70.BookStore.HttpApi.Host, ContentRoot: C:\Dev-Samples\v70-blazor\src\T2p.Abp.v70.BookStore.HttpApi.Host\wwwroot, BasePath: _content/T2p.Abp.v70.BookStore.HttpApi.Host, RelativePath: images/logo/leptonx/logo-dark-thumbnail.png, AssetKind: All, AssetMode: All, AssetRole: Primary, RelatedAsset: , AssetTraitName: , AssetTraitValue: , CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: wwwroot\images\logo\leptonx\logo-dark-thumbnail.png' from different projects.
khalid.hanafy@gmail.com 44 weeks ago
just delete all image in logo in BookStore.HttpApi.Host\wwwroot\images\logo because it confilcts with the image in Blazor app i tested in abp 8.1
kuanlin.albert@gmail.com 99 weeks ago
Hello , I found when I publish from VS, the logout-callback process hanging... The ABP version:7.1. I followed the steps and all fine in debug mode. But not when publishing. There seems no error log in host console or Chrome Client.
The result may cause hard to continue for logout issue. Kindly help! thanks.
Br, Albert