Skip to content

Blazor wasm RCL static assets are not accessible directly via url in browser #54106

Closed Answered by fingers10
fingers10 asked this question in Q&A
Discussion options

You must be logged in to vote

Got an response from Stackoverflow - https://stackoverflow.com/questions/78018722/blazor-wasm-rcl-static-assets-are-not-accessible-directly-via-url-in-browser-in/78019599#78019599

It's an embedded in resource,it would be avaliable via https://localhost/_content/RCL/rclimage.png by default.

You could configure as below in your RCL project if you want it be avaliable via https://localhost/rclimage.png

<PropertyGroup> 
 <StaticWebAssetBasePath Condition="$(StaticWebAssetBasePath) == ''">/</StaticWebAssetBasePath>
</PropertyGroup>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fingers10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant