Closed HuaFangYun closed 3 weeks ago
This is not a bug and is the same way all other web projects in ASP.NET function, you cant run the executable without copying at least the wwwroot
folder into the executable directory. The bin contents is largely only for use when debugging or launching with VS / VS Code and it has the startup directory set to your project directory.
If you want to make a distributable build, you should use dotnet publish -c Release
which will output all the appropriate assets into the publish directory.
More info on publishing apps can be found in the .NET Docs here: https://learn.microsoft.com/en-us/dotnet/core/deploying/
Is there an existing issue for this?
Describe the bug
I used a template to create a project. After the generation is completed, double-clicking the bin folder cannot be directly opened. It can be like winform or wpf. Can I directly double click the.exe file to open it directly? Or did I add less configuration information?
Expected behavior
No response
Steps to reproduce
No response
Exceptions or error messages (if any)
No response
Version number
No response
Anything else?
No response