When I restart nopCommerce 4.0 application from admin side it always stop visual studio and as well as application.
Same thing happening on Plugin install and uninstall time. It's take too much time for build and run project every time on restart application and plugin install/uninstall moment.
The issue is that Visual Studio will finds dotnet.exe from the path. If you have the x86 and x64 versions installed, make sure the path to the x64 version is first on the path (or uninstall the x86 version)..
Also check your .net Core SDKs and Runtimes as well.