Microsoft.Common.CurrentVersion.targets(4678,5): error MSB3027: Could not copy File


Question: How do you resolve the error "Severity Code Description Project File Line Suppression State
Error MSB3027 Could not copy "File.dll" to "bin\Debug\net5.0\File.dll". Exceeded retry count of 10. Failed. The file is locked by: "ProjectName (10532)" ProjectName C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 4678 
".


Login to See the Rest of the Answer

Answer: Chances are that you added something in the editor.config file that is silencing the Warnings or Errors. Follow the instruction below to resolve the issue.

1. Close Visual Studio, then restart it.
2. Clean the Project Solution and build the Solution.
3. Wait until the Background tasks are complete running then rebuild the Project Solution again.

MSB3027 Build Error






© 2024 - ErnesTech - Privacy
E-Commerce Return Policy