Currently using msbuild in dev ops to build and publish our sc helix solution. Each project in the helix solution has a web.config file and ive noticed that after the build and publish the web.config file is not correct. It seems to be randomly selecting a web.config to publish from one of the feature / foundation projects and not the main project web.config. Has anyone else encountered this? Below is the build task in my pipeline
task: MSBuild@1
displayName: 'MSBuild: Full Build Sitecore solution'
inputs:
solution: '$(solution)'
msbuildVersion: '17.0'
msbuildArchitecture: 'x64'
configuration: '$(buildConfiguration)'
platform: '$(buildPlatform)'
clean: true
msbuildArguments: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:DeleteExistingFiles=false /p:publishUrl=$(Build.SourcesDirectory)\Deploy\website'
condition: and(succeeded(), eq(${{ parameters.runPRBuild }}, false))