Why is Nuke trying to overwrite its exe? #648
Answered
by
matkoch
sharpninja
asked this question in
Q&A
-
C:\Program Files\dotnet\sdk\5.0.200-preview.20601.7\Microsoft.Common.CurrentVersion.targets(4818,5): error MSB3027: Could not copy "C:\OCR\OCR-1\.build\obj\Debug\apphost.exe" to "bin\Debug\_build.exe". Exceeded retry count of 10. Failed. [C:\OCR\OCR-1\.build\_build.csproj]
C:\Program Files\dotnet\sdk\5.0.200-preview.20601.7\Microsoft.Common.CurrentVersion.targets(4818,5): error MSB3021: Unable to copy file "C:\OCR\OCR-1\.build\obj\Debug\apphost.exe" to "bin\Debug\_build.exe". The process cannot access the file 'C:\OCR\OCR-1\.build\bin\Debug\_build.exe' because it is being used by another process. [C:\OCR\OCR-1\.build\_build.csproj]
ProcessException: Process 'dotnet.exe' exited with code 1.
> "C:\Program Files\dotnet\dotnet.exe" build "C:\OCR\OCR-1\OCR.sln" --configuration Debug --no-restore /property:AssemblyVersion=0.1.0.0 /property:FileVersion=0.1.0.0 /property:InformationalVersion=0.1.0+9.Branch.main.Sha.8c03374228340cb6badadea75dc6a52971b4a136
@ C:\OCR\OCR-1\DevOps |
Beta Was this translation helpful? Give feedback.
Answered by
matkoch
Jan 18, 2021
Replies: 3 comments 6 replies
-
Because you didn't use the global tool for setup, which results in the build project being built on solution build. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
matkoch
-
This fixed it! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I get this error when using visual studio 2022, Any suggestions how to fix it?, I want to use it to debug my build |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because you didn't use the global tool for setup, which results in the build project being built on solution build.