The “TransformAppSettings” task failed unexpectedly

被刻印的时光 ゝ 提交于 2019-12-04 12:31:18

In my case, I edit the publish configuration and turned off the Database -> Use this connection at runtime. Then I could publish without this error, however, I had to manually edit the web.config and make the following changes.

modules="AspNetCorModuleV2"  had to become modules="AspNetCodeModule"

hostingModel="InProcess" had to become hostingModel="OutOfProcess" 

<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> had to become value="Production"

These changes were already in my own directories web.config, but they didn't seem to get propagated in the publish anymore.

I have the same issue

Same Question on Stack Overflow

Though i have managed to publish my project via powershell commands

dotnet publish --configuration Release --framework netcoreapp2.2

Try it, I hope it will help...

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