本文主要是介绍VS上切换分支,vs编译运行出现bug,A fatal error was encountered彻底解决方案,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题:
A fatal error was encountered. The library ‘hostpolicy.dll’ required to execute the application was not found in ‘C:\Program Files\dotnet’.
Failed to run as a self-contained app.
解决方案
添加以下配置,然后重新生成
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>
这篇关于VS上切换分支,vs编译运行出现bug,A fatal error was encountered彻底解决方案的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!