Using Visual Studio 2022 to publish to an azure web app doodad.. and
code works locally builds and so forth
However if i try to push /publish the code.. it gives me the following error ( see attached image)
Cleaned and rebuilt the solution many times
Made sure no other services are interfering
LuukPeters
(Luuk Peters (Proud Nerds))
2
Do you have any copy commands in your project file or a custom .targets file? If so, check those.
Usually it’s something like changing this:
<Copy SourceFiles="@(SomeSource)" DestinationFiles="bin\Release\net8.0\linux-x64\Web" />
To this:
<Copy SourceFiles="@(SomeSource)" DestinationFolder="bin\Release\net8.0\linux-x64\Web" />
1 Like
turns out after many rabbit hols and a bit of a voyage of discovery.. and some else suggestion
` <UseAppHost>false</UseAppHost>`
This in the CSproj file fixed the issue..
In the initial publish , this wasn’t a factor, but why second time around it suddenly is..
anyway ..
i have stopped chasing this rabbit..
1 Like