Have a web application which does not get published due to circular reference error on my build machine but the same works fine on other developer machines.
So decided to remove Precompile option using Publish Profile. This works file when we publish the web site in Visual Studio. But when we use the same profile in MSBuild to publish the website it calles Aspnet_Compiler to do precompile which results in circular reference error.
When Precompiler is disabled in Publish Profile why does aspnet_compiler gets called during publish?
Attaching MSBuild command given in Jenkins along with Publish Build Profile.