We are getting a build error after upgrading project from .Net Framework 4.6.1 to 4.6.2. On local, everything works fine but in Bamboo build it's creating an error. Please find below errors.
We are building this in VS 2019
build 25-Jan-2021 18:04:43 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "bin\Antlr3.Runtime.dll" because it was not found. [E:\build-dir\196609\BC-BCCR-BUIK\Project.Web.Cms\Project.Web.Cms.csproj] build 25-Jan-2021 18:04:43 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "bin\Castle.Core.dll" because it was not found. [E:\build-dir\196609\BC-BCCR-BUIK\Project.Web.Cms\Project.Web.Cms.csproj] build 25-Jan-2021 18:04:43 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "bin\Castle.Windsor.dll" because it was not found. [E:\build-dir\196609\BC-BCCR-BUIK\Project.Web.Cms\Project.Web.Cms.csproj] build 25-Jan-2021 18:04:43 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "bin\coretools\CrmSvcUtil.exe" because it was not found. [E:\build-dir\196609\BC-BCCR-BUIK\Project.Web.Cms\Project.Web.Cms.csproj]