Open Apollo3zehn opened 1 year ago
I'm facing this too
Thanks for contacting us.
We're moving this issue to the .NET 9 Planning
milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
Did you fix this as it is causing me the same issue in dotNet 8?
Is there an existing issue for this?
Describe the bug
I try to host a Blazor WASM app under the path
<host>/dev
using the property<StaticWebAssetBasePath>dev</StaticWebAssetBasePath>
. My project is also referencing the third-party libraryMudBlazor
and when I dodotnet publish -c Debug -o <path>
the output is just fine, i.e. MudBlazor is below thedev/_content
folder:But when I run![grafik](https://user-images.githubusercontent.com/20972129/233333259-3dbc5888-48f0-4cef-9074-51ee9b7db2c6.png)
dotnet watch
the files are not located under thedev/_content
path but directly under_content
( the target framework isnet7.0
):Expected Behavior
I expect that
<StaticWebAssetBasePath>dev</StaticWebAssetBasePath>
is also applied to third-party libraries when runningdotnet watch
.Steps To Reproduce
Run
Edit the
.csproj
file and add<StaticWebAssetBasePath>dev</StaticWebAssetBasePath>
.Run
dotnet publish
Have look into the published folder, it looks fine (
_content/MudBlazor
is located underwwwroot/dev
).Run
dotnet watch
Try to load the file
http://localhost:<your-port>/dev/_content/MudBlazor/MudBlazor.min.js
: it failsTry to load the file
http://localhost:<your-port>/_content/MudBlazor/MudBlazor.min.js
: it succeedsExceptions (if any)
No response
.NET Version
7.0.101
Anything else?
VS Code watch task
The project
Veltrup.Server
references and serves the WASM client project.dotnet --info
.NET SDK: Version: 7.0.101 Commit: bb24aafa11
Laufzeitumgebung: OS Name: ubuntu OS Version: 22.10 OS Platform: Linux RID: linux-x64 Base Path: /home/vincent/Dokumente/Software/dotnet/sdk/7.0.101/
Host: Version: 7.0.1 Architecture: x64 Commit: 97203d38ba
.NET SDKs installed: 5.0.408 [/home/vincent/Dokumente/Software/dotnet/sdk] 6.0.404 [/home/vincent/Dokumente/Software/dotnet/sdk] 7.0.101 [/home/vincent/Dokumente/Software/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.17 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.12 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.1 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.17 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.12 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.1 [/home/vincent/Dokumente/Software/dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: DOTNET_ROOT [/home/vincent/Dokumente/Software/dotnet]
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download