Asp core wrong assembly redirect on publish

我的未来我决定 提交于 2019-12-05 02:31:54

You need to create a web.config transformation file.

This answer will come in handy in order to that as it is not easy to add it yourself - https://stackoverflow.com/a/16826106/1147920

You could also do it manually by creating a copy of the web.config file and renaming it to either web.release.config or web.{PublishProfile}.config (if you're using one).

To write the transform rule to edit the bindingRedirect refer to the official docs - https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/web-config-transformations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!