I'm using .net core to build a self contained application accroding to following guide: 1. create a new .net core Console app: https://www.microsoft.com/net/learn/get-started/windows 2. follow these step to publish application with self-contained: https://learn.microsoft.com/en-us/dotnet/core/deploying/deploy-with-cli
After publish the application, I do run the application correctly, but when I remove file myApp1.runtimeconfig.dev.json, my application is can not startup again. The error message:
Error: An assembly specified in the application dependencies manifest (myApp1.deps.json) was not found: package: 'runtime.win-x86.Microsoft.NETCore.App', version: '2.0.0' path: 'runtimes/win-x86/lib/netcoreapp2.0/Microsoft.CSharp.dll'