Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

avalonia.js 404 #16441

Closed
githubxiaoa opened this issue Jul 24, 2024 · 4 comments
Closed

avalonia.js 404 #16441

githubxiaoa opened this issue Jul 24, 2024 · 4 comments
Labels

Comments

@githubxiaoa
Copy link

Describe the bug

avalonia.js 404
微信截图_20240724170111

To Reproduce

not run

Expected behavior

No response

Avalonia version

11.1.0

OS

Windows, WebAssembly

Additional context

No response

@maxkatz6
Copy link
Member

Try to recreate browser project from the avalonia.xplat template.

@githubxiaoa
Copy link
Author

I have created a new project without making any changes, but it is still unsuccessful

@msneijders
Copy link
Contributor

Using template v1.14 it works running from visual studio (it finds and reads an avalonia.js file) -- but when I deploy (testing with a local IIS), I cannot find the avalonia.js file in _framework folder. I copied the content from avalonia.js that is generated while debugging from visual studio from within the browsers DevTools (because I cannot find it in wwwroot/_framework), and put it in the _framework folder of the deployment; then it runs.

@maxkatz6
Copy link
Member

maxkatz6 commented Jul 25, 2024

I have created a new project without making any changes, but it is still unsuccessful

It doesn't give much information on how you run it.
New project templates work just fine here, via dotnet run and dotnet publish (which are the most important).
If any IDE doesn't handle running projects - report the issue to them.

testing with a local IIS

Can't really help with IIS. Don't see reasons to use it also.
For local testing of published packages, I recommend dotnet serve tool. For production there are various static website cloud providers as well, or nginx should work too just fine.

but when I deploy

Do you deploy with dotnet publish btw? Any other way won't work.

@AvaloniaUI AvaloniaUI locked and limited conversation to collaborators Jul 25, 2024
@maxkatz6 maxkatz6 converted this issue into discussion #16467 Jul 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants