Skip to content

Build Error - Error copying following files to bin\debug #10693

@waqas1430

Description

@waqas1430

I encounter following errors while trying to build the solution from command line
build.cmd and from here on i couldn't follow the setup instruction any further.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3027: Could not copy "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\T
estFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActio
nsReturning400FromNonModelStateIsValidBlocks.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExplicitMo
delValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlo
cks.cs". Exceeded retry count of 10. Failed.  [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\tes
t\Mvc.Api.Analyzers.Test.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3021: Unable to copy file "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\t
est\TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApi
ActionsReturning400FromNonModelStateIsValidBlocks.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExpli
citModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsVal
idBlocks.cs". Could not find a part of the path 'bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExplicitModelV
alidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.
cs'. [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\Mvc.Api.Analyzers.Test.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3027: Could not copy "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\T
estFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActio
nsReturningNot400FromNonModelStateIsValidBlock.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExplicit
ModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsVal
idBlock.cs". Exceeded retry count of 10. Failed.  [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers
\test\Mvc.Api.Analyzers.Test.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3021: Unable to copy file "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\t
est\TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApi
ActionsReturningNot400FromNonModelStateIsValidBlock.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExp
licitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelState
IsValidBlock.cs". Could not find a part of the path 'bin\Debug\netcoreapp3.0\TestFiles\ApiActionsDoNotRequireExplicitMo
delValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValid
Block.cs'. [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\Mvc.Api.Analyzers.Test.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3027: Could not copy "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\T
estFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesRespons
eTypeAttribute_ReturnsUndocumentedStatusCode.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiConventionAnalyzerIntegration
Test\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusC
ode.cs". Exceeded retry count of 10. Failed.  [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\tes
t\Mvc.Api.Analyzers.Test.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targ
ets(4560,5): error MSB3021: Unable to copy file "D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\t
est\TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesRe
sponseTypeAttribute_ReturnsUndocumentedStatusCode.cs" to "bin\Debug\netcoreapp3.0\TestFiles\ApiConventionAnalyzerIntegr
ationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedSt
atusCode.cs". Could not find a part of the path 'bin\Debug\netcoreapp3.0\TestFiles\ApiConventionAnalyzerIntegrationTest
\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.
cs'. [D:\FLProjects\AspNetCore-master\AspNetCore\src\Mvc\Mvc.Api.Analyzers\test\Mvc.Api.Analyzers.Test.csproj]

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: DuplicateResolved as a duplicate of another issuearea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions