After a dotnet publish, the arguments within the published web.config's <aspNetCore/> tag are not replaced, instead the new location is added to the start.
Before publish
<aspNetCore processPath="dotnet" arguments=".\bin\Debug\netcoreapp3.1\Company.Web.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
After publish
<aspNetCore processPath="dotnet" arguments=".\Company.Web.dll .\bin\Debug\netcoreapp3.1\Company.Web.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
Desired
<aspNetCore processPath="dotnet" arguments=".\Company.Web.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
Has anybody experienced this transformation is not working properly?
(edit - added the before publish tag)