-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Blazor] Preview 6 blazorhosted project publish is broken #11185
Comments
@mkArtakMSFT Please assign |
I can confirm the same problem has happened to me. To fix the error I had to manually copy all of the files in the wwwroot to my production server. |
Workaround for that for me was following
|
Is there a work around to fix this. even though i made the site work on kestral. i cant make the iis version work |
@smartprogrammer93, have you tried the workaround provided by @kant2002 above? |
@mkArtakMSFT yes. It only worked with kestral but not with IIS. I even copied the content of the folder to the wwroot. And that made kestral work but not IIS |
Not really sure this is the same, but have you tried the workaround described here: https://github.com/aspnet/websdk/issues/604 |
@danroth27, I moved this out to 3.1, as the other related/similar issues are in there already and we can't fit this in current milestone. |
@mkArtakMSFT i will try this workaround when i have the time. Please note that moving this issue to to 3.1 milestone means that client blazor apps will never be able to be hosted in IIS which a lot of us use. I argue guys to reconsider. |
I could not agree more. It seems like it would be a huge miss to move this to 3.1, it's not like this is a feature request to get publishing into IIS, this is a regression bug. Preview 5 worked just fine with IIS publishing. |
I believe this is actually fixed as per my changes in 0a4f42a. |
This works but you also need to do the same for the static files |
@FluentGuru Hey, I'm just starting out with all of this. I got the |
@DustinCampbell you must add this part too if you are using static files found inside your blazor project folder
|
Describe the bug
Using preview 6 sdk/templates, when publishing a blazor hosted project, publish output seems broken and trying to run the published app does not work
To Reproduce
Steps to reproduce the behavior:
dotnet new blazorhosted -o HostedTest
cd HostedTest\HostedTest.Server
dotnet publish -c Release -o bin\release\publish
cd bin\release\publish
dotnet HostedTest.Server.dll
http://localhost:5000
=> 404Additional context
It seems that the publish output folder is not right. For example the
index.html
file is missing from theHostedTest.Client\dist
folder.Here is the kestrel log of the request
The text was updated successfully, but these errors were encountered: