如何修复发布后安装应用程序时需要的错误 netfx.force.conflicts

How to fix error netfx.force.conflicts required while installing app after publish

我已尝试发布我的应用程序。发布一切顺利,但当我尝试安装应用程序时出现错误 "Unable to install or run the application. The application requires that assembly netfx.force.conflicts Version 0.0.0.0 be installed in the Global Assembly Cache (GAC) first"

知道要做什么吗?我试过在发布前删除我的 bin 文件夹,但还是一样。

解决方案是 right-click 在项目上,转到 properties,然后转到 Publish申请文件。然后我不得不将所有 dll 发布状态更改为 include(而不是 prerequisite)。