仅提供English版本
.net core application error The required library hostfxr.dll could not be found
Programs generated by .Net Core and Framework. .Net Core needs to be applied in the running environment. Sending it directly to others will cause an error.
1 | :\Program Files (x86)\***>.\copyfiles.exe |
Reference Link
.net core publish single exe file, and optimize to reduce size
- Run build
dotnet build - Create package based on x64 system
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
At this time, a win-x64 file will be generated. There is a publish folder inside. The files inside can self-run and be used by others.


Author: Broccoli
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.