Error Could not copy
"C:\Users\REDACTED\.nuget\packages\umbraco.cms.staticassets\14.1.1\staticwebassets\umbraco\backoffice\packages\log-viewer\workspace\views\overview\components\log-viewer-message-templates-overview.element.d.ts"
to
"C:\Users\REDACTED\repos\app.cc.com.v2.umbraco\app.cc.com.v2.umbraco\obj\Release\net8.0\PubTmp\Out\wwwroot\umbraco\backoffice\packages\log-viewer\workspace\views\overview\components\log-viewer-message-templates-overview.element.d.ts".
Exceeded retry count of 10. Failed. app.cc.com.v2.umbraco 0
Thanks @HuwReddick...I am doing folder publish to a folder on my server...but according to the error it appears it's failing before it gets to the point of copying files to the intended server path.
I looked at the Output and noticed an error before all of the 'could not copy' errors.
The very first error that posts to Output is:
C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk.Publish\targets\CopyTargets\Microsoft.NET.Sdk.Publish.CopyFiles.targets(51,5): Warning MSB3231: Unable to remove directory "C:\Users\REDACTED-45-CHARS-HERE\repos\app.cc.com.v2.umbraco\app.cc.com.v2.umbraco\obj\Release\net8.0\PubTmp\Out\". The process cannot access the file 'C:\Users\REDACTED-45-CHARS-HERE\repos\app.cc.com.v2.umbraco\app.cc.com.v2.umbraco\obj\Release\net8.0\PubTmp\Out\runtimes' because it is being used by another process.
Umbraco v14.1.1 Publish Failed
Attempting to publish a v14.1.1 fails.
Here's the error I'm getting:
@HuwReddick in a previous thread (that I had to delete b/c I prematurely marked it solved) kindly recommended adding this registry key: https://discord-chats.umbraco.com/t/14155379/installing-v14-preview-02
Unfortunately that did not resolve the issue.
what sort of publish are you using?
If it is a folder publish, try changing to a different folder that has less branches like "C:\testpublish" does that fix the issue?
Thanks @HuwReddick...I am doing folder publish to a folder on my server...but according to the error it appears it's failing before it gets to the point of copying files to the intended server path.
I looked at the Output and noticed an error before all of the 'could not copy' errors.
The very first error that posts to Output is: C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk.Publish\targets\CopyTargets\Microsoft.NET.Sdk.Publish.CopyFiles.targets(51,5): Warning MSB3231: Unable to remove directory "C:\Users\REDACTED-45-CHARS-HERE\repos\app.cc.com.v2.umbraco\app.cc.com.v2.umbraco\obj\Release\net8.0\PubTmp\Out\". The process cannot access the file 'C:\Users\REDACTED-45-CHARS-HERE\repos\app.cc.com.v2.umbraco\app.cc.com.v2.umbraco\obj\Release\net8.0\PubTmp\Out\runtimes' because it is being used by another process.
@HuwReddick I resolved the 'because it is being used by another process' error. But still getting the 'could not copy' errors.
I changed the publish destination to 'C:\umbtestpub' the same 'could not copy' error exists.
No other ideas, sorry.
@HuwReddick the accepted answer here worked for me: https://stackoverflow.com/questions/18102859/visual-studio-could-not-copy-during-build
is working on a reply...